Condition list
List of all natively available conditions
Last updated
List of all natively available conditions
Last updated
Currently, the plugin natively supports the following conditions:
[ Compare two values ]
[ Whether a player has specified permissions ]
[ Whether a player is opped ]
[ Whether the players gamemode is among specified ones ]
[ Whether the players location matches the given location ]
[ Whether a player is in a cuboid ]
[ Which type of block the player is standing on ]
[ Whether the player is sneaking ]
[ Which world the player is in ]
[ Whether its day in the players world ]
[ Whether its night in the players world ]
[ What time is it in the players world ]
[ What type of block the player is looking at ]
[ If player is looking at plugin furniture ] *1
[ If player is looking at an entity ]
[ Check nbt values of the entity that is being looked at ] *2
[ Check nbt values of the tile entity that is being looked at ] *2
[ Check nbt values of the block that is being looked at ] *2
[ Check blockstate values of the block that is being looked at ]
[ Whether player is looking at a Citizens NPC ] *4
[Whether player is looking at a MythicMob mob] *5
[ If a player has the item equipped in hands or on body ]
[ If players equipped item has given nbt data ] *2
[ If players region is among specified ones ] *3
Notes:
1, first
%player_name%
2, second
%player_health%
o, oper, operation (optional)
compare.first
Parsed value of the "first" argument
compare.second
Parsed value of the "second" argument
If only first is set and it's a boolean, will check if it's true
If both first and second are set and they are strings, they will be compared if they are equal. If they are booleans (true / false) they will be also compared if they are equal.
If operation is set and both first & second arguments are numbers, will use the operation to compare the variables.
Examples
p, perm, permission
tooltips.command.reload
Checks if player has any of the permissions in the string array
Examples
Checks if player is opped
Examples
gamemode, gm
creative, survival
Checks if player has any of the given gamemodes
Examples
location, loc, l
[ 22, 602, -234] or [22, 602, -234], [22, 603, -233]
Checks if player is at the given coordinates in their current world
Examples
first, 1, firstpoint
[ 22, 602, -234]
second, 2, secondpoint
[49, 620, -251]
This check is more resource-intensive than the "region" condition, due to being unable to cache which cuboid the player is currently in.
Checks if player is within the two given locations.
Examples
type, m, mat, material
grass_block, obsidian
Checks if player is currently standing on any of the given materials. Can also be air to check if the block under the player is air.
Examples
Checks if player is currently sneaking
Examples
name
world, resource_world
world
Returns the world name
Checks if players world is any of the ones defined in the name string array.
Examples
Checks if its day (time between 0 and 13000) in the players current world.
Examples
Checks if its night (time between 13000 and 24000) in the players current world.
Examples
time, t
1000, 13000
o, oper, operation (optional)
>=
If operation is included, a comparison operation is conducted, with given time argument being the first comparable.
Examples
type, m, mat, material (optional)
bedrock, grass_block
location, loc, l (optional)
[0, 64, 50]
distance, d (optional)
3, 5
If no type or location is given, will return true if any type of block is being looked at.
If type is defined, will check if the block that is being looked at is of specific material
If location is defined, will check if the block that is being looked at is at specific coordinates in the players current world
If distance is defined (3 by default), will increase or decrease the distance at which the block that is being looked at is detected
Examples
id (optional)
couch, chair
distance, d (optional)
3, 5
furniture.id
ID of target furniture
furniture.name
Name of the furniture as defined in the config of the plugin
furniture.plugin
The plugin where this furniture came from
Requires any supported furniture plugin to work.
If no ids are given, checks if player is looking at any furniture within the distance (3 by default).
If ids are given, checks if the furniture the player is looking at has any of the ids.
Distance argument increases the distance at which furniture is checked.
Examples
entity, type, t (optional)
villager, sheep
distance, dist, d (optional)
3, 5
If no types are given, checks if player is looking at any type of entity (armor stands etc. too)
If types are given, checks if player is looking at any of the given entity types
If distance is given, will increase the distance that entities are checked at (3 by default)
Examples
key, k
mynbtkey
nbtvalue, nbtval, value, val, v
weird, 10, false
distance, dist, d (optional)
3, 5
Requires NBT API plugin to work.
Checks if the targeted entity within distance (3 by default) has a key with given value
Supports basic NBT paths as key. Example:
Item.tag.CustomModelData
Examples
key, k
mynbtkey
nbtvalue, nbtval, value, val, v
weird, 10, false
distance, dist, d (optional)
3, 5
Requires NBT API plugin to work.
Checks if the targeted tile entity within distance (3 by default) has a key with given value
Supports basic NBT paths as key. Example:
Item.tag.CustomModelData
Examples
key, k
mynbtkey
nbtvalue, nbtval, value, val, v
weird, 10, false
distance, dist, d (optional)
3, 5
Requires NBT API plugin to work.
Checks if the targeted block within distance (3 by default) has a key with given value
Supports basic NBT paths as key. Example:
Item.tag.CustomModelData
Examples
key, k, id
note, powered
value, val, v
weird, 10, false
distance, dist, d (optional)
3, 5
Examples
id, name (optional)
0, 1, 5, 23
distance, dist, d (optional)
3, 5
Requires Citizens plugin to work.
Checks if the targeted entity within distance (3 by default) is a Citizens NPC.
If ids are present, checks if the targeted NPC has any of the given ids.
Examples
id, ids (optional)
String array
john, spider
distance, dist, d (optional)
3, 5
Requires MythicMobs plugin to work.
Checks if the targeted entity within distance (3 by default) is a MythicMobs mob
If ids are present, checks if the targeted mythic mob has any of the given ids.
Examples
type, m, mat, material
stone_axe, flint_and_steel
slot, s (optional)
hand, helmet
Checks if item at the given slot (main hand by default) has the given type
Examples
key, k
mynbtkey
nbtvalue, nbtval, value, val, v
weird, 10, false
slot, s (optional)
off_hand, legs
Requires NBT API plugin to work.
Checks if item at the given slot (main hand by default) has an item with the given nbt key with given nbt value in it. Supports basic NBT paths as keys. Example:
Item.tag.CustomModelData
Examples
r, reg, region, name, id (optional)
shop, spawn
region
Current region ID
Checks if player is in any of the given region ids
If no regions are provided, returns true if player is inside of any region
Examples
Requires a supported
Requires plugin
Requires a
Requires
Requires
(supports placeholders)
(supports placeholders)
array
of array
Array of
of array
array
Checks if the current in the players world is equal to the given time argument.
of array
Array of
array
Type of array
, or
, or
, or
, or
Checks if the targeted blocks within distance (3 by default) has a key with given value
array
Citizen ids can be seen by first selecting an NPC using commands and typing /npc:
of array
, or
array
Requires any plugin to work.