1. Wiki
  2. /Items
  3. /minecraft:swing_duration

minecraft:swing_duration

Don't want to write this by hand? GodCraft sets minecraft:swing_duration for you with a switch.Get GodCraft

Overview

minecraft:swing_duration is an item component: it goes in the components object of a custom item. Changes how long the arm swing animation lasts when mining or attacking with the item. This is only a visual change: attack speed stays the same.

Fields

FieldTypeDefaultDescription
valuenumber0.3Length of the swing in seconds.Range: 0 to …

Example

Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):

BP/items/<name>.json
{
  "minecraft:swing_duration": {
    "value": 0.3
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more