Skip to main content

Items

The arc:items condition type checks if an item is one of several specified items or belongs to a specified item tag.

Parametersโ€‹

ParameterTypeRequiredDefaultDescription
itemsstring[]โœ…Required-The items/item tags to check.

Exampleโ€‹

The following example rewards the player with an extra diamond when they smelt any item from the #forge:ores tag.

data/my_datapack/arc/extra_diamond_from_ores.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_smelt_item",
"conditions": [
{
"type": "arc:items",
"items": ["#forge:ores"]
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:diamond" }
}
]
}

Compatible Action Typesโ€‹