Skip to content

Location

Momoservertw edited this page Aug 9, 2020 · 3 revisions

To specify some locations. Support radius and comparison operators.


Index:


World list Example

Location:
  - world
  - world_nether
  - world_the_end
World Type Description
WORLD_NAME The world name.
global All worlds.
Custom-Groups The groups from groups.yml. More information: Custom-Groups

Area Example

Location:
 Normal:
    Worlds:
      - world
    Area:
      X: 1000
      Z: 1000
      Y: ">= 80"
 Nether:
    Worlds:
      - world_nether
    Area:
      S: 1000
      Y: ">= 80"
 End:
    Worlds:
      - world_the_end
    Area:
      "!R": 1000
  Other:
    Worlds:
      - world_custom
  • world - X: ±1000, Z: ±1000, Y: ≥80
  • world_nether - the radius (squared) of "1000" blocks and Y: ≥80 (As same as "world")
  • world_the_end - Outside 【the radius (round) of "1000" blocks】.
  • world_custom - In the world "world_custom".

Coordinate Format

X: 1000

X ➯ "-1000" to "1000".

It will be succeed if all coordinate matched.

Y: ">= 80"

Y ➯ greater than or equal to "80".

Support operator: >, <, =, >=, <=, ==

Z: "-1000 ~ 1000"

Z ➯ "-1000" to "1000".

"!Y": ">= 80"

"!Y" ➯ Under "80".

Adding "!" in front of any coordinate will check the opposite coordinate range.
For example, if "Y: >=80" is "≥80", "!Y: >= 80" will be "< 80".
And you need to bracket up the coordinate if you use it.


Radius

R: 1000

Radius: 1000 Center: "0, 0" Shape: round

S: 1000

Radius: 1000 Center: "0, 0" Shape: squared

"!R": 1000

outside of 1000 Center: "0, 0" Shape: round

Adding "!" in front of any radius will check the opposite coordinate range.
For example, if R is "1000", "!R" will be the outside of "1000".
And you need to bracket up the coordinate if you use it.

R: "1000 100 100"

Radius: 1000 Center: "100, 100"

R: "1000 100 80 100"

Radius: 1000 Center: "100, 80, 100"


Clone this wiki locally