
#: Reroll Tools # 
    # Vanilla Tools #
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_sword",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_pickaxe",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_shovel",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_axe",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_hoe",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:golden_sword",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:gold_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:golden_pickaxe",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:gold_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:golden_shovel",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:gold_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:golden_axe",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:gold_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:golden_hoe",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:gold_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_sword",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:diamond"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_pickaxe",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:diamond"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_shovel",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:diamond"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_axe",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:diamond"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_hoe",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:diamond"}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

execute store result score #Custom nl.Reroll run data get block ~ ~ ~ Items[10].tag.CustomModelData
execute if score #Custom nl.Reroll matches 1.. if block ~ ~ ~ trapped_chest{Items:[{Slot:13b,id:"minecraft:iron_ingot"}]} run replaceitem block ~ ~ ~ container.16 minecraft:air
execute if score #Custom nl.Reroll matches 1.. if block ~ ~ ~ trapped_chest{Items:[{Slot:13b,id:"minecraft:diamond"}]} run replaceitem block ~ ~ ~ container.16 minecraft:air

    # Custom Tools # 
# Amethyst # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_sword",tag:{nl_QualityCheck:1b,nl_ItemID:7b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_pickaxe",tag:{nl_QualityCheck:1b,nl_ItemID:8b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_axe",tag:{nl_QualityCheck:1b,nl_ItemID:9b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_shovel",tag:{nl_QualityCheck:1b,nl_ItemID:10b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_hoe",tag:{nl_QualityCheck:1b,nl_ItemID:11b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

# Dark Quartz # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_sword",tag:{nl_QualityCheck:1b,nl_ItemID:14b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_pickaxe",tag:{nl_QualityCheck:1b,nl_ItemID:15b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_axe",tag:{nl_QualityCheck:1b,nl_ItemID:16b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_shovel",tag:{nl_QualityCheck:1b,nl_ItemID:17b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_hoe",tag:{nl_QualityCheck:1b,nl_ItemID:18b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

# Jade # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_sword",tag:{nl_QualityCheck:1b,nl_ItemID:21b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_pickaxe",tag:{nl_QualityCheck:1b,nl_ItemID:22b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_axe",tag:{nl_QualityCheck:1b,nl_ItemID:23b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_shovel",tag:{nl_QualityCheck:1b,nl_ItemID:24b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_hoe",tag:{nl_QualityCheck:1b,nl_ItemID:25b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

# Topaz # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_sword",tag:{nl_QualityCheck:1b,nl_ItemID:28b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_pickaxe",tag:{nl_QualityCheck:1b,nl_ItemID:29b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_axe",tag:{nl_QualityCheck:1b,nl_ItemID:30b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_shovel",tag:{nl_QualityCheck:1b,nl_ItemID:31b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_hoe",tag:{nl_QualityCheck:1b,nl_ItemID:32b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

# Ruby # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_sword",tag:{nl_QualityCheck:1b,nl_ItemID:35b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_pickaxe",tag:{nl_QualityCheck:1b,nl_ItemID:36b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_axe",tag:{nl_QualityCheck:1b,nl_ItemID:37b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_shovel",tag:{nl_QualityCheck:1b,nl_ItemID:38b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_hoe",tag:{nl_QualityCheck:1b,nl_ItemID:39b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

# Sapphire # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_sword",tag:{nl_QualityCheck:1b,nl_ItemID:42b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_pickaxe",tag:{nl_QualityCheck:1b,nl_ItemID:43b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_axe",tag:{nl_QualityCheck:1b,nl_ItemID:44b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_shovel",tag:{nl_QualityCheck:1b,nl_ItemID:45b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_hoe",tag:{nl_QualityCheck:1b,nl_ItemID:46b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

# Molten # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_sword",tag:{nl_QualityCheck:1b,nl_ItemID:93b}},{Slot:13b,id:"minecraft:fire_charge",tag:{nl_ItemID:88b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_pickaxe",tag:{nl_QualityCheck:1b,nl_ItemID:94b}},{Slot:13b,id:"minecraft:fire_charge",tag:{nl_ItemID:88b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_axe",tag:{nl_QualityCheck:1b,nl_ItemID:95b}},{Slot:13b,id:"minecraft:fire_charge",tag:{nl_ItemID:88b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_shovel",tag:{nl_QualityCheck:1b,nl_ItemID:96b}},{Slot:13b,id:"minecraft:fire_charge",tag:{nl_ItemID:88b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_hoe",tag:{nl_QualityCheck:1b,nl_ItemID:97b}},{Slot:13b,id:"minecraft:fire_charge",tag:{nl_ItemID:88b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

# Cactus # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_sword",tag:{nl_QualityCheck:1b,nl_ItemID:104b}},{Slot:13b,id:"minecraft:poisonous_potato",tag:{nl_ItemID:99b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_pickaxe",tag:{nl_QualityCheck:1b,nl_ItemID:105b}},{Slot:13b,id:"minecraft:poisonous_potato",tag:{nl_ItemID:99b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_axe",tag:{nl_QualityCheck:1b,nl_ItemID:106b}},{Slot:13b,id:"minecraft:poisonous_potato",tag:{nl_ItemID:99b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_shovel",tag:{nl_QualityCheck:1b,nl_ItemID:107b}},{Slot:13b,id:"minecraft:poisonous_potato",tag:{nl_ItemID:99b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_hoe",tag:{nl_QualityCheck:1b,nl_ItemID:108b}},{Slot:13b,id:"minecraft:poisonous_potato",tag:{nl_ItemID:99b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

