WorldEdit has many and many abilities this document only covers some of them.
Arguments surrounded by
[ ] are optional, those surrounded by
< > are required.
Creating A Selection#
Selections are a fundamental part of WorldEdit and you need to learn it first by reading this.
Only the most commonly used commmands are listed here.
Sets selection to the given pattern.
//replace [from] <to>
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]
Single Block Pattern#
In order to WorldEdit with a singular block, use a singular block ID.
Example: Setting orange wool
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.
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
Example: Setting 1/5 orange, 1/5 magenta, and 3/5 yellow wool
Masks determine what blocks a command effects
Example: Replacing orange wool and yellow wool with magenta wool
//replace 35:1,35:4 35:2
! 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
!, 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.
//replace !35:1 1
> before another mask matches blocks above the mask, adding a
< matches blocks below the mask.
Example: Replacing everything above orange wool with polished diorite
35:1 matches all orange wool, adding a
> matches everything above orange wool, so therefore the command only effects blocks above orange wool.
//replace >35:1 1:4