WorldEdit - replace block if condition is true

WorldEdit - replace block if condition is true - Air conditioning in yard of building

I have a significant amount of chunks of farmland on some hills that I want to plant crops on all at once. I'm considering using WorldEdit to do this but I don't want to just select the whole general area of the farmland and replace all air with seeds (this actually works, from prior experience on a more powerful server) because it'll probably crash my server.

Is there a way to use conditional statements to the effect of "if air block is directly above farmland replace with seeds" to plant these seeds?






Pictures about "WorldEdit - replace block if condition is true"

WorldEdit - replace block if condition is true - Young black man with vitiligo skin condition standing close to partner with Afro braids and serious ethnic friend while looking at camera
WorldEdit - replace block if condition is true - White shabby concrete wall with cracked stucco
WorldEdit - replace block if condition is true - Assorted-color House Facade in Park



How do I replace a specific block in WorldEdit?

How to use WorldEdit to swap and replace blocks in Minecraft
  • Firstly, players must select the corner of the structure that blocks will be changed for.
  • The second selection can be made by pressing the interact key on the opposite corner.
  • Emerald blocks were successfully replaced by gold blocks via WorldEdit.


  • How do you replace a block in Minecraft?

    Prefixing any block type with an asterisk ( * ) will randomly choose between all states for that block for each position.

    How do you Randomise blocks with WorldEdit?

    Aside from commands that take a mask as a parameter (such as //replace [mask] <pattern> ), you can also apply masks to individual brushes by using the /mask command while holding the brush, or you can apply a mask to all your WorldEdit actions globally with //gmask .



    World Edit Tutorial- Episode 2: Replacing blocks and setting multiple blocks!




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: ready made, Armin Rimoldi, Tatiana Syrikova, Pixabay