how to remove all but one specific block
I have a world and would like to remove all blocks but command blocks, how would I do this? I have tried looking for mcedit filters but counldnt find any.
Best Answer
How I would do it would be create a spigot server with build tools and get world edit and Async world edit then do replaces.. //replace stone,dirt,cobblestone,grass air
You can also use itemid. U can replace as many as you want at once also, just do have , in between each.
Pictures about "how to remove all but one specific block"
How do you get rid of specific blocks in Minecraft?
1 AnswerHow do you delete specific blocks with WorldEdit?
How to use WorldEdit to swap and replace blocks in MinecraftHow do you replace all of a certain block with another block?
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. Let's explore how to do this in Minecraft.Destroy \u0026 Replace Simultaneously (Destroy Specific Blocks in a /Fill Command)
More answers regarding how to remove all but one specific block
Answer 2
just looked this up myself, try using a mask, a mask uses "!" followed by the name or id of the block you don't want to replace, in this case (chain) command blocks, ID 137: //replace !137 air
for my case, I wanted to delete every block in between the bedrock (ID 7) layers, but not the bedrock itself, so I used: //replace !7 air.
and if you are replacing all the blocks in an area except for air (ID 0) to something like stone (ID 1) for example, you would use something like this //replace !0 1
And so on and so forth, I hope this helps you and anyone else who may stumble across this.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Magda Ehlers, Magda Ehlers, Miguel Á. Padriñán, Sarah Chai