Skip to content

playerpos

Daedalus1400 edited this page May 16, 2017 · 5 revisions

Description:

The playerpos condition checks the position of the player in one dimension.

Added in release version 0.1.0

Arguments:

type

Must be "playerpos".

dimension

Accepts a string. Valid values are "x", "y", and "z".

comparison

Accepts a string. Valid values are "<", and ">".

value

Accepts any number.

Example Usage:

The following example represents a check on the players Y location:

{"type": "playerpos", "dimension": "y", "comparison": ">", "value": 100}

This is will evaluate as:

player.posY > 100;
Clone this wiki locally