Skip to main content

Move to Entity

The arc:move_to_entity reward type pulls the player towards the target entity's location.

Parameters

ParameterTypeRequiredDefaultDescription
forcefloatRequired-No default valueThe force to move the player with.

Example

The following example will pull the player towards a cow when they reel in a fishing rod that has hooked the cow.

data/my_datapack/arc/grappling_hook_cow.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_rod_reel_in",
"conditions": [
{
"type": "arc:entity_type",
"entity_type": "minecraft:cow"
}
],
"rewards": [
{
"type": "arc:move_to_entity",
"force": 1.5
}
]
}

## Compatible Action Types

<CompatibleActionTypes />