Skip to main content

⭐ Variables

Variables are used internally to create both advanced actions and conditions at the same time- and that much quicker! A lot of the following variables can thus be used as conditions and, in many cases, as actions as well. Not only that - they can also be used in so-called expressions. So you can even do calculations with these variables!

Default variables​

❓ ActiveQuests​

Description

Condition: βœ… Action: βœ…

Type: String List

Example conditions:

  • /qa conditions add isWoodCutterQuestActive ActiveQuests contains woodCutter - Condition is fulfilled if the player has the woodCutter quest active
  • /qa conditions add isOnlyWoodCutterQuestActive ActiveQuests equals woodCutter - Condition is fulfilled if the player has ONLY the woodCutter quest active and no other quest
  • /qa conditions add hasAllWoodQuestsActive ActiveQuests contains woodCutter,saveTheWoods - Condition is fulfilled if the player has BOTH the woodCutter and saveTheWoods quests active

Example actions:

  • /qa actions add giveQuestWoodCutter ActiveQuests add woodCutter - This action force-gives the woodCutter quest to the player
  • /qa actions add setQuestWoodCutter ActiveQuests set woodCutter - This action force-gives the woodCutter quest to the player and fails all other quests the player currently has
  • /qa actions add setQuestWoodCutter ActiveQuests set woodCutter - This action force-gives the woodCutter quest to the player and fails all other quests the player currently has
  • /qa actions add giveForestQuests ActiveQuests add woodCutter,saveTheWoods - This action force-gives both the woodCutter quest and the saveTheWoods quest to the player

❓ Advancement​

Description

Condition: βœ… Action: βœ…

Type: Boolean

❓ Block​

Description

Condition: βœ… Action: βœ…

Type: String

❓ Chance​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ Climbing​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ CompletedObjectiveIDsOfQuest​

Description

Condition: βœ… Action: βœ…

Type: String List

❓ CompletedQuests​

Description

Condition: βœ… Action: βœ…

Type: String List

❓ Condition​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ ContainerInventory​

Description

Condition: βœ… Action: βœ…

Type: ItemStack List

❓ CurrentBiome​

Description

Condition: βœ… Action: ❌

Type: String

❓ CurrentPositionX​

Description

Condition: βœ… Action: βœ…

Type: Double

❓ CurrentPositionY​

Description

Condition: βœ… Action: βœ…

Type: Double

❓ CurrentPositionZ​

Description

Condition: βœ… Action: βœ…

Type: Double

❓ CurrentWorld​

Description

Condition: βœ… Action: βœ…

Type: String

Reads the world the player is currently in. As an action, it teleports the player to that world's spawn.

❓ DayOfWeek​

Description

Condition: βœ… Action: ❌

Type: String

❓ DistanceToLocation​

Description

Condition: βœ… Action: ❌

Type: Double

Returns the player's distance in blocks from a fixed location. If the player is in a different world, the value is very large so β€œless than” checks will not pass by accident.

Arguments: <world> <x> <y> <z>

Example condition: /qa conditions add nearShrine DistanceToLocation world 120 72 -45 lessThan 8

❓ EnderChest​

Description

Condition: βœ… Action: βœ…

Type: ItemStack List

❓ Experience​

Description

Condition: βœ… Action: βœ…

Type: Integer

❓ ExperienceLevel​

Description

Condition: βœ… Action: βœ…

Type: Integer

❓ False​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ Flying​

Description

Condition: βœ… Action: βœ…

Type: Boolean

❓ FlySpeed​

Description

Condition: βœ… Action: βœ…

Type: Float

❓ FoodLevel​

Description

Condition: βœ… Action: βœ…

Type: Integer

Reads or changes the player's hunger bar value from 0 to 20.

Example condition: /qa conditions add isHungry FoodLevel lessThan 8

Example action: /qa actions add feedPlayer FoodLevel set 20

❓ GameMode​

Description

Condition: βœ… Action: βœ…

Type: String

❓ Glowing​

Description

Condition: βœ… Action: βœ…

Type: Boolean

❓ Health​

Description

Condition: βœ… Action: βœ…

Type: Double

❓ InLava​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ InWater​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ Inventory​

Description

Condition: βœ… Action: βœ…

Type: ItemStack List

❓ ItemInInventoryEnchantments​

Description

Condition: βœ… Action: ❌

Type: String List

❓ MaxHealth​

Description

Condition: βœ… Action: βœ…

Type: Double

❓ Money​

Description

Condition: βœ… Action: βœ…

Type: Double

❓ Name​

Description

Condition: βœ… Action: βœ…

Type: String

❓ NearbyEntityCount​

Description

Condition: βœ… Action: ❌

Type: Integer

Counts nearby entities around the player. The player themself is not counted.

Arguments: <entityType> <radius>

Use a mob type like zombie, villager, or wolf, or use any to count all nearby entities.

Example condition: /qa conditions add crowded NearbyEntityCount any 10 moreOrEqualThan 5

❓ Op​

Description

Condition: βœ… Action: βœ…

Type: Boolean

❓ Permission​

Description

Condition: βœ… Action: βœ… (only if LuckPerms is installed)

Type: Boolean

❓ Ping​

Description

Condition: βœ… Action: ❌

Type: Integer

❓ PlaytimeTicks​

Description

Condition: βœ… Action: βœ…

Type: Integer

❓ PlaytimeMinutes​

Description

