Entity Types
The arc:entity_types condition type checks if an entity is one of several specified types.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
entity_types | EntityType[] | ✅Required | - | A list of entity types to check. |
Example
The following example will reward the player with a bone for killing any skeleton-type mob.
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_kill_entity",
"conditions": [
{
"type": "arc:entity_types",
"entity_types": [
"minecraft:skeleton",
"minecraft:stray",
"minecraft:wither_skeleton"
]
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:bone" }
}
]
}
Compatible Action Types
🛡️ On Block With Shield
The arc:onblockwith_shield action type is triggered when a player successfully blocks damage using a shield.
🐑 On Breed Animal
The arc:onbreedanimal action type is triggered when a player breeds two animals.
💀 On Death
The arc:on_death action type is triggered when the player dies.
🪣 On Drop Item
The arc:ondropitem action type is triggered when a player drops an item.
💉 On Effect Added
The arc:onaddeffect action type is triggered when a player receives a potion effect.
🤕 On Get Hurt
The arc:ongethurt action type is triggered when a player takes damage.
🗡️ 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 Pickup Item
The arc:onpickupitem action type is triggered when a player picks up an item from the ground.
🎣 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).
🤝 On Trade With Villager
The arc:ontradewith_villager action type is triggered when a player successfully completes a trade with a Villager or Wandering Trader.