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 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).