Skip to main content

Attack Speed Multiplier

The arc:attack_speed_multiplier reward type modifies the player's attack speed.

Parameters

ParameterTypeRequiredDefaultDescription
multiplierfloatRequired-No default valueThe multiplier for the attack speed.

Example

The following example will double the player's attack speed when they are holding a wooden sword.

data/my_datapack/arc/fast_wood_sword.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_get_attack_speed",
"conditions": [
{
"type": "arc:item_in_hand",
"item": {
"id": "minecraft:wooden_sword"
}
}
],
"rewards": [
{
"type": "arc:attack_speed_multiplier",
"multiplier": 2.0
}
]
}

## Compatible Action Types

<CompatibleActionTypes />