This repository was archived by the owner on Sep 5, 2024. It is now read-only.
generated from CorgiTaco-Archive/Forge-Mixin-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
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).
-
itemis the registry ID of the item being checked. -
durability_is,stacksize_is,enchantment_checkare optional fields but one must be specified in order for this condition to function. -
durability_is&stacksize_isuse a double comparator. -
enchantment_checklets 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"