Skip to main content

Entity Type

The arc:entity_type condition type checks if an entity matches a specific type.

Parameters

ParameterTypeRequiredDefaultDescription
entity_typeEntityTypeRequired-The entity type to check.

Example

The following example will reward the player with a bone every time they kill a skeleton.

data/my_datapack/arc/bone_from_skeleton.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_kill_entity",
"conditions": [
{
"type": "arc:entity_type",
"entity_type": "minecraft:skeleton"
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:bone" }
}
]
}

Compatible Action Types