execute if entity @s[hasitem={item=farmersdelight:wheat_dough}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:raw_pasta
execute if entity @s[hasitem={item=minecraft:pumpkin}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:pumpkin_slice 4
execute if entity @s[hasitem={item=minecraft:beef}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:minced_beef 2
execute if entity @s[hasitem={item=farmersdelight:cabbage}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cabbage_leaf 2
execute if entity @s[hasitem={item=minecraft:chicken}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:chicken_cuts 2
execute if entity @s[hasitem={item=minecraft:cooked_chicken}] run replaceitem entity @s slot.weapon.offhand 0 minecraft:bone_meal
execute if entity @s[hasitem={item=minecraft:cooked_chicken}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cooked_chicken_cuts 2
execute if entity @s[hasitem={item=minecraft:porkchop}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:bacon 2
execute if entity @s[hasitem={item=minecraft:cod}] run replaceitem entity @s slot.weapon.offhand 0 minecraft:bone_meal
execute if entity @s[hasitem={item=minecraft:cod}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cod_slice 2
execute if entity @s[hasitem={item=minecraft:cooked_cod}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:cooked_cod_slice 2
execute if entity @s[hasitem={item=minecraft:cooked_cod}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cod_slice 2
execute if entity @s[hasitem={item=minecraft:salmon}] run replaceitem entity @s slot.weapon.offhand 0 minecraft:bone_meal
execute if entity @s[hasitem={item=minecraft:salmon}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:salmon_slice 2
execute if entity @s[hasitem={item=minecraft:cooked_salmon}] run replaceitem entity @s slot.weapon.offhand 0 minecraft:bone_meal
execute if entity @s[hasitem={item=minecraft:cooked_salmon}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cooked_salmon_slice 2
execute if entity @s[hasitem={item=minecraft:mutton}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:mutton_chops 2
execute if entity @s[hasitem={item=minecraft:cake}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cake_slice 7
execute if entity @s[hasitem={item=farmersdelight:kelp_roll}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:kelp_roll_slice 3
execute if entity @s[hasitem={item=farmersdelight:rice_panicle}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:straw
execute if entity @s[hasitem={item=farmersdelight:wild_rice}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:rice
execute if entity @s[hasitem={item=farmersdelight:wild_rice}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:straw
execute if entity @s[hasitem={item=farmersdelight:brown_mushroom_colony}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:brown_mushroom 5
execute if entity @s[hasitem={item=minecraft:red_flower,data=8}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:light_gray_dye 2
execute if entity @s[hasitem={item=minecraft:red_flower,data=3}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:light_gray_dye 2
execute if entity @s[hasitem={item=farmersdelight:ham}] run replaceitem entity @s slot.weapon.offhand 0 minecraft:bone
execute if entity @s[hasitem={item=farmersdelight:ham}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:porkchop 2
execute if entity @s[hasitem={item=minecraft:red_flower,data=2}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:magenta_dye 2
execute if entity @s[hasitem={item=minecraft:red_flower,data=5}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:orange_dye 2
execute if entity @s[hasitem={item=minecraft:melon_block}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:melon_slice 9
execute if entity @s[hasitem={item=farmersdelight:wild_potatoes}] run replaceitem entity @s slot.weapon.offhand 0 minecraft:purple_dye 2
execute if entity @s[hasitem={item=farmersdelight:wild_potatoes}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:potato
execute if entity @s[hasitem={item=farmersdelight:smoked_ham}] run replaceitem entity @s slot.weapon.offhand 0 minecraft:bone
execute if entity @s[hasitem={item=farmersdelight:smoked_ham}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:cooked_porkchop 2
execute if entity @s[hasitem={item=minecraft:ink_sac}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:black_dye 2
execute if entity @s[hasitem={item=minecraft:red_flower,data=10}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:white_dye 2
execute if entity @s[hasitem={item=minecraft:red_flower,data=6}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:light_gray_dye 2
execute if entity @s[hasitem={item=farmersdelight:wild_beetroots}] run replaceitem entity @s slot.weapon.offhand 0 minecraft:red_dye
execute if entity @s[hasitem={item=farmersdelight:wild_beetroots}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:beetroot_seeds
execute if entity @s[hasitem={item=farmersdelight:wild_onions}] run replaceitem entity @s slot.weapon.offhand 0 minecraft:magenta_dye 2
execute if entity @s[hasitem={item=farmersdelight:wild_onions}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:onion
execute if entity @s[hasitem={item=farmersdelight:red_mushroom_colony}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:red_mushroom 5
execute if entity @s[hasitem={item=minecraft:red_flower,data=0}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:red_dye 2
execute if entity @s[hasitem={item=minecraft:wither_rose}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:black_dye 2
execute if entity @s[hasitem={item=minecraft:red_flower,data=1}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:light_blue_dye 2
execute if entity @s[hasitem={item=minecraft:yellow_flower,data=0}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:yellow_dye 2
execute if entity @s[hasitem={item=minecraft:red_flower,data=7}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:pink_dye 2
execute if entity @s[hasitem={item=farmersdelight:wild_cabbages}] run replaceitem entity @s slot.weapon.offhand 0 minecraft:yellow_dye 2
execute if entity @s[hasitem={item=farmersdelight:wild_cabbages}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:cabbage_seeds
execute if entity @s[hasitem={item=minecraft:red_flower,data=9}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:blue_dye 2
execute if entity @s[hasitem={item=farmersdelight:wild_carrots}] run replaceitem entity @s slot.weapon.offhand 0 minecraft:light_gray_dye 2
execute if entity @s[hasitem={item=farmersdelight:wild_carrots}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:carrot
execute if entity @s[hasitem={item=farmersdelight:wild_tomatoes}] run replaceitem entity @s slot.weapon.offhand 0 farmersdelight:tomato
execute if entity @s[hasitem={item=farmersdelight:wild_tomatoes}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:tomato_seeds
execute if entity @s[hasitem={item=minecraft:red_flower,data=4}] run replaceitem entity @s slot.weapon.mainhand 0 minecraft:red_dye 2
execute if entity @s[hasitem={item=farmersdelight:sweet_berry_cheesecake}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:sweet_berry_cheesecake_slice 4
execute if entity @s[hasitem={item=farmersdelight:apple_pie}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:apple_pie_slice 4
execute if entity @s[hasitem={item=farmersdelight:chocolate_pie}] run replaceitem entity @s slot.weapon.mainhand 0 farmersdelight:chocolate_pie_slice 4
execute positioned as @s run playsound knife_cuts @a[r=6]