# Frozen # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_sword",tag:{nl_QualityCheck:1b,nl_ItemID:115b}},{Slot:13b,id:"minecraft:snow",tag:{nl_ItemID:110b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_pickaxe",tag:{nl_QualityCheck:1b,nl_ItemID:116b}},{Slot:13b,id:"minecraft:snow",tag:{nl_ItemID:110b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_axe",tag:{nl_QualityCheck:1b,nl_ItemID:117b}},{Slot:13b,id:"minecraft:snow",tag:{nl_ItemID:110b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_shovel",tag:{nl_QualityCheck:1b,nl_ItemID:118b}},{Slot:13b,id:"minecraft:snow",tag:{nl_ItemID:110b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_hoe",tag:{nl_QualityCheck:1b,nl_ItemID:119b}},{Slot:13b,id:"minecraft:snow",tag:{nl_ItemID:110b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

# Ethereal # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_sword",tag:{nl_QualityCheck:1b,nl_ItemID:126b}},{Slot:13b,id:"minecraft:red_mushroom",tag:{nl_ItemID:121b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_pickaxe",tag:{nl_QualityCheck:1b,nl_ItemID:127b}},{Slot:13b,id:"minecraft:red_mushroom",tag:{nl_ItemID:121b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_axe",tag:{nl_QualityCheck:1b,nl_ItemID:128b}},{Slot:13b,id:"minecraft:red_mushroom",tag:{nl_ItemID:121b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_shovel",tag:{nl_QualityCheck:1b,nl_ItemID:129b}},{Slot:13b,id:"minecraft:red_mushroom",tag:{nl_ItemID:121b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_hoe",tag:{nl_QualityCheck:1b,nl_ItemID:130b}},{Slot:13b,id:"minecraft:red_mushroom",tag:{nl_ItemID:121b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/tools/setup_op

# Reroll Armor # 
    # Vanilla Armor #
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_helmet",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:leather"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_chestplate",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:leather"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_leggings",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:leather"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_boots",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:leather"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_helmet",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_chestplate",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_leggings",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:iron_boots",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:shield",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:chainmail_helmet",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:chainmail_chestplate",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:chainmail_leggings",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:chainmail_boots",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:iron_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:golden_helmet",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:gold_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:golden_chestplate",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:gold_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:golden_leggings",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:gold_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:golden_boots",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:gold_ingot"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_helmet",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:diamond"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_chestplate",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:diamond"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_leggings",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:diamond"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:diamond_boots",tag:{nl_QualityCheck:1b}},{Slot:13b,id:"minecraft:diamond"}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

execute store result score #Custom nl.Reroll run data get block ~ ~ ~ Items[10].tag.CustomModelData
execute if score #Custom nl.Reroll matches 1.. if block ~ ~ ~ trapped_chest{Items:[{Slot:13b,id:"minecraft:iron_ingot"}]} run replaceitem block ~ ~ ~ container.16 minecraft:air
execute if score #Custom nl.Reroll matches 1.. if block ~ ~ ~ trapped_chest{Items:[{Slot:13b,id:"minecraft:diamond"}]} run replaceitem block ~ ~ ~ container.16 minecraft:air

