Using Regions
Define areas in your map to control game rules and trigger location-based logic.
A Region is a defined 3D area within your map. Regions are the foundation for all location-based logic in Game Maker. You create regions to specify where certain rules apply or where events should be listened for.
You can create a region for:
- A spawn area where players are protected from PvP.
- A finish line that triggers a victory sequence.
- A "kill floor" that damages any player who enters it.
- A specific room where a custom mob spawns.
You manage regions in /editmap -> Regions.
Creating a Region
- Select an Area: Use the WorldEdit wand (
//wand) to select a 3D area. Left-click to set position 1, and right-click to set position 2. - Define the Region: Use the command
/region define <RegionName>. For example:/region define SpawnArea. - Manage: Your new region will now appear in the
/editmap-> Regions menu, where you can configure its logic.
The Global Region
Every map has a special, un-deletable Global Region that covers the entire map. It is used for events that should apply everywhere, such as:
Region Configuration
Once a region is created, you can click on it in the Regions menu to configure it. This is where you connect your game's logic to a specific location.
- Events: The most important section. Here you can add Event Handlers that will only fire when the event occurs inside this region.
- Flags: Apply special game rules to this specific area. See the Flags Reference for a complete list.
- Rename/Redefine/Teleport: Standard management tools for your region.
Flags: Region-Specific Game Rules
Flags are simple on/off rules that you can apply to a region to change how Minecraft's default mechanics work inside that area. For example, you can create a Lobby region and set its Players Vs Players flag to DENY to create a safe zone.
You can set flags in the /editmap -> Regions -> <Your Region> -> Flags menu.
Each flag can have one of three values:
- ALLOW (Green Wool): The action is explicitly allowed in this region, even if it's denied by a larger overlapping region.
- DENY (Red Wool): The action is explicitly denied in this region.
- INHERIT (Gray Wool): The region does not specify a rule. It will use the rule of the next largest region it's inside, or the server default if no rule is set.