How do I change grass blocks within a set region to magma blocks? [duplicate]

How do I change grass blocks within a set region to magma blocks? [duplicate] - Gray Concrete Bollards

I'm wanting to change grass to magma on my Bedrock Edition, Nintendo Switch world to make a Skyblock challenge sort of thing but so far every command I've tried just says "invalid command". Does anyone here know what I should be doing differently?

PS The range is from x256 z256 to x-256 z-256 if that changes anything.



Best Answer

Use the fill command.

/fill x1 y1 z1 x2 y2 z2 magma 0 replace grass

When using the fill command, there is a limit of 32,768 blocks, so you will need to use multiple fill commands. If the fill volume is 1 block high, using the following coordinates in 9 commands should work (where y is the y-coordinate):

  • -256 y -256 -76 y -76
  • -256 y -75 -76 y 104
  • -256 y 106 -76 y 256
  • -75 y -256 105 y -76
  • -75 y -75 105 y 104
  • -75 y 106 105 y 256
  • 106 y -256 256 y -76
  • 106 y -75 256 y 104
  • 106 y 106 256 y 256

If the fill volume is more than 1 block high, you will need to divide it into even more fill commands. 1812 is 32,761, so dividing an area into 181 × 181 squares will work. If you have an even larger volume, 323 is 32,768.




Pictures about "How do I change grass blocks within a set region to magma blocks? [duplicate]"

How do I change grass blocks within a set region to magma blocks? [duplicate] - Learn and Love Paint on Soil Surrounded Grass
How do I change grass blocks within a set region to magma blocks? [duplicate] - White Blocks on the Grass
How do I change grass blocks within a set region to magma blocks? [duplicate] - Block of Flats in Barren Land



How do you replace a block in a certain area in Minecraft?

In Minecraft, you can use the /fill command to replace a specific type of block with another. In this case, we want to replace all water blocks with air blocks within a fill range.

How do you replace grass with other blocks in Minecraft?

The command is a run off of the /fill command. You would type /fill (x)(y)(z)(x)(y)(z) quartz_block 1 replace grass .



Minecraft, But It's Only 1 Lava Block...




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

Images: PhotoMIX Company, Mads Thomsen, ROMAN ODINTSOV, Jo Kassis