Minecraft Worldedit Guide Wiki
Advertisement
Command Parameter Description
//replace (<from-block-ID(s)>)
<to-pattern>
Replace a (or many, or all) block type(s) in region to a pattern.
Both output and input can be multiple patterns.

If the input block IDs does not include specific secondary IDs,
it will affect all the primary blocks.
Non-specific output blocks have a default secondary ID of ":0".
"//replace 35 0" will turn all wool_blocks into air.
"//replace 35:0 0" will affect only white wool_blocks into air.
"//replace 0 35" and "//replace 0 35:0" are the same in the outputs.


Example 1
Left-click to the stone_block as position 1
Replace1

First position is set.


Hover over the diagonally opposite point then issue "//pos2"
Replace2

Second position is set.


Replace3

The selection is selected.


//replace 17,18 0
Replace4

Turns the oak_woods and oak_leaves into air.


/green 50
Replace5

Restore the 'dirt' dots left by the 'deleted' trees within 50-block radius by the player's position.


Example 2
Select the region with //pos (s) for each opposite point
Replace6

The region is selected


//replace 35:1 35:5
//replace 35:14 35:11
Replace7

Turns the orange wool_blocks to lime wool_blocks.
Turns the red wool_blocks to blue wool_blocks.

Advertisement