Data component format/interact animation
Minecraft Wiki article. Categories: Data_component_format_subpages
📌 Mirrored from Minecraft Wiki
This article is reproduced from Data component format/interact animation on the Minecraft Wiki. Mirrored from revision 3704965. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
- [NBT Compound / JSON Object] minecraft:interact_animation: The swing animation to play when the item is used to interact with something.
- [String] type: The animation type. Can be
whackorstab. Defaults towhack. - [Int] duration: A positive integer that determines the animation's duration in ticks. Defaults to 6 game ticks (0.3 seconds).
- [String] type: The animation type. Can be
- [NBT Compound / JSON Object] minecraft:interact_animation: The swing animation to play when the item is used to interact with something.
Sources
- Data component format/interact animation — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3704965.