execute if block ~ ~ ~ minecraft:carrots[age=6] run setblock ~ ~ ~ minecraft:carrots[age=7]
execute if block ~ ~ ~ minecraft:carrots[age=5] run setblock ~ ~ ~ minecraft:carrots[age=6]
execute if block ~ ~ ~ minecraft:carrots[age=4] run setblock ~ ~ ~ minecraft:carrots[age=5]
execute if block ~ ~ ~ minecraft:carrots[age=3] run setblock ~ ~ ~ minecraft:carrots[age=4]
execute if block ~ ~ ~ minecraft:carrots[age=2] run setblock ~ ~ ~ minecraft:carrots[age=3]
execute if block ~ ~ ~ minecraft:carrots[age=1] run setblock ~ ~ ~ minecraft:carrots[age=2]
execute if block ~ ~ ~ minecraft:carrots[age=0] run setblock ~ ~ ~ minecraft:carrots[age=1]
execute if block ~ ~ ~ minecraft:carrots[age=7] run kill @s

execute if block ~ ~ ~ minecraft:potatoes[age=6] run setblock ~ ~ ~ minecraft:potatoes[age=7]
execute if block ~ ~ ~ minecraft:potatoes[age=5] run setblock ~ ~ ~ minecraft:potatoes[age=6]
execute if block ~ ~ ~ minecraft:potatoes[age=4] run setblock ~ ~ ~ minecraft:potatoes[age=5]
execute if block ~ ~ ~ minecraft:potatoes[age=3] run setblock ~ ~ ~ minecraft:potatoes[age=4]
execute if block ~ ~ ~ minecraft:potatoes[age=2] run setblock ~ ~ ~ minecraft:potatoes[age=3]
execute if block ~ ~ ~ minecraft:potatoes[age=1] run setblock ~ ~ ~ minecraft:potatoes[age=2]
execute if block ~ ~ ~ minecraft:potatoes[age=0] run setblock ~ ~ ~ minecraft:potatoes[age=1]
execute if block ~ ~ ~ minecraft:potatoes[age=7] run kill @s