scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:enchanting_table",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:red_stained_glass",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:pink_stained_glass",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:yellow_stained_glass",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:blue_stained_glass",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:orange_stained_glass",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:purple_stained_glass",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:green_stained_glass",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=8..}] run function zzzzdonotuse:modifyarmor/spells/makeglassgen

scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:enchanting_table",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=2,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:golden_pickaxe",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=2,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:golden_boots",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=5..}] run function zzzzdonotuse:modifyarmor/spells/makehaste

scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:enchanting_table",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=7,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:feather",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=8..}] run function zzzzdonotuse:modifyarmor/spells/makeslowfall

scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:enchanting_table",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:iron_leggings",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:iron_chestplate",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=3..}] run function zzzzdonotuse:modifyarmor/spells/makeresistance

scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:diamond_pickaxe",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:ladder",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:vine",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:weeping_vines",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:twisting_vines",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=5..}] run function zzzzdonotuse:modifyarmor/spells/makeescapeladder

scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=3,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:enchanting_table",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:compass",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=4..}] run function zzzzdonotuse:modifyarmor/spells/makeeclocator

scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:enchanting_table",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:saddle",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=2,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:bone_block",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=2,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:leather",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=2,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:rotten_flesh",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=8..}] run function zzzzdonotuse:modifyarmor/spells/makehorse

scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:enchanting_table",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:sunflower",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:blaze_powder",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=2,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:bucket",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=5..}] run function zzzzdonotuse:modifyarmor/spells/makeclearweather

scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:enchanting_table",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:brewing_stand",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=6,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:golden_carrot",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=8..}] run function zzzzdonotuse:modifyarmor/spells/makeinvis

scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:enchanting_table",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=7,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:obsidian",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=8..}] run function zzzzdonotuse:modifyarmor/spells/makeportal

scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:enchanting_table",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:white_wool",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:feather",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:leather",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:porkchop",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=2,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:lead",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:rabbit_hide",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=8..}] run function zzzzdonotuse:modifyarmor/spells/makefarm


scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[limit=1,distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:totem_of_undying",Count:1b}}] run scoreboard players add @s KyuDummy 1
execute as @s run execute at @s[scores={KyuDummy=1..}] run function zzzzdonotuse:modifyarmor/spells/makeres
