Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Item Stack Check

Corgi Taco edited this page Dec 28, 2021 · 6 revisions

Item stack check lets you check the different properties of item (stacks).

  • item is the registry ID of the item being checked.
  • durability_is, stacksize_is, enchantment_check are optional fields but one must be specified in order for this condition to function.
  • durability_is & stacksize_is use a double comparator.
  • enchantment_check lets you check the level of a specific enchantment with a double comparator.

Example 1: Check if a diamond sword has a durabilty over 500 & if it has a greater than sharpness 1 enchantment.

   "item": "minecraft:diamond_sword",
   "durability_is": ">500",
   "enchantment_check": {
     "minecraft:sharpness": ">1"
   }

Example 2: Check if there's more than 32 torches.

  "item": "minecraft:torch",
  "stack_size_is": ">32"

Clone this wiki locally