Skip to main content

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

Hand

The arc:hand condition type checks which hand was used to perform an interaction.

Parameters

ParameterTypeRequiredDefaultDescription
handInteractionHandRequired-MAIN_HAND or OFF_HAND.

Example

The following example only allows a specific interaction if done with the off-hand.

data/my_datapack/arc/offhand_interact.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_interact_block",
"conditions": [
{
"type": "arc:hand",
"hand": "OFF_HAND"
}
],
"rewards": [
{
"type": "arc:command",
"command": "say You used your off-hand!"
}
]
}

Compatible Action Types