clear @s minecraft:emerald{nl_Enchant_Slot1:1b} 
scoreboard players set @s nl.Enchant 0

execute as @s[level=..9] run playsound minecraft:entity.experience_orb.pickup voice @a[distance=..10] ~ ~ ~ 1 0
execute as @s[level=..9] run tellraw @s ["",{"text":"[minecraft:next_level]: ","color":"gold"},{"text":"You don't have enough levels for that!","color":"red"}]
execute as @s[level=10..] at @s as @e[tag=nl_Enchanter,limit=1,sort=nearest,distance=..7] run function next_level:custom_blocks/emerald_enchanter/enchant_slot1/spawn_item
