Skip to content

Instantly share code, notes, and snippets.

@rmsy
Last active August 29, 2015 14:05
Show Gist options
  • Save rmsy/4437e7b5a161d41cfefb to your computer and use it in GitHub Desktop.
Save rmsy/4437e7b5a161d41cfefb to your computer and use it in GitHub Desktop.
New filter usage.

Usage

Game Mode

Kit:

<game-mode>creative</game-mode>

Sets the player to creative mode.

Filter:

<game-mode>survival</game-mode>

Returns TRUE if the player (or game mode) queried is in survival, otherwise returns FALSE (if queried object is neither a player nor a game mode, returns ABSTAIN).

Flying

Kit:

<flying/>

Sets the player to flying. Equivalent to this:

<flying>true</flying>

...which also sets the player to flying. Naturally, this is also possible:

<flying>false</flying>

...which sets the player to not flying.

Filter:

<flying/>

Returns TRUE if the player queried is flying, otherwise returns FALSE (if queried object is not a player, returns ABSTAIN).

Allow Flight

Kit:

<can-fly/>

Allows the player to fly. Equivalent to this:

<can-fly>true</can-fly>

...which also allows the player to fly. Naturally, this is also possible:

<can-fly>false</can-fly>

...which disallows the player from flying.

Filter:

<can-fly/>

Returns TRUE if the player queried is allowed to fly, otherwise returns FALSE (if queried object is not a player, returns ABSTAIN).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment