execute if entity @s[hasitem={item=minecraft:kelp}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:dried_kelp
execute if entity @s[hasitem={item=minecraft:potato}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:baked_potato
execute if entity @s[hasitem={item=farmersdelight:mutton_chops}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cooked_mutton_chops
execute if entity @s[hasitem={item=minecraft:beef}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:cooked_beef
execute if entity @s[hasitem={item=minecraft:porkchop}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:cooked_porkchop
execute if entity @s[hasitem={item=minecraft:egg}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:fried_egg
execute if entity @s[hasitem={item=farmersdelight:bacon}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cooked_bacon
execute if entity @s[hasitem={item=farmersdelight:chicken_cuts}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cooked_chicken_cuts
execute if entity @s[hasitem={item=farmersdelight:salmon_slice}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cooked_salmon_slice
execute if entity @s[hasitem={item=minecraft:rabbit}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:cooked_rabbit
execute if entity @s[hasitem={item=minecraft:cod}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:cooked_cod
execute if entity @s[hasitem={item=minecraft:salmon}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:cooked_salmon
execute if entity @s[hasitem={item=farmersdelight:cod_slice}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cooked_cod_slice
execute if entity @s[hasitem={item=minecraft:mutton}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:cooked_mutton
execute if entity @s[hasitem={item=farmersdelight:minced_beef}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:beef_patty
execute if entity @s[hasitem={item=minecraft:chicken}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:cooked_chicken