#say roll enchant
tag @s remove nl_Hit_by_Player
# Bleed Damage #
execute at @s if entity @e[type=minecraft:player,sort=nearest,scores={nl.DetectDamage=1..},nbt={SelectedItem:{tag:{nl_Enchant_Bleed:1b}}}] run function next_level:combat/enchantments/bleed

# Infect #
execute at @s if entity @e[type=minecraft:player,sort=nearest,scores={nl.DetectDamage=1..},nbt={SelectedItem:{tag:{nl_Enchant_Infect:1b}}}] run function next_level:combat/enchantments/infect

# Leech Life #
execute at @s if entity @e[type=minecraft:player,sort=nearest,scores={nl.DetectDamage=1..},nbt={SelectedItem:{tag:{nl_Enchant_LeechLife:1b}}}] run function next_level:combat/enchantments/leech

# Stun #
execute at @s if entity @e[type=minecraft:player,sort=nearest,scores={nl.DetectDamage=1..},nbt={SelectedItem:{tag:{nl_Enchant_Stun:1b}}}] run function next_level:combat/enchantments/stun

# Scan # 
execute at @s if entity @e[type=minecraft:player,sort=nearest,scores={nl.DetectDamage=1..},nbt={SelectedItem:{tag:{nl_Enchant_Scan:1b}}}] unless entity @s[tag=nl_Scanned] run function next_level:combat/enchantments/scan

#Soul Slice
execute at @s if entity @e[type=minecraft:player,sort=nearest,scores={nl.DetectDamage=1..},nbt={SelectedItem:{tag:{nl_Enchant_SoulSlice:1b}}}] unless entity @s[tag=nl_Soul_Slice] run function next_level:combat/enchantments/soul_slice
