# Clear items #
execute as @e[type=minecraft:item,nbt={Item:{tag:{nl_Enchant_Slot1:1b}}}] run kill @s
execute at @s unless block ~ ~ ~ minecraft:trapped_chest run function next_level:custom_blocks/emerald_enchanter/drop

# Particles # 
execute at @s if entity @p[distance=..5] run particle minecraft:enchant ~ ~1.5 ~ 0 0 0 1 1
execute at @s if entity @p[distance=..3] run particle minecraft:dust 0 1 0 1 ~ ~0.8 ~ 0.25 0.1 0.25 1 1

# run GUI # 
execute at @s run function next_level:custom_blocks/emerald_enchanter/gui
