#data modify entity @s[tag=!FoundBaneEnch] Tags append from entity @s[tag=!FoundBaneEnch] Item.tag.StoredEnchantments[0].id
#execute as @s[tag=!FoundBaneEnch] run execute unless entity @s[nbt=!{Tags:["minecraft:bane_of_arthropods"]}] run tag @s[tag=!FoundBaneEnch] add FoundBaneEnch0
#tag @s[tag=!FoundBaneEnch,tag=FoundBaneEnch0] add FoundBaneEnch
#data modify entity @s[tag=!FoundBaneEnch] Tags append from entity @s[tag=!FoundBaneEnch] Item.tag.StoredEnchantments[1].id
#execute as @s[tag=!FoundBaneEnch] run execute unless entity @s[nbt=!{Tags:["minecraft:bane_of_arthropods"]}] run tag @s[tag=!FoundBaneEnch] add FoundBaneEnch1
#tag @s[tag=!FoundBaneEnch,tag=FoundBaneEnch1] add FoundBaneEnch
#data modify entity @s[tag=!FoundBaneEnch] Tags append from entity @s[tag=!FoundBaneEnch] Item.tag.StoredEnchantments[2].id
#execute as @s[tag=!FoundBaneEnch] run execute unless entity @s[nbt=!{Tags:["minecraft:bane_of_arthropods"]}] run tag @s[tag=!FoundBaneEnch] add FoundBaneEnch2
#tag @s[tag=!FoundBaneEnch,tag=FoundBaneEnch2] add FoundBaneEnch
#data modify entity @s[tag=!FoundBaneEnch] Tags append from entity @s[tag=!FoundBaneEnch] Item.tag.StoredEnchantments[3].id
#execute as @s[tag=!FoundBaneEnch] run execute unless entity @s[nbt=!{Tags:["minecraft:bane_of_arthropods"]}] run tag @s[tag=!FoundBaneEnch] add FoundBaneEnch3
#tag @s[tag=!FoundBaneEnch,tag=FoundBaneEnch3] add FoundBaneEnch

#store the level in a tag as well
tag @s[nbt={Item:{tag:{StoredEnchantments:[{lvl:5s, id:"minecraft:bane_of_arthropods"}]}}}] add BOA5
tag @s[nbt={Item:{tag:{StoredEnchantments:[{lvl:4s, id:"minecraft:bane_of_arthropods"}]}}}] add BOA4
tag @s[nbt={Item:{tag:{StoredEnchantments:[{lvl:3s, id:"minecraft:bane_of_arthropods"}]}}}] add BOA3
tag @s[nbt={Item:{tag:{StoredEnchantments:[{lvl:2s, id:"minecraft:bane_of_arthropods"}]}}}] add BOA2
tag @s[nbt={Item:{tag:{StoredEnchantments:[{lvl:1s, id:"minecraft:bane_of_arthropods"}]}}}] add BOA1

#data modify entity @s[tag=FoundBaneEnch0] Tags append from entity @s Item.tag.StoredEnchantments[0].lvl
#data modify entity @s[tag=FoundBaneEnch1] Tags append from entity @s Item.tag.StoredEnchantments[1].lvl
#data modify entity @s[tag=FoundBaneEnch2] Tags append from entity @s Item.tag.StoredEnchantments[2].lvl
#data modify entity @s[tag=FoundBaneEnch3] Tags append from entity @s Item.tag.StoredEnchantments[3].lvl

execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt=!{Item:{tag:{Enchantments:[{id:"minecraft:bane_of_arthropods"}]}}}] add NoBane
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:5s,id:"minecraft:bane_of_arthropods"}]}}}] add Bane5
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:4s,id:"minecraft:bane_of_arthropods"}]}}}] add Bane4
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:3s,id:"minecraft:bane_of_arthropods"}]}}}] add Bane3
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:2s,id:"minecraft:bane_of_arthropods"}]}}}] add Bane2
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:1s,id:"minecraft:bane_of_arthropods"}]}}}] add Bane1
#yes, really, I need a second set because of "lvl:5" and "lvl:5s"
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt=!{Item:{tag:{Enchantments:[{id:"minecraft:bane_of_arthropods"}]}}}] add NoBane
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:5,id:"minecraft:bane_of_arthropods"}]}}}] add Bane5
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:4,id:"minecraft:bane_of_arthropods"}]}}}] add Bane4
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:3,id:"minecraft:bane_of_arthropods"}]}}}] add Bane3
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:2,id:"minecraft:bane_of_arthropods"}]}}}] add Bane2
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:1,id:"minecraft:bane_of_arthropods"}]}}}] add Bane1

execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident] add GotEnchanted


