Entity Documentation - minecraft:damage_over_time

minecraft:damage_over_time applies a defined amount of damage to the entity at specified intervals.

Parameters

Name Default Value Type Description
damage_per_hurt 1 Integer Amount of damage caused each hurt.
time_between_hurt 0.0 Decimal Time in seconds between damage.

Example

"minecraft:damage_over_time":{
    "damage_per_hurt": 1,
    "time_between_hurt": 0.0
}

Vanilla entities examples

axolotl

"minecraft:damage_over_time": {
    "damage_per_hurt": 1,
    "time_between_hurt": 0
}

Vanilla entities using minecraft:damage_over_time