Entity In Block
The arc:entity_in_block condition type checks if an entity is currently inside a specific block.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
block | Block | ✅Required | - | The block to check. |
Example
The following example will pull the player towards their fishing hook only if the hook is in the air, effectively creating a grappling hook.
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_rod_reel_in",
"conditions": [
{
"type": "arc:entity_in_block",
"block": "minecraft:air"
}
],
"rewards": [
{
"type": "arc:move_to_entity",
"force": 2.0
}
]
}
Compatible Action Types
🐑 On Breed Animal
The arc:onbreedanimal action type is triggered when a player breeds two animals.
💉 On Effect Added
The arc:oneffectadded action type is triggered when a player receives a new effect.
🗡️ On Hurt Entity
The arc:onhurtentity action type is triggered when a player hurts an entity.
🩸 On Hurt Player
The arc:onhurtplayer action type is triggered when a player hurts another player.
🖱️ On Interact Entity
The arc:oninteractentity action type is triggered when a player interacts with an entity, such as right-clicking it.
💀 On Kill Entity
The arc:onkillentity action type is triggered when a player kills an entity.
🎣 On Rod Reel In
The arc:onrodreel_in action type is triggered when a player reels in a fishing rod.
🏹 On Shoot Projectile
The arc:onshootprojectile action type is triggered when a player shoots a projectile, such as an arrow or a snowball.
🐾 On Tame Animal
The arc:ontameanimal action type is triggered when a player tames an animal.
🏹 On Throw Item
The arc:onthrowitem action type is triggered when a player throws an item (e.g. snowball, egg, ender pearl).