#execute as @s run execute at @s run execute unless entity @e[distance=..5,limit=1,tag=FrostWItem] run execute as @e[distance=..5,type=item,tag=!SaveMe] run function zzzzdonotuse:modifyarmor/modules/checkfrostwalk

#execute at @s run execute unless entity @e[distance=..5,limit=1,tag=FrostWItem] run

#execute unless entity @e[distance=..5,limit=1,tag=FrostWItem] run execute as @s[nbt={Item:{id:"minecraft:enchanted_book",Count:1b,tag:{StoredEnchantments:[{lvl:3s,id:"minecraft:frost_walker"}]}}}] run tag @s add FrostWItem
#execute unless entity @e[distance=..5,limit=1,tag=FrostWItem] run execute as @s[nbt={Item:{Count:1b,tag:{Enchantments:[{lvl:2s,id:"frost_walker"}]}}}] run tag @s add FrostWItem

execute unless entity @e[distance=..5,limit=1,tag=SoulSItem] run execute as @s[nbt={Item:{id:"minecraft:enchanted_book",Count:1b,tag:{StoredEnchantments:[{lvl:3s,id:"minecraft:soul_speed"}]}}}] run tag @s add SoulSItem
execute unless entity @e[distance=..5,limit=1,tag=SoulSItem] run execute as @s[nbt={Item:{Count:1b,tag:{Enchantments:[{lvl:3s,id:"minecraft:soul_speed"}]}}}] run tag @s add SoulSItem

execute unless entity @e[distance=..5,limit=1,tag=DepthSItem] run execute as @s[nbt={Item:{id:"minecraft:enchanted_book",Count:1b,tag:{StoredEnchantments:[{lvl:3s,id:"minecraft:depth_strider"}]}}}] run tag @s add DepthSItem
execute unless entity @e[distance=..5,limit=1,tag=DepthSItem] run execute as @s[nbt={Item:{Count:1b,tag:{Enchantments:[{lvl:3s,id:"minecraft:depth_strider"}]}}}] run tag @s add DepthSItem


#/data get entity @e[type=item,limit=1,nbt={Item:{Count:1b,tag:{Enchantments:[{lvl:4s,id:"minecraft:fire_protection"}]}}},distance=..5]
