$execute if items entity @s weapon.$(hand) *[minecraft:custom_data~{cnk:{ingredient:{type:"tomato_seeds"}}}] run return run function cnk:seeds/tomato/place
$execute if items entity @s weapon.$(hand) *[minecraft:custom_data~{cnk:{ingredient:{type:"corn_seeds"}}}] run return run function cnk:seeds/corn/place
$execute if items entity @s weapon.$(hand) *[minecraft:custom_data~{cnk:{ingredient:{type:"lettuce_seeds"}}}] run return run function cnk:seeds/lettuce/place
$execute if items entity @s weapon.$(hand) *[minecraft:custom_data~{cnk:{ingredient:{type:"rice_seeds"}}}] run return run function cnk:seeds/rice/place
$execute if items entity @s weapon.$(hand) *[minecraft:custom_data~{cnk:{ingredient:{type:"coffee_cherries"}}}] run return run function cnk:seeds/coffee/place
$execute if items entity @s weapon.$(hand) *[minecraft:custom_data~{cnk:{ingredient:{type:"grape_seeds"}}}] run return run function cnk:seeds/grape/place
$execute if items entity @s weapon.$(hand) *[minecraft:custom_data~{cnk:{ingredient:{type:"chili_pepper_seeds"}}}] run return run function cnk:seeds/chili_pepper/place