execute at @s[nbt=!{Item:{tag:{kyudamagespeedmodule:1b}}}] run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:blaze_powder",Count:1b}},tag=!SaveMe] run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:gold_block",Count:1b}},tag=!SaveMe] run function zzzzdonotuse:modifyarmor/modules/addhelmetdamagespeed
execute at @s[nbt=!{Item:{tag:{kyuwithercloudmodule:1b}}}] run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:wither_skeleton_skull",Count:1b}},tag=!SaveMe] run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:netherite_scrap",Count:1b}},tag=!SaveMe] run function zzzzdonotuse:modifyarmor/modules/addwithercloudmodule

scoreboard players set @s KyuDummy 0
execute as @s run execute at @s run execute at @e[distance=..5,type=item,tag=!SaveMe,nbt={Item:{id:"minecraft:glass",Count:1b}},limit=7] run scoreboard players add @s KyuDummy 1
execute at @s[scores={KyuDummy=7..},nbt=!{Item:{tag:{kyuglasswardmodule:1b}}}] run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:diamond_block",Count:1b}},tag=!SaveMe] run function zzzzdonotuse:modifyarmor/modules/addglasswardmodule


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