Skip to content

WorldGuardπŸ”—

ObjectivesπŸ”—

RegionπŸ”—

Context:
Syntax: region <region> [entry|exit]
Description: The player has to interact with the specified region.

Parameter Syntax Default Value Explanation
Region Region name The region where the player has to be
Entry entry Disabled The player needs to enter the region
Exit exit Disabled The player needs to leave the region
Example
objectives:
  deathZone: "region deathZone entry actions:kill"

ConditionsπŸ”—

NpcRegionπŸ”—

Context:
Syntax: npcregion <npc> <region>
Description: This condition is met if the specified npc is inside the specified region.

Parameter Syntax Default Value Explanation
Npc Npc The ID of the NPC
Region Region Name The region where the NPC needs to be
Example
conditions:
  mayorAtSpawn: "npcregion mayor spawn"

RegionπŸ”—

Context:
Syntax: region <region>
Description: This condition is met if the player is inside the specified region.

Parameter Syntax Default Value Explanation
Region Region name The region where the player has to be
Example
conditions:
  inCastle: "region castle"