minecraft:swing_duration for you with a switch.Get GodCraftOverview
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
| Field | Type | Default | Description |
|---|---|---|---|
value | number | 0.3 | Length 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
}
}