编辑

Entity Documentation - minecraft:behavior.charge_held_item

Allows an entity to charge and use their held item.

Charge Held Item Behavior Properties

Name Default Value Type Description
items NA Array of strings The list of items that can be used to charge the held item. This list is required and must have at least one item in it.
priority not set Integer number As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal.

Samples