minecraft:attack¶
文档版本:1.21.0.24
Defines an entity's melee attack and any additional effects on it.
架构¶
minecraft:attack:
{
integer "damage" : opt
array "damage" : opt
{
integer "<any array element>" : opt
}
number "effect_duration" : opt
string "effect_name" : opt
}
damage:integer
damage:array- Range of the random amount of damage the melee attack deals. A negative value can heal the entity instead of hurting it.
damage<any array element>:integer
effect_duration:number- Duration in seconds of the status ailment applied to the damaged entity.
effect_name:string- Identifier of the status ailment to apply to an entity attacked by this entity's melee attack.