execute if score @s farmer.potatoes matches 7.. run return run function ws:work/misc/farmer/pay {pay:1,type:'potatoes'}
execute if score @s farmer.carrots matches 5.. run return run function ws:work/misc/farmer/pay {pay:1,type:'carrots'}
execute if score @s farmer.beetroots matches 3.. run return run function ws:work/misc/farmer/pay {pay:1,type:'beetroots'}
execute if score @s farmer.wheat matches 5.. run return run function ws:work/misc/farmer/pay {pay:2,type:'wheat'}
execute if score @s farmer.pitcher_crop matches 3.. run return run function ws:work/misc/farmer/pay {pay:1,type:'pitcher_crop'}