# Gem-ology #
execute as @s[scores={nl.Rng=1..25}] run function next_level:custom_blocks/emerald_enchanter/enchant_slot1/custom_enchantments/gemology
# Veinminer #
execute as @s[scores={nl.Rng=26..50}] run function next_level:custom_blocks/emerald_enchanter/enchant_slot1/custom_enchantments/veinminer
# Autosmelt #
execute as @s[scores={nl.Rng=51..75}] run function next_level:custom_blocks/emerald_enchanter/enchant_slot1/custom_enchantments/autosmelt
# Hasteburst #
execute as @s[scores={nl.Rng=76..100}] run function next_level:custom_blocks/emerald_enchanter/enchant_slot1/custom_enchantments/haste_burst



execute as @e[tag=nl_Enchanter,limit=1,sort=nearest,distance=..7] at @s run function next_level:custom_blocks/emerald_enchanter/remove_emerald
execute at @s run playsound minecraft:entity.experience_orb.pickup voice @a[distance=..10] ~ ~ ~ 1 1
execute at @s run xp add @p[level=10..] -10 levels 

