未命名¶
文档版本:1.21.0.24
Weapon Item Component. Added to every weapon item such as axe, sword, trident, bow, crossbow.
架构¶
minecraft:weapon:
{
definition_trigger "on_hurt_entity"
definition_trigger "on_not_hurt_entity"
definition_trigger "on_hit_block"
}
on_hurt_entity
:definition_trigger- Trigger for letting you know when this item is used to hurt another mob
event
:string
target
:string
condition
:expression_node
expression
:string
version
:integer
on_not_hurt_entity
:definition_trigger- Trigger for letting you know when this item hit another actor, but didn't do damage
on_hit_block
:definition_trigger- Trigger for letting you know when this item is used to hit a block