Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 132
    • Issues 132
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #959

Closed
Open
Created Oct 18, 2022 by l rz@Raenzil

Expand region condition functions

Summary

New conditions to detect a WorldGuard region more precisely and conveniently.

Usage

For now there's only two conditions "NotInRegion" and "Region" is associated with WorldGuard regions, and both of them only detect the name of the region, which can be a huge trouble for servers that use lots of regions (for example, the ProtectionStone plugin, a WG addon, creates regions with their names based on the location that placed the prtection stone, which can create really lots of regions with different, unpredictable names).

Value

Makes the region condition more flexible and useful, and help mob or skill designers to make them more respectful to regions. (Example: check if a caster is in a region with block-break "true" to determine whether a skill cast by it should break blocks)

Priority

Medium.

Implementation

  1. RegionFlag

example: - regionflag{flag=pvp,value=deny}

Checks if the target is in regions that have certain flags. The "value" attribute can be "allow", "deny" or "none". I know there's another issue #690 that has described this, too, but since there's a long time without more information or reply about it, please allow me to remention it.

  1. RegionTemplate

example: - regiontemplate{name=someregiontemplate}

Checks if the target is in regions based on a certain template region. More information about template region: https://worldguard.enginehub.org/en/latest/regions/priorities/#template-regions.

  1. RegionOwner

example: - regionowner{owner=SomeOwnerName,member=SomeMemberName}

Checks if the target is in regions that have certain owner or member names.

  1. RegionPriority

example: - regionpriority{priority=10}

Checks if the target is in regions that have certain priority.

  1. RegionAmount

example: - regionamount{amount=3,countglobal=false}

Checks how many regions are the target now within. The "countglobal" attribute decides whether global regions (usually "__global__") should be counted.

Edited Mar 30, 2025 by Brickgard
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking