fill ~ ~ ~ ~ ~ ~ minecraft:farmland [] replace minecraft:grass_block []
fill ~ ~ ~ ~ ~ ~ minecraft:farmland [] replace minecraft:dirt []
fill ~ ~ ~ ~ ~ ~ minecraft:farmland [] replace minecraft:dirt_with_roots []