Skip to main content

Item Conditions

Conditions that test an item stack.

Amount

Compares the number of items in the stack with a number.

Armor Value

Compares the item's armor value with a number.

Durability

Compares the item's remaining durability with a number.

Empty

Checks whether there is no item at all.

Enchantable

Checks whether the item can be enchanted.

Enchantment

Compares the level of an enchantment on the item, or the number of enchantments it has, with a number.

Fireproof

Checks whether the item stack survives fire and lava.

Food

Checks whether the item is food.

Fuel

Compares how long the item burns as furnace fuel with a number.

Harvest Level

Compares the harvest level of the item's material with a number.

Has Power

Checks whether the item has a given power embedded in it.

Holder Condition

Tests an entity condition against whoever is holding the item.

Ingredient

Checks whether the item matches an ingredient: an item ID, an item tag or a custom ingredient.

Is Block

Passes when the item places a block.

Is Damageable

Checks whether the item has durability that can be used up.

Is Equippable

Checks whether the item can be equipped, optionally in a given slot.

Meat

Passes when the item is meat.

NBT

Checks whether the item's NBT contains the given data.

Power Count

Compares how many powers are embedded in the item with a number.

Relative Durability

Compares the item's durability, as a fraction of its maximum, with a number.

Relative Item Cooldown

Compares the item's cooldown as a fraction of its total.

Script

Passes when a script returns true for the item stack.

Send Condition

Asks an apoli:receive_condition power on the item's holder for the answer.

Smeltable

Checks whether the item can be smelted in a furnace.