Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Is Blocking

The arc:is_blocking condition type checks if the player is currently using a shield.

Parameters

This condition type does not have any parameters.

Example

The following example prevents knockback if the player is blocking.

data/my_datapack/arc/steady_stance.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_get_hurt",
"conditions": [
{
"type": "arc:is_blocking"
}
],
"rewards": [
{
"type": "arc:effect",
"effect": {
"id": "minecraft:knockback_resistance",
"duration": 20,
"amplifier": 0
}
}
]
}

Compatible Action Types