Skip to main content

Entity Types

The arc:entity_types condition type checks if an entity is one of several specified types.

Parameters

ParameterTypeRequiredDefaultDescription
entity_typesEntityType[]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.

data/my_datapack/arc/bone_from_skeletons.json
{
"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