Skip to content

WorldGuard flags

Choose what's allowed and what isn't in the region and get ready-made /rg flag commands. Start with a preset for a spawn, marketplace, claim or arena and fine-tune it.

Presets

No building, breaking or fighting, no mob spawning, with a greeting.

Commands: 9

/rg flag spawn build deny
/rg flag spawn pvp deny
/rg flag spawn mob-spawning deny
/rg flag spawn mob-damage deny
/rg flag spawn chest-access deny
/rg flag spawn item-drop deny
/rg flag spawn interact allow
/rg flag spawn greeting &aWelcome to spawn!
/rg flag spawn fall-damage deny

Area protection

Placing and breaking blocks, using items on blocks. The most general flag: deny turns the region into “look but don't touch”.

Breaking only. Needed when building is forbidden but mining something is allowed (or the other way around).

Placing blocks only.

Doors, buttons, levers, pressure plates, crafting tables. Separate from building: often it's doors specifically that need to be allowed.

Open doors, trapdoors and fence gates and press buttons without build rights.

Open chests, barrels, hoppers and furnaces in the region.

Denying it saves the spawn from turning into a dump of dropped items.

Picking up items lying on the ground.

Minecarts and boats.

Breaking minecarts and boats.

Using horses, boats and minecarts as transport.

Allows or denies using beds.

A utility flag: allow makes WorldGuard skip the region's ownership check and look at the regions beneath it. Needed for large “shells” around zones.

Combat and damage

Damage from one player to another. The first thing turned off at spawn and in trading zones.

Hitting cows, sheep, horses and other animals.

Players in the region take no damage at all: not from mobs, falling or lava.

A targeted alternative to invulnerability: other damage works, falling doesn't. Handy for park zones and elevators.

Using splash potions in the region.

How much health to restore per tick spent in the region. A negative value takes health away.

How much hunger to restore per tick spent in the region.

Explosions and fire

Damage and destruction from Creepers.

TNT detonating in the region.

End Crystals, Ghast fireballs, Minecart with TNT explosions.

Fire jumping from block to block.

Blocks catching fire next to lava.

Using Flint and Steel in the region.

Lava spreading inside the region.

Water spreading inside the region.

Mobs

Natural mob spawning inside the region. Usually deny at spawn.

Mobs don't damage players in the region.

Breaking paintings in the region.

Breaking item frames, otherwise displays get looted.

Whether Endermen may carry blocks out of the region.

Ravagers breaking blocks (raids).

Messages and entry

deny blocks entry for everyone except region members.

deny keeps players from leaving the region. Used for arenas and quarantines.

The text a player sees when entering the region. Supports color codes.

The text shown when leaving the region.

A message to admins when someone enters the region.

Where /rg teleport sends you. The value is coordinates or here.

Where a player who died in this region respawns.

Teleporting into the region with an Ender Pearl, a common way to get around a closed entry.

World and game mode

A forced game mode inside the region: adventure at spawn prevents breaking blocks even without WorldGuard permissions.

Time of day inside the region: a number of ticks or day/night.

Weather inside the region.

Whether experience drops from killed mobs and broken blocks.

Snow cover disappearing.

Water freezing in the region.

Leaves disappearing without support; deny keeps decorative tree crowns intact.

Whether crops and saplings grow in the region.

FAQ

How do I disable PvP at spawn?

Create a spawn region (/rg define spawn) and run /rg flag spawn pvp deny. Usually build deny and mob-spawning deny are set along with it, and the “Spawn” preset in the builder above gives you all three commands at once.

What is __global__?

It's a virtual region covering the whole world. A flag set on __global__ applies everywhere there's no higher-priority region. It's a handy way to, for example, turn off TNT explosions across the entire map.

The flag is set but doesn't work. Why?

Three common reasons: the command was run in the wrong world (add -w world_name); another region with a higher priority overlaps it (/rg setpriority); or the player has the worldguard.region.bypass permission, which skips the checks. Operators usually have it, so test flags from a regular account.

How is build different from block-break and block-place?

build is a general flag covering placing, breaking and some interactions. block-break and block-place are targeted: they're handy for allowing just one thing while build is denied.

How do I set a colored greeting?

The greeting flag accepts text with & color codes: /rg flag spawn greeting &aWelcome. No quotes needed, WorldGuard takes everything up to the end of the line.

See also