Hurt On Condition¶
文档版本:1.21.50.25
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_conditions:array- 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>filters:filters- 一个过滤器组。
cause:entity_damage_source- Damage cause.
damage_per_tick:integer- Amount of damage done each tick that the conditions are met.