Argument Types

Various argument types that are found in native conditions

Regular

NameDescriptionValue examplesConcrete examples

Integer

A real number

  • 1

  • 2

  • 1000...

  • {distance = 10}

String

Regular text. Some may support PAPI placeholders

  • hello

  • %player_name%...

  • {first=%player_name%}

Boolean

true or false

  • true

  • false

  • {value=true}

Type

Specific type (clarified in the condition list)

  • creative

  • survival

  • grass_block

  • {gm=creative}

Operation

Operation to perform on two variables

  • ==

  • <=

  • >=

  • <

  • >

  • {oper= <=}

  • {o==}

Location

A location in the players current world

  • [ x, y, z]

  • [ 43, 64, -43]

  • { l = [43, 64, -43] }

Slot

A players slot

found here

  • {slot=hand}

Arrays

Some arguments support an array of specific types. For example the gamemode condition can define multiple game modes like so: gamemode{gm=creative,survival} which will trigger the condition if the players gamemode is either creative or survival. Array options are separated with a comma " , ". It's optional to specify multiple values in an array, it can just as well consist of a single value.

conditions:
# Array of game mode types
- gamemode { gm = creative, survival, adventure }
# Array of material types
- standingon { mat = grass_block, dirt_block }
# Array of furniture id strings
- lookingatfurniture { id = table, chair }

Last updated