Skip to main content

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

Pull Entity

The arc:pull_entity reward type pulls the target entity towards the player.

Parameters

ParameterTypeRequiredDefaultDescription
forcedoubleOptional1Force of pull.

Example

The following example pulls enemies closer when hitting them while sneaking.

data/my_datapack/arc/magnet_strike.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_hurt_entity",
"conditions": [
{
"type": "arc:is_sneaking"
}
],
"rewards": [
{
"type": "arc:pull_entity",
"force": 0.5
}
]
}

Compatible Action Types