Minecraft arable land with carrots?

Fr
1

I'm currently building an automatic house.

But I just get stuck, I use / fill x y z x y z Minecraft: XXX

Does anyone know how to plant a field with carrots?

Ps. I use Java

Po

The arable soil and the planted carrots are two different blocks, it should work in 2 steps (unfortunately I can't test it myself at the moment):

/ fill x y z x y z Minecraft: farmland
/ fill x y + 1 z x y + 1 z Minecraft: carrots

Optionally, set the random tick speed to 0 beforehand so that the arable soil can't turn to earth in between