From Kreemapedia
Revision as of 23:40, 17 September 2019 by ERR 404NotFound (talk | contribs) (Contracting the selection)
Jump to: navigation, search

A fundamental part of WorldEdit is working with a selection or region. For example, if you wanted to replace all the glass blocks inside a square area with dirt, you would have to tell WorldEdit where this square is. WorldEdit gives you several ways to select a region for editing, this section will introduce you to selecting regions and show you what you can do with them.

Selecting cuboids

WorldEdit allows you to select cuboids (think a 3D rectangle) by choosing two points at two corners of the cuboid. The diagram below indicates how two points can form a cuboid. The cuboids you select can only be aligned to the world (they cannot be rotated at an angle).

Tip: You can also select other shapes such as 2D polygons, ellipsoids, spheres, cylinders, and more. Information on these other selection modes is described later in this page.


There are several different ways of choosing these two points and you can mix and match.

Selecting with the wand

  • //wand

The most intuitive way to select a region is by using wand. To get the wand, use //wand (it is, by default, a wooden axe). Left clicking a block with the wand marks that block as the first corner of the cuboid you wish to select. A right-click chooses the second corner.

Selecting at your own location

  • //pos1
  • //pos2

These commands set the first and second corners to the block above the one that you are standing on. Generally the wand suffices for most tasks and you likely will not need to use this.

Selecting with your crosshair

  • //hpos1
  • //hpos2

These commands set the first and second corners to the block that you are looking at. This allows you to select points from far away and make particularly large cuboid regions with ease.

Selecting the current chunk

  • //chunk

This command selects all the blocks in the chunk that you are standing in. Chunks are 16 by 16 and are 256 blocks high.

Adjusting the selection

Expanding the selection

  • //expand <amount> [direction]
  • //expand <amount> <reverse-amount> [direction]
  • //expand vert

This command allows you to easily enlarge a region in several different ways:

  • By specifying a direction (north, south, west, east, up, or down)
  • By looking in the direction (only for north, south, west, and east)
  • To the sky and to bedrock

To specify a direction, use "N", "S", "W", "E", "U" (for up), or "D" (for down) for the direction. If you want to merely look in the direction, either use "me" for the direction or don't enter a direction parameter. You can specify two numbers and the region will be expanded in two directions simultaneously.

Expanding upwards: For example, if you used //expand 10 up, the selection would grow larger at the top as shown.
Cuboid expansion up.png

Use //expand vert if you want to expand the region between the sky and bedrock.

Contracting the selection

  • //contract <amount> [direction]
  • //contract <amount> <reverse-amount> [direction]

This command works similarly to //expand.

Contracting downwards: Which way would the selection contract? If you used //contract 10 down, then the selection would shrink from the top.
Cuboid contraction down.png

Contracting 2 axes simultaneously (inset)

This command insets the selection.

  • //inset <amount> [direction]
  • //inset <amount> <reverse-amount> [direction]

Shifting your selection

  • //shift <amount> [direction]

Shifts the region. This command works similarly to both //expand and //contract at the same time with the same amount in opposite directions. This will effectively shift the region by a certain amount. It will not move any blocks in the region; use the //move command to do that.

Selection information

WorldEdit also provides you with commands for getting information about the area you have selected.

Getting selection size

  • //size [-c]

Gets the number of blocks in that region. Air blocks will be counted.

{{since5.5 The -c flag operates on the clipboard instead of current selection

Calculating a block's frequency

  • //count [-d] <type>

Counts the number of blocks of a specific type in the selection area.

{{since5.5.1 The -d flag allows separating blocks by data values. Note that using the -d flag requires including a data value


//count  torch
Counted: 34
//count -d torch
Counted: 0
//count -d torch:1
Counted: 3

Finding the block distribution

  • //distr [-cd]

Shows the block distribution in the selection area.


# total blocks: 6
1   (16.667%) Stone #1
2   (33.333%) Cobblestone #4
3   (50.000%) Air #0

{{since5.5 The -c flag operates on the clipboard instead of current selection

{{since5.5.1 The -d flag allows separating blocks by data values

{{Exampletext=The difference between //distr and //distr -d (resulting lists truncated for clarity):

34      (0.386%) Torch #50
500     (5.682%) Stone brick stairs #109
//distr -d
3       (0.034%) Torch #50:1
4       (0.045%) Torch #50:3
7       (0.080%) Torch #50:2
7       (0.080%) Torch #50:4
13      (0.148%) Torch #50:5
46      (0.523%) Stone brick stairs #109:2
48      (0.545%) Stone brick stairs #109:3
62      (0.705%) Stone brick stairs #109:0
64      (0.727%) Stone brick stairs #109:1
68      (0.773%) Stone brick stairs #109:6
69      (0.784%) Stone brick stairs #109:5
71      (0.807%) Stone brick stairs #109:7
72      (0.818%) Stone brick stairs #109:4

Selection modes

Cuboid selection mode

  • //sel cuboid

Left-click to select point #1. Right-click to select point #2. The selection will be a cuboid encompassing these 2 points.

Extending cuboid selection mode

  • //sel extend

{{since4.8-SNAPSHOT Left-click to select first point. All subsequent points are selected by right-clicking. Every right-click will extend the cuboid selection to encompass the new point.

Polygon selection mode

  • //sel poly

Left-click to select first point. All subsequent points are selected by right-clicking. Every right-click will add an additional point.

Ellipsoid selection mode

  • //sel ellipsoid

Left-click to choose center, right-click to extend.

You can either right-click horizontally to select a horizontal ellipse, or right-click vertically to select a vertical ellipse. But if you want to select a ellipsoid area you need to right-click at least twice.

Sphere selection mode

  • //sel sphere

Left-click to select center, right-click to extend.

Cylinder selection mode

  • //sel cyl

Left-click to select center, right-click to extend.

By right-clicking you extend the cylinder's underside horizontally and by right-clicking again you may extend the cylinder's height.