minecraft:use_animation for you with a switch.Get GodCraftOverview
minecraft:use_animation is an item component: it goes in the components object of a custom item. Picks the animation the player shows while using the item, such as eating, drinking or drawing a bow.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
value | Animation | "none" | The animation name, for example "eat", "drink", "bow", "block" or "spear". |
Example
Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):
BP/items/<name>.json
{
"minecraft:use_animation": {
"value": "none"
}
}