minecraft:damage_over_time

Applies defined amount of damage to the entity at specified intervals.

Properties

PropertyTypeDefaultWhat it does
damage_per_hurtInteger1Amount of damage caused each hurt.
time_between_hurtDecimal0Time 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:

Related components