跳转至

Hurt On Condition

文档版本:1.21.0.24

Defines a set of conditions under which an entity should take damage.

架构

hurt_on_condition:
{
  array "damage_conditions" : opt
  {
    object "<any array element>" : opt
    {
      filters "filters"
      entity_damage_source "cause"
      integer "damage_per_tick" : opt
    }
  }
}
damage_conditionsarray
An array of conditions used to compare the event to.
damage_conditions
<any array element>object
A condition used to compare the event to.
<any array element>
filtersfilters
一个过滤器组
causeentity_damage_source
Damage cause.
entity_damage_source:
string
damage_per_tickinteger
Amount of damage done each tick that the conditions are met.