Area Attack¶
文档版本:1.21.50.25
A component that does damage to entities that get within range.
架构¶
area_attack:
{
entity_damage_source "cause"
number "damage_cooldown" : opt
integer "damage_per_tick" : opt
number "damage_range" : opt
filters "entity_filter"
boolean "play_attack_sound" : opt
}
cause
:entity_damage_source- The type of damage that is applied to entities that enter the damage range.
damage_cooldown
:number- Attack cooldown (in seconds) for how often this entity can attack a target.
damage_per_tick
:integer- How much damage per tick is applied to entities that enter the damage range.
damage_range
:number- How close a hostile entity must be to have the damage applied.
entity_filter
:filters- 一个过滤器组。The set of entities that are valid to apply the damage to when within range.
play_attack_sound
:boolean- If the entity should play their attack sound when attacking a target.