Data component format/swing animation common

Minecraft Wiki article. Categories: Data_component_format_subpages

📌 Mirrored from Minecraft Wiki

This article is reproduced from Data component format/swing animation common on the Minecraft Wiki. Mirrored from revision 3704954. 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:(attack|interact)_animation
      • [String] type: The animation type. Can be whack or stab. Defaults to whack.
      • [Int] duration: A positive integer that determines the animation's duration in ticks. Defaults to 6 game ticks (0.3 seconds).

Sources