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