Condition: βœ… Action: βœ…

Type: Double

❓ PlaytimeHours​

Description

Condition: βœ… Action: βœ…

Type: Double

❓ QuestAbleToAccept​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ QuestOnCooldown​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ QuestPoints​

Description

Condition: βœ… Action: βœ…

Type: Long

❓ QuestReachedMaxAccepts​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ QuestReachedMaxCompletions​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ QuestReachedMaxFails​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ RandomNumberBetweenRange​

Description

Condition: βœ… Action: ❌

Type: Integer

❓ ReflectionStaticBoolean​

Description

Condition: βœ… Action: βœ…

Type: Boolean

❓ ReflectionStaticDouble​

Description

Condition: βœ… Action: βœ…

Type: Double

❓ ReflectionStaticFloat​

Description

Condition: βœ… Action: βœ…

Type: Float

❓ ReflectionStaticInteger​

Description

Condition: βœ… Action: βœ…

Type: Integer

❓ ReflectionStaticString​

Description

Condition: βœ… Action: βœ…

Type: String

❓ Sleeping​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ Saturation​

Description

Condition: βœ… Action: βœ…

Type: Float

Reads or changes the player's hidden saturation value. This is Minecraft's extra food buffer before the visible hunger bar starts dropping.

Example condition: /qa conditions add lowSaturation Saturation lessThan 2

Example action: /qa actions add restoreSaturation Saturation set 10

❓ Sneaking​

Description

Condition: βœ… Action: βœ…

Type: Boolean

❓ Sprinting​

Description

Condition: βœ… Action: βœ…

Type: Boolean

❓ Swimming​

Description

Condition: βœ… Action: βœ…

Type: Boolean

❓ True​

Description

Condition: βœ… Action: ❌

Type: Boolean

❓ WalkSpeed​

Description

Condition: βœ… Action: βœ…

Type: Float

❓ Weather​

Description

Condition: βœ… Action: βœ…

Type: String

Reads or changes the weather in the player's current world. Possible values are clear, rain, and thunder.

Example condition: /qa conditions add isStormy Weather equals thunder

Example action: /qa actions add makeItRain Weather set rain

❓ Statistic​

Description

Condition: βœ… Action: βœ…

Type: Number

Required argument: the Bukkit statistic to read or change (e.g. MOB_KILLS, JUMP, DAMAGE_DEALT).

Example: /qa conditions add killedEnough Statistic MOB_KILLS moreOrEqualThan 100 - true once the player has 100+ mob kills.

Tag Variables​

NotQuests has a powerful tag system: store a custom value on a player β€” a reputation score, a faction name, a hasMetTheKing flag β€” and then read or change it anywhere variables work (conditions, actions, objectives, even inside expressions).

First create a tag with /qa tags create <Type> <name> (types: Integer, Double, Float, Boolean, String). Then use the matching variable below. In commands the tag name is positional (TagInteger reputation add 10); inside an expression use the TagInteger(TagName:reputation) form instead.

For a full, practical walkthrough, see the reputation system tutorial.

❓ TagInteger​

Description

Condition: βœ… Action: βœ…

Type: Number (whole numbers)

Required argument: the tag name (create it with /qa tags create Integer <name>).

Examples:

  • /qa conditions add hasRep TagInteger reputation moreOrEqualThan 50 - true once the player's reputation tag is at least 50.
  • /qa actions add addRep TagInteger reputation add 10 - adds 10 to the reputation tag.

❓ TagDouble​

Description

Condition: βœ… Action: βœ…

Type: Number (decimals)

Required argument: the tag name (create it with /qa tags create Double <name>).

❓ TagFloat​

Description

Condition: βœ… Action: βœ…

Type: Number (decimals)

Required argument: the tag name (create it with /qa tags create Float <name>).

❓ TagBoolean​

Description

Condition: βœ… Action: βœ…

Type: Boolean

Required argument: the tag name (create it with /qa tags create Boolean <name>).

❓ TagString​

Description

Condition: βœ… Action: βœ…

Type: String

Required argument: the tag name (create it with /qa tags create String <name>).

PlaceholderAPI Integration Variables​

❓ PlaceholderAPINumber​

Description

Condition: βœ… Action: ❌

Type: Double

❓ PlaceholderAPIString​

Description

Condition: βœ… Action: ❌

Type: String

Towny Integration Variables​

❓ TownyNationName​

Description

Condition: βœ… Action: βœ…

Type: String

❓ TownyNationTownCount​

Description

Condition: βœ… Action: ❌

Type: Integer

❓ TownyTownPlotCount​

Description

Condition: βœ… Action: ❌

Type: Integer

❓ TownyTownResidentCount​

Description

Condition: βœ… Action: ❌

Type: Integer

Floodgate Integration Variables​

❓ FloodgateIsFloodgatePlayer​

Description

Condition: βœ… Action: ❌

Type: Boolean

BetonQuest 3 Integration Variables​

These variables are only available when BetonQuest 3.0.0 or newer is installed. BetonQuest 1.x and 2.x are not supported.

❓ BetonQuestCondition​

Description

Condition: βœ… Action: ❌

Type: Boolean

Checks a condition from a BetonQuest package and returns true or false for the current player.

Required arguments:

  • <package> - BetonQuest package containing the condition.
  • <condition> - Condition name inside that BetonQuest package.

Example command: /qa conditions add has_betonquest_permission BetonQuestCondition main permission_check equals true