execute at @s[tag=BOA5] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=NoBane] run data modify entity @s Item.tag.Enchantments append value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA5] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=FoundSpecEnch0] run data modify entity @s Item.tag.Enchantments[0] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA5] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=FoundSpecEnch1] run data modify entity @s Item.tag.Enchantments[1] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA5] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=FoundSpecEnch2] run data modify entity @s Item.tag.Enchantments[2] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA5] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=FoundSpecEnch3] run data modify entity @s Item.tag.Enchantments[3] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA5] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=FoundSpecEnch4] run data modify entity @s Item.tag.Enchantments[4] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA5] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=FoundSpecEnch5] run data modify entity @s Item.tag.Enchantments[5] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA5] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=FoundSpecEnch6] run data modify entity @s Item.tag.Enchantments[6] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA5] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=FoundSpecEnch7] run data modify entity @s Item.tag.Enchantments[7] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA5] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=FoundSpecEnch8] run data modify entity @s Item.tag.Enchantments[8] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA5] run execute at @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!Bane5] run kill @s


execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=NoBane] run data modify entity @s Item.tag.Enchantments append value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=FoundSpecEnch0] run data modify entity @s Item.tag.Enchantments[0] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=FoundSpecEnch1] run data modify entity @s Item.tag.Enchantments[1] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=FoundSpecEnch2] run data modify entity @s Item.tag.Enchantments[2] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=FoundSpecEnch3] run data modify entity @s Item.tag.Enchantments[3] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=FoundSpecEnch4] run data modify entity @s Item.tag.Enchantments[4] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=FoundSpecEnch5] run data modify entity @s Item.tag.Enchantments[5] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=FoundSpecEnch6] run data modify entity @s Item.tag.Enchantments[6] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=FoundSpecEnch7] run data modify entity @s Item.tag.Enchantments[7] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=FoundSpecEnch8] run data modify entity @s Item.tag.Enchantments[8] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute at @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!Bane5,tag=!Bane4] run kill @s

execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=Bane4,tag=FoundSpecEnch0] run data modify entity @s Item.tag.Enchantments[0] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=Bane4,tag=FoundSpecEnch1] run data modify entity @s Item.tag.Enchantments[1] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=Bane4,tag=FoundSpecEnch2] run data modify entity @s Item.tag.Enchantments[2] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=Bane4,tag=FoundSpecEnch3] run data modify entity @s Item.tag.Enchantments[3] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=Bane4,tag=FoundSpecEnch4] run data modify entity @s Item.tag.Enchantments[4] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=Bane4,tag=FoundSpecEnch5] run data modify entity @s Item.tag.Enchantments[5] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=Bane4,tag=FoundSpecEnch6] run data modify entity @s Item.tag.Enchantments[6] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=Bane4,tag=FoundSpecEnch7] run data modify entity @s Item.tag.Enchantments[7] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=Bane4,tag=FoundSpecEnch8] run data modify entity @s Item.tag.Enchantments[8] set value {lvl:5, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA4] run execute at @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!Bane5,tag=Bane4] run kill @s

execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=NoBane] run data modify entity @s Item.tag.Enchantments append value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=FoundSpecEnch0] run data modify entity @s Item.tag.Enchantments[0] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=FoundSpecEnch1] run data modify entity @s Item.tag.Enchantments[1] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=FoundSpecEnch2] run data modify entity @s Item.tag.Enchantments[2] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=FoundSpecEnch3] run data modify entity @s Item.tag.Enchantments[3] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=FoundSpecEnch4] run data modify entity @s Item.tag.Enchantments[4] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=FoundSpecEnch5] run data modify entity @s Item.tag.Enchantments[5] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=FoundSpecEnch6] run data modify entity @s Item.tag.Enchantments[6] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=FoundSpecEnch7] run data modify entity @s Item.tag.Enchantments[7] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=FoundSpecEnch8] run data modify entity @s Item.tag.Enchantments[8] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @s run execute at @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!Bane5,tag=!Bane4,tag=!Bane3] run kill @s

execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=Bane3,tag=FoundSpecEnch0] run data modify entity @s Item.tag.Enchantments[0] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=Bane3,tag=FoundSpecEnch1] run data modify entity @s Item.tag.Enchantments[1] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=Bane3,tag=FoundSpecEnch2] run data modify entity @s Item.tag.Enchantments[2] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=Bane3,tag=FoundSpecEnch3] run data modify entity @s Item.tag.Enchantments[3] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=Bane3,tag=FoundSpecEnch4] run data modify entity @s Item.tag.Enchantments[4] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=Bane3,tag=FoundSpecEnch5] run data modify entity @s Item.tag.Enchantments[5] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=Bane3,tag=FoundSpecEnch6] run data modify entity @s Item.tag.Enchantments[6] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=Bane3,tag=FoundSpecEnch7] run data modify entity @s Item.tag.Enchantments[7] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=Bane3,tag=FoundSpecEnch8] run data modify entity @s Item.tag.Enchantments[8] set value {lvl:4, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA3] run execute as @s run execute at @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!Bane5,tag=!Bane4,tag=Bane3] run kill @s



execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=NoBane] run data modify entity @s Item.tag.Enchantments append value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=FoundSpecEnch0] run data modify entity @s Item.tag.Enchantments[0] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=FoundSpecEnch1] run data modify entity @s Item.tag.Enchantments[1] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=FoundSpecEnch2] run data modify entity @s Item.tag.Enchantments[2] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=FoundSpecEnch3] run data modify entity @s Item.tag.Enchantments[3] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=FoundSpecEnch4] run data modify entity @s Item.tag.Enchantments[4] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=FoundSpecEnch5] run data modify entity @s Item.tag.Enchantments[5] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=FoundSpecEnch6] run data modify entity @s Item.tag.Enchantments[6] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=FoundSpecEnch7] run data modify entity @s Item.tag.Enchantments[7] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=FoundSpecEnch8] run data modify entity @s Item.tag.Enchantments[8] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute at @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2] run kill @s


execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=Bane2,tag=FoundSpecEnch0] run data modify entity @s Item.tag.Enchantments[0] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=Bane2,tag=FoundSpecEnch1] run data modify entity @s Item.tag.Enchantments[1] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=Bane2,tag=FoundSpecEnch2] run data modify entity @s Item.tag.Enchantments[2] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=Bane2,tag=FoundSpecEnch3] run data modify entity @s Item.tag.Enchantments[3] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=Bane2,tag=FoundSpecEnch4] run data modify entity @s Item.tag.Enchantments[4] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=Bane2,tag=FoundSpecEnch5] run data modify entity @s Item.tag.Enchantments[5] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=Bane2,tag=FoundSpecEnch6] run data modify entity @s Item.tag.Enchantments[6] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=Bane2,tag=FoundSpecEnch7] run data modify entity @s Item.tag.Enchantments[7] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=Bane2,tag=FoundSpecEnch8] run data modify entity @s Item.tag.Enchantments[8] set value {lvl:3, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA2] run execute at @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=Bane2] run kill @s


execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=NoBane] run data modify entity @s Item.tag.Enchantments append value {lvl:1, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=!Bane1,tag=FoundSpecEnch0] run data modify entity @s Item.tag.Enchantments[0] set value {lvl:1, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=!Bane1,tag=FoundSpecEnch1] run data modify entity @s Item.tag.Enchantments[1] set value {lvl:1, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=!Bane1,tag=FoundSpecEnch2] run data modify entity @s Item.tag.Enchantments[2] set value {lvl:1, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=!Bane1,tag=FoundSpecEnch3] run data modify entity @s Item.tag.Enchantments[3] set value {lvl:1, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=!Bane1,tag=FoundSpecEnch4] run data modify entity @s Item.tag.Enchantments[4] set value {lvl:1, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=!Bane1,tag=FoundSpecEnch5] run data modify entity @s Item.tag.Enchantments[5] set value {lvl:1, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=!Bane1,tag=FoundSpecEnch6] run data modify entity @s Item.tag.Enchantments[6] set value {lvl:1, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=!Bane1,tag=FoundSpecEnch7] run data modify entity @s Item.tag.Enchantments[7] set value {lvl:1, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=!Bane1,tag=FoundSpecEnch8] run data modify entity @s Item.tag.Enchantments[8] set value {lvl:1, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute at @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=!Bane1] run kill @s

execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=Bane1,tag=FoundSpecEnch0] run data modify entity @s Item.tag.Enchantments[0] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=Bane1,tag=FoundSpecEnch1] run data modify entity @s Item.tag.Enchantments[1] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=Bane1,tag=FoundSpecEnch2] run data modify entity @s Item.tag.Enchantments[2] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=Bane1,tag=FoundSpecEnch3] run data modify entity @s Item.tag.Enchantments[3] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=Bane1,tag=FoundSpecEnch4] run data modify entity @s Item.tag.Enchantments[4] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=Bane1,tag=FoundSpecEnch5] run data modify entity @s Item.tag.Enchantments[5] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=Bane1,tag=FoundSpecEnch6] run data modify entity @s Item.tag.Enchantments[6] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=Bane1,tag=FoundSpecEnch7] run data modify entity @s Item.tag.Enchantments[7] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute as @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!NoBane,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=Bane1,tag=FoundSpecEnch8] run data modify entity @s Item.tag.Enchantments[8] set value {lvl:2, id:"minecraft:bane_of_arthropods"}
execute at @s[tag=BOA1] run execute at @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,tag=!Bane5,tag=!Bane4,tag=!Bane3,tag=!Bane2,tag=Bane1] run kill @s

