WorldEdit#

WorldEdit has many and many abilities this document only covers some of them.

Attention

Arguments surrounded by [ ] are optional, those surrounded by < > are required.

Other Resources#

Creating A Selection#

Selections are a fundamental part of WorldEdit and you need to learn it first by reading this.

Commands#

Only the most commonly used commmands are listed here.

//set#

Sets selection to the given pattern.

//set <pattern>

//replace#

Replaces “from” to “to”. “from” is a mask and “to” is a pattern.

//replace [from] <to>

//fill#

Fills a hole around the player to a pattern. For example, you can use it to create a flat roof on the inside of the walls of a building. Radius is the radius of the area to fill, and depth is the vertical height of the fill. Usually depth should not be set.

//fill <pattern> <radius> [depth]

Patterns#

A pattern determines what blocks a command places. For basics you only need to learn the single block pattern and random block pattern.

Detailed explanation of a pattern including advanced types of patterns. (Explanation uses 1.13+ names, keep in mind we use 1.12.2 IDs. It also contains features not present in our older version of WorldEdit)

Single Block Pattern#

In order to WorldEdit with a singular block, use a singular block ID.

Example: Setting orange wool

Pattern:

35:1

Command:

//set 35:1

Random Pattern#

In order to WorldEdit with multiple blocks in a random pattern, use multiple patterns/block IDs

You can specify weights by adding a x% in front of the pattern.

Note

Percentage weights do not need to add up to 100. They are a ratio to each other.

Example: Setting equal percentages of orange, magenta, and yellow wool

Pattern:

35:1,35:2,35:4

Command:

//set 35:1,35:2,35:4

Example: Setting 1/5 orange, 1/5 magenta, and 3/5 yellow wool

Pattern:

20%35:1,20%35:2,60%35:4

Command:

//set 20%35:1,20%35:2,60%35:4

Masks#

Masks determine what blocks a command effects

Detailed explanation of a mask, including advanced types of patterns. (Explanation uses 1.13+ names, keep in mind we use 1.12.2 IDs. It also contains features not present in our older version of WorldEdit)

Block Mask#

Works the same as a single block or random block pattern.

Example: Replacing orange wool and yellow wool with magenta wool

Mask:

35:1,35:4

Command:

//replace 35:1,35:4 35:2

Negation Mask#

Adding a ! negates everything after it. Another way to look at it: the result does the opposite of the mask after the !.

Example: Replacing everything that isn’t orange wool with stone

Without the !, the command would replace orange wool with stone. But by adding the ! the command replaces all blocks that aren’t orange wool with stone. 35:1 is the block mask that is negated.

Mask:

!35:1

Command:

//replace !35:1 1

Offset Mask#

Adding a > before another mask matches blocks above the mask, adding a < matches blocks below the mask.

Example: Replacing everything above orange wool with polished diorite

The mask 35:1 matches all orange wool, adding a > matches everything above orange wool, so therefore the command only effects blocks above orange wool.

Mask:

>35:1

Command:

//replace >35:1 1:4