#execute as @s run execute at @s run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:iron_ingot",Count:1b}}] run function zzzzdonotuse:modifyarmor/addarmor
#execute as @s run execute at @s run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:iron_block",Count:1b}}] run function zzzzdonotuse:modifyarmor/addarmor
#execute at @s run kill @e[type=item,distance=..5,nbt={Item:{id:"minecraft:iron_block",Count:1b}}]
#execute at @s run kill @e[type=item,distance=..5,nbt={Item:{id:"minecraft:iron_ingot",Count:1b}}]
#execute as @s[nbt={Item:{tag:{netherarmorkyu:1b}}},nbt={Item:{tag:{maxtoughness:1b}}},nbt=!{Item:{tag:{gotnetheritebonus:1b}}}] run execute at @s run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:netherite_ingot",Count:1b}},tag=!SaveMe] run function zzzzdonotuse:modifyarmor/netheritebonus
#execute at @s run kill @e[type=item,distance=..5,nbt={Item:{id:"minecraft:diamond",Count:1b}},tag=!SaveMe]

scoreboard players set @s KyuDummy 0
execute at @s run execute as @e[distance=..5,type=item,tag=!SaveMe] run function zzzzdonotuse:modifyarmor/checkspeedpotion
execute as @s run execute at @s run execute at @e[distance=..5,type=item,tag=!SaveMe,tag=SpeedPoot] run scoreboard players add @s KyuDummy 1

execute at @s[scores={KyuDummy=8..}] run function zzzzdonotuse:modifyarmor/givelegsbonus


