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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for