Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.24 KB

minecraftBehavior_charge_held_item.md

File metadata and controls

47 lines (36 loc) · 1.24 KB
author ms.author title description ms.service
iconicNurdle
mikeam
Entity Documentation - minecraft:behavior.charge_held_item
A reference document detailing the 'behavior.charge_held_item' entity goal
minecraft-bedrock-edition

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