WorldEdit commands
Choose what you want to do and get a ready-made command plus an explanation of what it will change in the world.
What to do with the selected region
Fill everything
Fills the selected region with one block or a mix of blocks.
//set stone
The whole region will be filled with: stone. Empty space inside gets filled too; if you only need a shell, see “Build walls” and “Close the whole box”.
Permission: worldedit.region.set
Masks and block patterns
A mask answers “which blocks to touch”, a pattern answers “what to fill with”. You can use them in almost any field above.
| Syntax | Where | Meaning |
|---|---|---|
! | mask | Negation: matches everything except what follows the sign.//replace !air stone |
#existing | mask | Any block except air. Not the same as !air: the game has several kinds of air. |
#solid | mask | Solid blocks only, the ones you can't walk through. |
#surface | mask | Blocks with at least one face exposed to air, in other words the visible surface. |
#region | mask | Blocks inside the current selection. Aliases #sel and #selection. |
#clipboard | mask | Blocks that match the clipboard contents. |
##<tag> | mask | A whole block category: ##logs is all logs, ##wool is all wool.//replace ##logs air |
%<number> | mask | Random noise: the given percentage of blocks will match.//replace %50 stone |
> | mask | Blocks lying ABOVE those that match the next mask.//replace >grass_block snow |
< | mask | Blocks lying BELOW those that match the next mask. |
~ | mask | Blocks touching those that match the next mask. |
$<biome> | mask | Blocks in the given biome.$desert |
mask1 mask2 | mask | A space between masks means both must match at once. |
<block>,<block> | block pattern | A random mix: each block is picked at random from the listed ones.//set stone,cobblestone |
<weight>%<block> | block pattern | A weighted mix. The percent sign is nominal, the values are relative weights.//set 70%stone,30%cobblestone |
*<block> | block pattern | A random block state, for example any stair direction.//set *oak_log |
#clipboard | block pattern | Takes blocks from the clipboard in the same arrangement. |
^<block or [state]> | block pattern | Changes only the block type or only its state, leaving the rest alone.//set ^[waterlogged=true] |
##<tag> | block pattern | A random block from a category.//set ##wool |
hand / offhand | block pattern | The block you're holding, so you don't have to remember its id.//set hand |
<block>|line1|line2 | block pattern | A sign with text: lines are separated by a vertical bar. |
FAQ
How do I get the WorldEdit axe?
The //wand command gives you a wooden axe. Left-click a block to set the first corner of the region and right-click for the second. If the axe gets in the way during normal play, unbind it with /tool none.
How do I copy a build and paste it somewhere else?
Three steps. Select the build with the axe, stand at a convenient point (the copy will be positioned relative to it) and type //copy. Go to where you need the copy and type //paste. The -a flag on paste won't overwrite existing blocks with air, and -o puts the copy back at exactly the original coordinates.
Why a double slash instead of a single one?
That's how WorldEdit itself is designed: world editing commands start with two slashes so they don't clash with other plugins' commands. Some commands (schematics, tools, undo) are written with a single slash in the docs. The builder above already uses the correct slashes.
How do I undo what I've done?
The //undo command reverts the last action, and you can specify a number of steps: //undo 5. It only works while the history hasn't been cleared and hasn't exceeded the size set in the plugin settings. Undoing other players' edits requires the separate worldedit.history.undo permission.
How do I replace some blocks with others without touching the rest?
Use //replace. The first argument is what to replace, the second is what to replace it with: //replace stone cobblestone. Leave the first one empty and it replaces everything except air. You can use masks: //replace ##logs air removes all logs of any wood type.
The command runs but nothing happens
Three common causes. First, a forgotten global mask /gmask: it silently filters out all blocks; remove it by typing /gmask with no argument. Second, the per-command block limit: //limit caps how many blocks one command can change. Third, the selection is in a different place or world than you think; check it with //size.
What is a schematic and why do I need it?
It's a file with a saved build. /schematic save name writes the clipboard contents to the plugins/WorldEdit/schematics folder, and /schematic load name brings it back. This is how builds are moved between worlds and servers or handed to another builder.
How is a brush different from regular commands?
Commands work on a selected region, while a brush works right where you click, no selection needed. A brush is bound to the item in your hand: /brush sphere stone 5, and every right-click places a stone sphere with a radius of five. For terrain this is faster than selecting a region every time.
Where the data comes from
Syntax and flags were taken from the WorldEdit 7.4 documentation on September 1, 2026.