execute as @s[level=..4] run tellraw @s ["",{"text":"[minecraft:next_level]: ","color":"gold"},{"text":"You don't have enough levels for that!","color":"red"}]
execute as @s[level=..4] at @s as @p run playsound minecraft:entity.experience_orb.pickup voice @s ~ ~ ~ 1 0

execute as @s[level=5..] at @s as @e[tag=nl_Anvil,limit=1,sort=nearest,distance=..7] run function next_level:custom_blocks/diamond_anvil/reroll/tools/spawn_item
clear @s minecraft:barrier{nl_Reroll.Tool:1b} 1
scoreboard players set @s nl.Reroll 0 