Entity Documentation - minecraft:behavior.charge_held_item
minecraft:behavior.charge_held_item
compels an entity to charge and use their held item.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
items | not set | Array | 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 | The higher the priority, the sooner this behavior will be executed as a goal. |
Example
"minecraft:behavior.charge_held_item": {
"priority": 3,
"items": [
"minecraft:arrow"
]
}
Vanilla entities examples
piglin
"minecraft:behavior.charge_held_item": {
"priority": 3,
"items": [
"minecraft:arrow"
]
}
Vanilla entities using charge_held_item
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