I'm looking for more information about the
/fill command. I want to replace air blocks with another block, but only if they have a stone block below them. The command
/fill ~ ~ ~ ~25 ~-5 ~25 air 0 replace dirt will replace every single air block with dirt, and that is obviously not the result that I want.
How can I add a layer of dirt on top of stone blocks, without filling the world with dirt?