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.
  "has_in_hand": {
    "MAIN_HAND": {
      "item": "minecraft:diamond_sword",
      "durability_is": ">500",
      "enchantment_check": {
        "minecraft:sharpness": ">1"
      }
    },
    "OFF_HAND": {
      "item": "minecraft:torch",
      "stack_size_is": ">32"
    }
  }

Clone this wiki locally