minecraft:use_animation

Use_animation specifies which animation is played when the player uses the item.

Properties

Can be written as a single value: text (none, eat, drink, block, bow, camera, crossbow, spear, spyglass, brush).

PropertyTypeDefaultWhat it does
valueTextnone, eat, drink, block, bow, camera, crossbow, spear, spyglass, brush"none"Specifies which animation to play when the the item is used.

Example from the game files

This is how vanilla apple uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:use_animation": {
    "value": "eat"
  }
}

Used by 1

Vanilla items with minecraft:use_animation in their definition:

apple

Related components