#data modify entity @s[tag=!FoundSmiteEnch] Tags append from entity @s[tag=!FoundSmiteEnch] Item.tag.StoredEnchantments[0].id
#execute as @s[tag=!FoundSmiteEnch] run execute unless entity @s[nbt=!{Tags:["minecraft:smite"]}] run tag @s[tag=!FoundSmiteEnch] add FoundSmiteEnch0
#tag @s[tag=!FoundSmiteEnch,tag=FoundSmiteEnch0] add FoundSmiteEnch
#data modify entity @s[tag=!FoundSmiteEnch] Tags append from entity @s[tag=!FoundSmiteEnch] Item.tag.StoredEnchantments[1].id
#execute as @s[tag=!FoundSmiteEnch] run execute unless entity @s[nbt=!{Tags:["minecraft:smite"]}] run tag @s[tag=!FoundSmiteEnch] add FoundSmiteEnch1
#tag @s[tag=!FoundSmiteEnch,tag=FoundSmiteEnch1] add FoundSmiteEnch
#data modify entity @s[tag=!FoundSmiteEnch] Tags append from entity @s[tag=!FoundSmiteEnch] Item.tag.StoredEnchantments[2].id
#execute as @s[tag=!FoundSmiteEnch] run execute unless entity @s[nbt=!{Tags:["minecraft:smite"]}] run tag @s[tag=!FoundSmiteEnch] add FoundSmiteEnch2
#tag @s[tag=!FoundSmiteEnch,tag=FoundSmiteEnch2] add FoundSmiteEnch
#data modify entity @s[tag=!FoundSmiteEnch] Tags append from entity @s[tag=!FoundSmiteEnch] Item.tag.StoredEnchantments[3].id
#execute as @s[tag=!FoundSmiteEnch] run execute unless entity @s[nbt=!{Tags:["minecraft:smite"]}] run tag @s[tag=!FoundSmiteEnch] add FoundSmiteEnch3
#tag @s[tag=!FoundSmiteEnch,tag=FoundSmiteEnch3] add FoundSmiteEnch

#store the level in a tag as well
tag @s[nbt={Item:{tag:{StoredEnchantments:[{lvl:5s, id:"minecraft:smite"}]}}}] add SM5
tag @s[nbt={Item:{tag:{StoredEnchantments:[{lvl:4s, id:"minecraft:smite"}]}}}] add SM4
tag @s[nbt={Item:{tag:{StoredEnchantments:[{lvl:3s, id:"minecraft:smite"}]}}}] add SM3
tag @s[nbt={Item:{tag:{StoredEnchantments:[{lvl:2s, id:"minecraft:smite"}]}}}] add SM2
tag @s[nbt={Item:{tag:{StoredEnchantments:[{lvl:1s, id:"minecraft:smite"}]}}}] add SM1

#data modify entity @s[tag=FoundSmiteEnch0] Tags append from entity @s Item.tag.StoredEnchantments[0].lvl
#data modify entity @s[tag=FoundSmiteEnch1] Tags append from entity @s Item.tag.StoredEnchantments[1].lvl
#data modify entity @s[tag=FoundSmiteEnch2] Tags append from entity @s Item.tag.StoredEnchantments[2].lvl
#data modify entity @s[tag=FoundSmiteEnch3] 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:smite"}]}}}] add NoSmite
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:5s,id:"minecraft:smite"}]}}}] add Smite5
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:4s,id:"minecraft:smite"}]}}}] add Smite4
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:3s,id:"minecraft:smite"}]}}}] add Smite3
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:2s,id:"minecraft:smite"}]}}}] add Smite2
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:1s,id:"minecraft:smite"}]}}}] add Smite1
#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:smite"}]}}}] add NoSmite
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:5,id:"minecraft:smite"}]}}}] add Smite5
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:4,id:"minecraft:smite"}]}}}] add Smite4
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:3,id:"minecraft:smite"}]}}}] add Smite3
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:2,id:"minecraft:smite"}]}}}] add Smite2
execute at @s run tag @e[type=item,limit=1,sort=nearest,distance=..5,tag=AmTrident,nbt={Item:{tag:{Enchantments:[{lvl:1,id:"minecraft:smite"}]}}}] add Smite1

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


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


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

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

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

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



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


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


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

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

