    # Spawn Tool #
# Wooden Tools #
execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_sword",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_axe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_hoe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_pickaxe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_shovel",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant

# stone Tools #
execute as @a[nbt={SelectedItem:{id:"minecraft:stone_sword",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:stone_axe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:stone_hoe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:stone_pickaxe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:stone_shovel",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant

# iron Tools #
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_sword",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_axe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_hoe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_pickaxe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_shovel",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant

execute as @a[nbt={SelectedItem:{id:"minecraft:shield",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant

# golden Tools #
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_sword",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_axe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_hoe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_pickaxe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_shovel",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant

# diamond Tools #
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_sword",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_axe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_hoe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_pickaxe",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_shovel",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant

# Wooden Tools #
execute as @s[nbt={SelectedItem:{id:"minecraft:wooden_sword"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/wooden/sword
execute as @s[nbt={SelectedItem:{id:"minecraft:wooden_axe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/wooden/axe
execute as @s[nbt={SelectedItem:{id:"minecraft:wooden_hoe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/wooden/hoe
execute as @s[nbt={SelectedItem:{id:"minecraft:wooden_pickaxe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/wooden/pickaxe
execute as @s[nbt={SelectedItem:{id:"minecraft:wooden_shovel"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/wooden/shovel

# stone Tools #
execute as @s[nbt={SelectedItem:{id:"minecraft:stone_sword"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/stone/sword
execute as @s[nbt={SelectedItem:{id:"minecraft:stone_axe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/stone/axe
execute as @s[nbt={SelectedItem:{id:"minecraft:stone_hoe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/stone/hoe
execute as @s[nbt={SelectedItem:{id:"minecraft:stone_pickaxe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/stone/pickaxe
execute as @s[nbt={SelectedItem:{id:"minecraft:stone_shovel"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/stone/shovel

# iron Tools #
execute as @s[nbt={SelectedItem:{id:"minecraft:iron_sword"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/iron/sword
execute as @s[nbt={SelectedItem:{id:"minecraft:iron_axe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/iron/axe
execute as @s[nbt={SelectedItem:{id:"minecraft:iron_hoe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/iron/hoe
execute as @s[nbt={SelectedItem:{id:"minecraft:iron_pickaxe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/iron/pickaxe
execute as @s[nbt={SelectedItem:{id:"minecraft:iron_shovel"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/iron/shovel

execute as @s[nbt={SelectedItem:{id:"minecraft:shield"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/iron/shield

# golden Tools #
execute as @s[nbt={SelectedItem:{id:"minecraft:golden_sword"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/golden/sword
execute as @s[nbt={SelectedItem:{id:"minecraft:golden_axe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/golden/axe
execute as @s[nbt={SelectedItem:{id:"minecraft:golden_hoe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/golden/hoe
execute as @s[nbt={SelectedItem:{id:"minecraft:golden_pickaxe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/golden/pickaxe
execute as @s[nbt={SelectedItem:{id:"minecraft:golden_shovel"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/golden/shovel

# diamond Tools #
execute as @s[nbt={SelectedItem:{id:"minecraft:diamond_sword"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/diamond/sword
execute as @s[nbt={SelectedItem:{id:"minecraft:diamond_axe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/diamond/axe
execute as @s[nbt={SelectedItem:{id:"minecraft:diamond_hoe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/diamond/hoe
execute as @s[nbt={SelectedItem:{id:"minecraft:diamond_pickaxe"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/diamond/pickaxe
execute as @s[nbt={SelectedItem:{id:"minecraft:diamond_shovel"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:tools/diamond/shovel

    # Spawn Tool #
# Wooden Tools #
execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_sword",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_axe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_hoe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_pickaxe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:wooden_shovel",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool

# stone Tools #
execute as @a[nbt={SelectedItem:{id:"minecraft:stone_sword",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:stone_axe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:stone_hoe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:stone_pickaxe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:stone_shovel",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool

# iron Tools #
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_sword",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_axe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_hoe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_pickaxe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_shovel",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool

execute as @a[nbt={SelectedItem:{id:"minecraft:shield",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor

# golden Tools #
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_sword",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_axe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_hoe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_pickaxe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_shovel",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool

# diamond Tools #
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_sword",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_axe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_hoe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_pickaxe",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_shovel",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_tool

# Armor # 
# Check Enchant # 

execute as @a[nbt={SelectedItem:{id:"minecraft:leather_helmet",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:leather_chestplate",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:leather_leggings",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:leather_boots",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:leather_helmet"}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_head
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:leather_chestplate"}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_chest
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:leather_leggings"}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_legs
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:leather_boots"}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_feet

execute as @a[nbt={SelectedItem:{id:"minecraft:iron_helmet",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_chestplate",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_leggings",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_boots",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:iron_helmet"}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_head
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:iron_chestplate"}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_chest
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:iron_leggings"}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_legs
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:iron_boots"}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_feet

execute as @a[nbt={SelectedItem:{id:"minecraft:chainmail_helmet",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:chainmail_chestplate",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:chainmail_leggings",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:chainmail_boots",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:chainmail_helmet"}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_head
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:chainmail_chestplate"}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_chest
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:chainmail_leggings"}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_legs
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:chainmail_boots"}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_feet

execute as @a[nbt={SelectedItem:{id:"minecraft:golden_helmet",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_chestplate",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_leggings",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_boots",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:golden_helmet"}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_head
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:golden_chestplate"}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_chest
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:golden_leggings"}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_legs
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:golden_boots"}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_feet

execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_helmet",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_chestplate",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_leggings",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_boots",tag:{Enchantments:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/check_enchant
execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:diamond_helmet"}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_head
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:diamond_chestplate"}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_chest
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:diamond_leggings"}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_legs
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:diamond_boots"}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{nl_QualityCheck:1b}}]}] at @s run function next_level:quality/check_enchant_feet

# Leather Armor #
execute as @s[nbt={SelectedItem:{id:"minecraft:leather_helmet"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/leather/helmet
execute as @s[nbt={SelectedItem:{id:"minecraft:leather_chestplate"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/leather/chestplate
execute as @s[nbt={SelectedItem:{id:"minecraft:leather_leggings"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/leather/leggings
execute as @s[nbt={SelectedItem:{id:"minecraft:leather_boots"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/leather/boots

execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:leather_helmet"}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.head loot next_level:gear/leather/helmet
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:leather_chestplate"}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.chest loot next_level:gear/leather/chestplate
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:leather_leggings"}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.legs loot next_level:gear/leather/leggings
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:leather_boots"}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.feet loot next_level:gear/leather/boots

# chainmail Armor #
execute as @s[nbt={SelectedItem:{id:"minecraft:chainmail_helmet"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/chainmail/helmet
execute as @s[nbt={SelectedItem:{id:"minecraft:chainmail_chestplate"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/chainmail/chestplate
execute as @s[nbt={SelectedItem:{id:"minecraft:chainmail_leggings"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/chainmail/leggings
execute as @s[nbt={SelectedItem:{id:"minecraft:chainmail_boots"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/chainmail/boots

execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:chainmail_helmet"}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.head loot next_level:gear/chainmail/helmet
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:chainmail_chestplate"}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.chest loot next_level:gear/chainmail/chestplate
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:chainmail_leggings"}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.legs loot next_level:gear/chainmail/leggings
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:chainmail_boots"}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.feet loot next_level:gear/chainmail/boots

# iron Armor #
execute as @s[nbt={SelectedItem:{id:"minecraft:iron_helmet"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/iron/helmet
execute as @s[nbt={SelectedItem:{id:"minecraft:iron_chestplate"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/iron/chestplate
execute as @s[nbt={SelectedItem:{id:"minecraft:iron_leggings"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/iron/leggings
execute as @s[nbt={SelectedItem:{id:"minecraft:iron_boots"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/iron/boots

execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:iron_helmet"}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.head loot next_level:gear/iron/helmet
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:iron_chestplate"}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.chest loot next_level:gear/iron/chestplate
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:iron_leggings"}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.legs loot next_level:gear/iron/leggings
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:iron_boots"}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.feet loot next_level:gear/iron/boots

# golden Armor #
execute as @s[nbt={SelectedItem:{id:"minecraft:golden_helmet"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/golden/helmet
execute as @s[nbt={SelectedItem:{id:"minecraft:golden_chestplate"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/golden/chestplate
execute as @s[nbt={SelectedItem:{id:"minecraft:golden_leggings"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/golden/leggings
execute as @s[nbt={SelectedItem:{id:"minecraft:golden_boots"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/golden/boots

execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:golden_helmet"}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.head loot next_level:gear/golden/helmet
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:golden_chestplate"}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.chest loot next_level:gear/golden/chestplate
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:golden_leggings"}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.legs loot next_level:gear/golden/leggings
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:golden_boots"}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.feet loot next_level:gear/golden/boots

# diamond Armor #
execute as @s[nbt={SelectedItem:{id:"minecraft:diamond_helmet"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/diamond/helmet
execute as @s[nbt={SelectedItem:{id:"minecraft:diamond_chestplate"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/diamond/chestplate
execute as @s[nbt={SelectedItem:{id:"minecraft:diamond_leggings"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/diamond/leggings
execute as @s[nbt={SelectedItem:{id:"minecraft:diamond_boots"}}] unless entity @s[nbt={SelectedItem:{tag:{AttributeModifiers:[{}]}}}] run loot replace entity @s weapon.mainhand loot next_level:gear/diamond/boots

execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:diamond_helmet"}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.head loot next_level:gear/diamond/helmet
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:diamond_chestplate"}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.chest loot next_level:gear/diamond/chestplate
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:diamond_leggings"}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.legs loot next_level:gear/diamond/leggings
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:diamond_boots"}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{AttributeModifiers:[{}]}}]}] run loot replace entity @s armor.feet loot next_level:gear/diamond/boots

# Spawn Armor # 

# Leather Armor #
execute as @a[nbt={SelectedItem:{id:"minecraft:leather_helmet",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:leather_chestplate",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:leather_leggings",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:leather_boots",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:leather_helmet",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_helmet
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:leather_chestplate",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_chestplate
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:leather_leggings",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_leggings
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:leather_boots",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_boots

# chainmail Armor #
execute as @a[nbt={SelectedItem:{id:"minecraft:chainmail_helmet",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:chainmail_chestplate",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:chainmail_leggings",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:chainmail_boots",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:chainmail_helmet",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_helmet
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:chainmail_chestplate",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_chestplate
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:chainmail_leggings",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_leggings
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:chainmail_boots",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_boots

# iron Armor #
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_helmet",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_chestplate",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_leggings",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:iron_boots",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:iron_helmet",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_helmet
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:iron_chestplate",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_chestplate
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:iron_leggings",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_leggings
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:iron_boots",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_boots

# golden Armor #
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_helmet",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_chestplate",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_leggings",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:golden_boots",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:golden_helmet",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_helmet
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:golden_chestplate",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_chestplate
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:golden_leggings",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_leggings
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:golden_boots",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_boots

# diamond Armor #
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_helmet",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_chestplate",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_leggings",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @a[nbt={SelectedItem:{id:"minecraft:diamond_boots",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:diamond_helmet",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_helmet
execute as @s[nbt={Inventory:[{Slot:102b,id:"minecraft:diamond_chestplate",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:102b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_chestplate
execute as @s[nbt={Inventory:[{Slot:101b,id:"minecraft:diamond_leggings",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:101b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_leggings
execute as @s[nbt={Inventory:[{Slot:100b,id:"minecraft:diamond_boots",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:100b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_boots

# Pumpkin's # 
execute as @a[nbt={SelectedItem:{id:"minecraft:carved_pumpkin",tag:{AttributeModifiers:[{}]}}}] unless entity @s[nbt={SelectedItem:{tag:{nl_QualityCheck:1b}}}] at @s run function next_level:quality/spawn_armor
execute as @s[nbt={Inventory:[{Slot:103b,id:"minecraft:carved_pumpkin",tag:{AttributeModifiers:[{}]}}]}] unless entity @s[nbt={Inventory:[{Slot:103b,tag:{nl_QualityCheck:1b}}]}] run function next_level:quality/spawn_helmet


