Arqade is a question and answer site for passionate videogamers on all platforms. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to be able to select a region (either with a graphical utility or command line) and be able to switch one block type with another, e.g. change all cobblestone in the region to stone. Does a program/mod exist that can do this?

share|improve this question
up vote 9 down vote accepted

WorldEdit has such a command after selecting the area type

//replace [old block] [new block]

This will turn all of the first block from the area into the second block.

share|improve this answer
As the question refer to "Within a region" and i interpret it as a MCRegion aka a chunk, I would add on to the question the command /chunk which selects the chunks that your region encompasses. – DarkDestry Sep 22 '14 at 15:37

As of 1.8, this can be done in vanilla with the /fill command. It can be done using command blocks or typing it straight into the chat.

For example, to change cobblestone to stone:

/fill <x1> <y1> <z1> <x2> <y2> <z2> stone 0 replace cobblestone

Change <x1> <y1> <z1> to the coordinates of one corner of the rectangular area, and <x2> <y2> <z2> with the coordinates of the opposite corner.

share|improve this answer

MCEdit has this capability. As an example, I made a selection that included grass blocks, and replaced the grass in that selection with cobblestone:



The tool that's selected in the first image is the find tool. Once open, there's an option to change it to find and replace. Then it's just as easy as selecting your two block types and hitting replace.

share|improve this answer

protected by fredley Jun 16 '13 at 10:07

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.