Star Hype News.

Premium celebrity moments with standout appeal.

updates

How can I replace blocks with air in Minecraft BE? [duplicate]

By Sophia Vance

I filled up a house with light_block in and I need to replace them with air. Is there any possible command to do that?


Note: I'm not against using a command block if needed. I just need to get rid of them.

6

1 Answer

You can use the replace functionality of the fill command to accomplish this. Per the DigMinecraft documentation:

To replace one type of block in a region with another type of block:

/fill <from> <to> <tileName> [tileData] replace <replaceTileName> <replaceDataValue>

As such, the command to replace all light_block in a 15x5x15 area with air would be:

fill ~ ~ ~ ~15 ~5 ~15 air 0 replace light_block