Skip to main content

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

Disarm Entity

The arc:disarm_entity reward type causes the target entity to drop an item from a specific slot.

Parameters

ParameterTypeRequiredDefaultDescription
item_targetArcItemTargetOptionalMAIN_HANDWhich slot to disarm.
position_targetArcPositionTargetOptionalENTITYWhere to drop the item.

Example

The following example disarms the opponent's main hand when dealing a critical hit.

data/my_datapack/arc/crit_disarm.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_hurt_entity",
"conditions": [
{
"type": "arc:critical_hit"
}
],
"rewards": [
{
"type": "arc:disarm_entity",
"item_target": "MAIN_HAND"
}
]
}

Compatible Action Types