Location - momoservertw/PlayerdataPlus GitHub Wiki

To specify some locations. Support radius and comparison operators.


Index:


World list example

Location:
  - world
  - world_nether
  - world_the_end

Advance example

Location:
  world:
    X: 1000
    Y: ">= 80"
    Z: "-1000 ~ 1000"
  world_nether:
    "!X": 1000
    "!Z": 1000
  world_the_end:
    R: 1000
  world_custom: []

Coordinate Format

By default, it will check all coordinates in config. If one of them are match, it will cancel the spawn event immediately. It means there has not any entity which location match X or Y or Z.

  • X
  • Z
  • R

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

  • !X"
  • "!Y"
  • "!Z"
  • "!R"
  • "!XYZ"...

"XZ: > 100". It means that X "> 100" or Z "> 100".

  • XYZ
  • XZ
  • XY
  • YZ

Range format

X: "1000"

Location "-1000" to "1000".

X: ">= 80"

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

X: "-1000 ~ 1000"

Location "-1000" to "1000".

R: 1000

Radius: 1000 Center: "0, 0"

"!R": 1000

Radius: outside of 1000 Center: "0, 0"

R: "1000 100 100"

Radius: 1000 Center: "100, 100"

R: "1000 100 80 100"

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


⚠️ **GitHub.com Fallback** ⚠️