In Region Fact
The In Region Fact (in_region) allows you to check if a player is currently within one or more specific protected zones. This is useful for conditional actions, such as enabling specific menus only in certain areas.
Configuration
| Parameter | Type | Description |
|---|---|---|
regions | List<Ref<RegionDefinition>> | The list of regions to check against. |
Usage
This fact returns true if the player is standing inside any of the regions specified in the list.
Example: Restricted Command
You can use this fact in a command requirement to ensure it only works inside a "Battle Arena" region.
# Example: Arena-only command
type: command_entry
name: fireball
requirements:
- type: in_region
regions: [arena_region_definition]