1. Wiki
  2. /Entities
  3. /minecraft:damage_over_time

minecraft:damage_over_time

Don't want to write this by hand? GodCraft sets minecraft:damage_over_time for you with a switch.Get GodCraft

Overview

minecraft:damage_over_time is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Hurts the entity by a set amount again and again on a timer.

Fields

FieldTypeDefaultDescription
damage_per_hurtinteger1Damage dealt each time.
time_between_hurtnumber0Seconds between each hit of damage.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:damage_over_time": {
    "damage_per_hurt": 1,
    "time_between_hurt": 0
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more