minecraft:damage_over_time
Applies defined amount of damage to the entity at specified intervals.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
damage_per_hurt | Integer | 1 | Amount of damage caused each hurt. |
time_between_hurt | Decimal | 0 | Time in seconds between damage. |
Example from the game files
This is how vanilla Vex uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:damage_over_time": {
"damage_per_hurt": 1,
"time_between_hurt": 1.0
}
}Used by 3
Vanilla entities with minecraft:damage_over_time in their definition: