Items
The arc:items condition type checks if an item is one of several specified items or belongs to a specified item tag.
Parametersโ
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
items | string[] | โ 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.
{
"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โ
๐งช On Brew Potion
The arc:onbrewpotion action type is triggered when a player brews a potion.
๐ ๏ธ On Craft Item
The arc:oncraftitem action type is triggered when a player crafts an item.
๐ฅค On Drink
The arc:on_drink action type is triggered when a player drinks an item (e.g., potion, milk bucket, etc.).
๐ชฃ On Drop Item
The arc:ondropitem action type is triggered when a player drops an item.
๐ฝ๏ธ On Eat
The arc:on_eat action type is triggered when a player eats an item.
โจ On Enchant Item
The arc:onenchantitem action type is triggered when a player enchants an item.
๐ฃ On Fished Up Item
The arc:onfishedup_item action type is triggered when a player fishes up an item.
โ๏ธ On Get Attack Speed
The arc:getattackspeed action type is used to retrieve the attack speed of a player.
โก On Get Destroy Speed
The arc:ongetdestroy_speed action type is triggered when a player is determining how quickly they can break a block. This action type allows you to modify the destroy speed based on various conditions.
๐ก๏ธ On Hurt Item
The arc:onhurtitem action type is triggered when a player hurts/damages an item.
๐ฑ๏ธ On Interact Entity
The arc:oninteractentity action type is triggered when a player interacts with an entity, such as right-clicking it.
๐น On Shoot Projectile
The arc:onshootprojectile action type is triggered when a player shoots a projectile, such as an arrow or a snowball.
๐ฅ On Smelt Item
The arc:onsmeltitem action type is triggered when a player takes an item out of a furnace, smoker, or blast furnace. Just like experience orbs in vanilla Minecraft, this action also counts the items that are taken out with a hopper. As long as the player takes out one of the smelted items, the action will be triggered. The action is called for every item smelted individually, regardless of how many are taken out at once.
๐น On Throw Item
The arc:onthrowitem action type is triggered when a player throws an item (e.g. snowball, egg, ender pearl).
โ๏ธ On Use Anvil
The arc:onuseanvil action type is triggered when a player uses an anvil to repair or rename an item.
๐ฑ๏ธ On Use Item
The arc:onuseitem action type is triggered when a player uses an item (right-clicks with an item).