# Custom Armor #
    # Amethyst Armor # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_helmet",tag:{nl_QualityCheck:1b,nl_ItemID:49b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_chestplate",tag:{nl_QualityCheck:1b,nl_ItemID:50b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_leggings",tag:{nl_QualityCheck:1b,nl_ItemID:51b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_boots",tag:{nl_QualityCheck:1b,nl_ItemID:52b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:carved_pumpkin",tag:{nl_QualityCheck:1b,nl_ItemID:73b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:shield",tag:{nl_QualityCheck:1b,nl_ItemID:13b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:1b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

    # Dark Quartz #
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_helmet",tag:{nl_QualityCheck:1b,nl_ItemID:53b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_chestplate",tag:{nl_QualityCheck:1b,nl_ItemID:54b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_leggings",tag:{nl_QualityCheck:1b,nl_ItemID:55b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_boots",tag:{nl_QualityCheck:1b,nl_ItemID:56b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:carved_pumpkin",tag:{nl_QualityCheck:1b,nl_ItemID:74b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:shield",tag:{nl_QualityCheck:1b,nl_ItemID:20b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:2b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

    # Jade # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_helmet",tag:{nl_QualityCheck:1b,nl_ItemID:57b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_chestplate",tag:{nl_QualityCheck:1b,nl_ItemID:58b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_leggings",tag:{nl_QualityCheck:1b,nl_ItemID:59b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_boots",tag:{nl_QualityCheck:1b,nl_ItemID:60b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:carved_pumpkin",tag:{nl_QualityCheck:1b,nl_ItemID:75b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:shield",tag:{nl_QualityCheck:1b,nl_ItemID:27b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:3b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

    # Topaz # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_helmet",tag:{nl_QualityCheck:1b,nl_ItemID:61b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_chestplate",tag:{nl_QualityCheck:1b,nl_ItemID:62b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_leggings",tag:{nl_QualityCheck:1b,nl_ItemID:63b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_boots",tag:{nl_QualityCheck:1b,nl_ItemID:64b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:carved_pumpkin",tag:{nl_QualityCheck:1b,nl_ItemID:76b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:shield",tag:{nl_QualityCheck:1b,nl_ItemID:34b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:4b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

    # Ruby # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_helmet",tag:{nl_QualityCheck:1b,nl_ItemID:65b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_chestplate",tag:{nl_QualityCheck:1b,nl_ItemID:66b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_leggings",tag:{nl_QualityCheck:1b,nl_ItemID:67b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_boots",tag:{nl_QualityCheck:1b,nl_ItemID:68b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:carved_pumpkin",tag:{nl_QualityCheck:1b,nl_ItemID:77b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:shield",tag:{nl_QualityCheck:1b,nl_ItemID:41b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:5b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

    # Sapphire # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_helmet",tag:{nl_QualityCheck:1b,nl_ItemID:69b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_chestplate",tag:{nl_QualityCheck:1b,nl_ItemID:70b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_leggings",tag:{nl_QualityCheck:1b,nl_ItemID:71b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_boots",tag:{nl_QualityCheck:1b,nl_ItemID:72b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:carved_pumpkin",tag:{nl_QualityCheck:1b,nl_ItemID:78b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:shield",tag:{nl_QualityCheck:1b,nl_ItemID:48b}},{Slot:13b,id:"minecraft:emerald",tag:{nl_ItemID:6b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op

    # Molten #
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:carved_pumpkin",tag:{nl_QualityCheck:1b,nl_ItemID:89b}},{Slot:13b,id:"minecraft:fire_charge",tag:{nl_ItemID:88b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_chestplate",tag:{nl_QualityCheck:1b,nl_ItemID:90b}},{Slot:13b,id:"minecraft:fire_charge",tag:{nl_ItemID:88b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_leggings",tag:{nl_QualityCheck:1b,nl_ItemID:91b}},{Slot:13b,id:"minecraft:fire_charge",tag:{nl_ItemID:88b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_boots",tag:{nl_QualityCheck:1b,nl_ItemID:92b}},{Slot:13b,id:"minecraft:fire_charge",tag:{nl_ItemID:88b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
    # Cactus # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:carved_pumpkin",tag:{nl_QualityCheck:1b,nl_ItemID:100b}},{Slot:13b,id:"minecraft:poisonous_potato",tag:{nl_ItemID:99b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_chestplate",tag:{nl_QualityCheck:1b,nl_ItemID:101b}},{Slot:13b,id:"minecraft:poisonous_potato",tag:{nl_ItemID:99b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_leggings",tag:{nl_QualityCheck:1b,nl_ItemID:102b}},{Slot:13b,id:"minecraft:poisonous_potato",tag:{nl_ItemID:99b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_boots",tag:{nl_QualityCheck:1b,nl_ItemID:103b}},{Slot:13b,id:"minecraft:poisonous_potato",tag:{nl_ItemID:99b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
    # Frozen # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:carved_pumpkin",tag:{nl_QualityCheck:1b,nl_ItemID:111b}},{Slot:13b,id:"minecraft:snow",tag:{nl_ItemID:110b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_chestplate",tag:{nl_QualityCheck:1b,nl_ItemID:112b}},{Slot:13b,id:"minecraft:snow",tag:{nl_ItemID:110b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_leggings",tag:{nl_QualityCheck:1b,nl_ItemID:113b}},{Slot:13b,id:"minecraft:snow",tag:{nl_ItemID:110b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_boots",tag:{nl_QualityCheck:1b,nl_ItemID:114b}},{Slot:13b,id:"minecraft:snow",tag:{nl_ItemID:110b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
    # Ethereal # 
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:carved_pumpkin",tag:{nl_QualityCheck:1b,nl_ItemID:122b}},{Slot:13b,id:"minecraft:red_mushroom",tag:{nl_ItemID:121b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_chestplate",tag:{nl_QualityCheck:1b,nl_ItemID:123b}},{Slot:13b,id:"minecraft:red_mushroom",tag:{nl_ItemID:121b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_leggings",tag:{nl_QualityCheck:1b,nl_ItemID:124b}},{Slot:13b,id:"minecraft:red_mushroom",tag:{nl_ItemID:121b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
execute if block ~ ~ ~ trapped_chest{Items:[{Slot:10b,id:"minecraft:leather_boots",tag:{nl_QualityCheck:1b,nl_ItemID:125b}},{Slot:13b,id:"minecraft:red_mushroom",tag:{nl_ItemID:121b}}]} run function next_level:custom_blocks/diamond_anvil/reroll/gear/setup_op
