tell @a[team=nl_dev] "function next_level:custom_blocks/diamond_anvil/reroll/Vanilla_item ok!"

# Iron # 
execute if entity @e[nbt={Item:{id:"minecraft:iron_sword"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/iron/sword
execute if entity @e[nbt={Item:{id:"minecraft:iron_pickaxe"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/iron/pickaxe
execute if entity @e[nbt={Item:{id:"minecraft:iron_axe"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/iron/axe
execute if entity @e[nbt={Item:{id:"minecraft:iron_hoe"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/iron/hoe
execute if entity @e[nbt={Item:{id:"minecraft:iron_shovel"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/iron/shovel

execute if entity @e[nbt={Item:{id:"minecraft:shield"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/iron/shield

execute if entity @e[nbt={Item:{id:"minecraft:iron_helmet"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/iron/helmet
execute if entity @e[nbt={Item:{id:"minecraft:iron_chestplate"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/iron/chestplate
execute if entity @e[nbt={Item:{id:"minecraft:iron_leggings"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/iron/leggings
execute if entity @e[nbt={Item:{id:"minecraft:iron_boots"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/iron/boots

# Golden # 
execute if entity @e[nbt={Item:{id:"minecraft:golden_sword"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/golden/sword
execute if entity @e[nbt={Item:{id:"minecraft:golden_pickaxe"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/golden/pickaxe
execute if entity @e[nbt={Item:{id:"minecraft:golden_axe"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/golden/axe
execute if entity @e[nbt={Item:{id:"minecraft:golden_hoe"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/golden/hoe
execute if entity @e[nbt={Item:{id:"minecraft:golden_shovel"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/golden/shovel

execute if entity @e[nbt={Item:{id:"minecraft:golden_helmet"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/golden/helmet
execute if entity @e[nbt={Item:{id:"minecraft:golden_chestplate"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/golden/chestplate
execute if entity @e[nbt={Item:{id:"minecraft:golden_leggings"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/golden/leggings
execute if entity @e[nbt={Item:{id:"minecraft:golden_boots"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/golden/boots

# Diamond # 
execute if entity @e[nbt={Item:{id:"minecraft:diamond_sword"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/diamond/sword
execute if entity @e[nbt={Item:{id:"minecraft:diamond_pickaxe"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/diamond/pickaxe
execute if entity @e[nbt={Item:{id:"minecraft:diamond_axe"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/diamond/axe
execute if entity @e[nbt={Item:{id:"minecraft:diamond_hoe"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/diamond/hoe
execute if entity @e[nbt={Item:{id:"minecraft:diamond_shovel"}}] run loot replace block ~ ~ ~ container.10 loot next_level:tools/diamond/shovel

execute if entity @e[nbt={Item:{id:"minecraft:diamond_helmet"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/diamond/helmet
execute if entity @e[nbt={Item:{id:"minecraft:diamond_chestplate"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/diamond/chestplate
execute if entity @e[nbt={Item:{id:"minecraft:diamond_leggings"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/diamond/leggings
execute if entity @e[nbt={Item:{id:"minecraft:diamond_boots"}}] run loot replace block ~ ~ ~ container.10 loot next_level:gear/diamond/boots

execute at @s as @e[distance=..1,tag=UI_Reroll,limit=1] run data modify entity @s Item set from block ~ ~ ~ Items.[{Slot:10b}]
