> ## Content Index
> Fetch the complete content index at: https://dedicatedmc.io/blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# WorldEdit and WorldGuard: the essentials
- URL: https://dedicatedmc.io/blog/worldedit-worldguard-essentials/
- Published: 2026-11-10T10:00:00.000Z
- Updated: 2026-11-10T10:00:00.000Z
- Author: Mark E
- Tags: Guide, Minecraft, Plugins

WorldEdit and WorldGuard are two of the most common plugins on a Minecraft SMP, and they are often installed together, but they do very different jobs. WorldEdit is a building and terrain tool that lets you change thousands of blocks at once. WorldGuard is a protection tool that lets you mark out areas and control what can happen inside them. This post is a practical intro to both: what each one is for, the commands you will actually use, and where they fit alongside the rest of your plugin set. If you want the wider baseline first, [essential SMP plugins](https://dedicatedmc.io/blog/essential-smp-plugins) covers the whole list this pair belongs to.

## WorldEdit: editing the world in bulk

WorldEdit turns edits that would take hours by hand into a single command. You select a region, then run an operation on every block in it at once. That is the whole model, and once it clicks, most of the plugin follows from it.

You almost always want this on staff or trusted builders only, because the same power that flattens a mountain in one command can flatten a player's base by mistake. Keep its permissions tight and pair it with a rollback tool, which we come back to at the end.

### Making a selection

The selection is the first half of every WorldEdit operation. The default tool is the wand, which is a wooden axe.

Run `//wand` to get the wand item. Left-click a block to set position one, right-click a block to set position two, and the box between those two corners is your selection. That cuboid is what every region command below acts on.

If you prefer typing, `//pos1` and `//pos2` set the corners at your feet, and `//expand`, `//contract` and `//shift` adjust the selection after the fact. `//expand vert` stretches the selection from the world floor to the sky, which is handy for clearing a full column.

### The core commands

These are the ones you will reach for constantly.

`//set <block>` fills every block in the selection with one type. `//set stone` makes it solid stone, and `//set air` clears it out entirely.

`//replace <from> <to>` swaps one block for another and leaves the rest alone. `//replace dirt grass_block` turns only the dirt in the selection into grass, which is far cheaper than rebuilding.

`//copy` copies the selection to your clipboard relative to where you are standing, and `//paste` drops it back down. `//cut` does the same as copy but removes the original. Because paste is positioned relative to you, stand where you want the copy to land before you paste. `//stack <count>` repeats the selection in the direction you are facing, which is how you tile a wall or a road quickly, and `//move <count>` shifts the selection's contents without copying.

`//undo` reverses your last WorldEdit action, and `//redo` puts it back. This is the command that makes the whole plugin safe to experiment with, so learn it before you learn anything ambitious. WorldEdit keeps a history per player, so `//undo 3` walks back your last three actions.

### Brushes

Brushes turn WorldEdit into a paintbrush for terrain. Instead of selecting a region, you bind a shape to a tool and place it at whatever block you are looking at.

`/brush sphere <block> <radius>` binds a sphere to your current item, so `/brush sphere stone 5` paints stone spheres of radius five wherever you right-click. `/brush sphere air 5` does the reverse and scoops spheres out of terrain. There are cylinder and smooth brushes too, and the smooth brush is the one that turns blocky hand-built hills into something that looks natural. Brushes are how large-scale terrain gets shaped, and they reward a bit of practice on a spare patch of world before you use them near anything you care about.

## WorldGuard: protecting what you built

WorldGuard does the opposite job. Where WorldEdit changes blocks, WorldGuard stops them from being changed. It lets you define named three-dimensional regions and attach rules to them, so spawn cannot be griefed, a shop district is safe from fire, and PvP is only on where you want it.

### Defining a region

A WorldGuard region uses a WorldEdit selection as its shape, which is why the two plugins pair so naturally.

Make a cuboid selection with the WorldEdit wand as above, then run `/rg define <name>` to turn that selection into a protected region. `/rg define spawn` protects your selected spawn area under the name spawn. By default, only owners and members of a region can build in it, so defining a region around spawn locks out everyone else straight away.

`/rg addowner <name> <player>` and `/rg addmember <name> <player>` grant build rights inside a region, with owners also able to manage the region itself. `/rg redefine <name>` reshapes an existing region to your current selection without losing its flags, `/rg info` shows the region you are standing in, `/rg list` shows them all, and `/rg remove <name>` deletes one.

### Flags: the actual control

Flags are where WorldGuard earns its place. A flag sets one rule on a region, and the command is `/rg flag <region> <flag> <value>`.

`/rg flag spawn pvp deny` turns off player-versus-player combat inside spawn. `/rg flag spawn build deny` stops non-members changing blocks, using doors and levers, opening chests and most other interaction in one flag. `/rg flag arena pvp allow` switches PvP back on for a region where you do want fights.

`/rg flag <region> mob-spawning deny` stops mobs spawning inside a region, which is the clean way to keep hostiles out of a build area. `/rg flag <region> greeting Welcome to spawn` sets a message players see when they enter, and `farewell` sets one for when they leave. Finer controls exist too: `use` governs doors, levers and buttons on their own, and `chest-access` governs container access on its own, so you can allow one without the other.

For a whole world, the special region name `__global__` applies a flag everywhere at once, for example `/rg flag __global__ pvp deny` to make the entire world safe by default. When two regions overlap, priority decides which one wins, set with `/rg setpriority <region> <number>`, and the higher number takes precedence. That is how you carve a PvP arena out of a no-PvP world: give the arena region a higher priority than the region around it.

## How they fit together, and what they are not

WorldEdit and WorldGuard are staff and structure tools. They are not a claim system, and this is the distinction that trips people up.

WorldGuard regions are defined by an admin with a command. They are perfect for the fixed, important areas of your server: spawn, shops, event arenas, warps. They are not how you let hundreds of players each protect their own base, because you do not want to be running `/rg define` every time someone builds a house. For player-made claims that players manage themselves, you want a dedicated claim plugin, and the two coexist happily on the same server: WorldGuard handles the map's fixed furniture, the claim plugin handles everyone's homes.

Both of these belong in the same safety layer as a rollback tool, because protection stops most grief but never all of it, and the day someone slips through is the day you will want to reverse the damage in seconds rather than rebuild by hand. That whole approach, claims plus logging plus rollback, is covered in [grief protection and rollback](https://dedicatedmc.io/blog/grief-protection-rollback), and this pair is two of the pieces in it.

If you want a server that runs plugins like these on hardware built to carry them without eating your tick, our [Minecraft hosting](https://dedicatedmc.io/minecraft-server-hosting?ref=dedicatedmc.io) is set up for exactly that.