# Damage action

Fields for this consumable treatment action.

**since NTM 1.0.1**

[Consumable treatments](https://movblock.mov/ntm-next/wiki/consumable-treatments.md) place this action in `actions`.

## Fields

| Field | Meaning and default | Range |
| - | - | - |
| `type` | `damage`. | |
| `sources` | Damage-type ID, `#namespace:tag`, or ID list. Use a nonempty selection. | |
| `amount` | Damage attempted per application. | `[0, f32::MAX]` |
| `repeat` (Optional) | Number of damage applications after a successful roll; default 1. | `[1, i32::MAX]` |
| `one_in` (Optional) | One successful roll per this many outcomes; default 1. The roll covers the entire action. | `[1, i32::MAX]` |

Each application chooses a damage type uniformly from `sources`. Damage follows the selected type's normal armor and invulnerability rules.

## Example:

```json
{"type": "damage", "sources": "minecraft:magic", "amount": 2.0, "one_in": 4}
```
