β 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β
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β
Condition: β Action: β
Type: Boolean
β Blockβ
Condition: β Action: β
Type: String
β Chanceβ
Condition: β Action: β
Type: Boolean
β Climbingβ
Condition: β Action: β
Type: Boolean
β CompletedObjectiveIDsOfQuestβ
Condition: β Action: β
Type: String List
β CompletedQuestsβ
Condition: β Action: β
Type: String List
β Conditionβ
Condition: β Action: β
Type: Boolean
β ContainerInventoryβ
Condition: β Action: β
Type: ItemStack List
β CurrentBiomeβ
Condition: β Action: β
Type: String
β CurrentPositionXβ
Condition: β Action: β
Type: Double
β CurrentPositionYβ
Condition: β Action: β
Type: Double
β CurrentPositionZβ
Condition: β Action: β
Type: Double
β CurrentWorldβ
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β
Condition: β Action: β
Type: String
β DistanceToLocationβ
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β
Condition: β Action: β
Type: ItemStack List
β Experienceβ
Condition: β Action: β
Type: Integer
β ExperienceLevelβ
Condition: β Action: β
Type: Integer
β Falseβ
Condition: β Action: β
Type: Boolean
β Flyingβ
Condition: β Action: β
Type: Boolean
β FlySpeedβ
Condition: β Action: β
Type: Float
β FoodLevelβ
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β
Condition: β Action: β
Type: String
β Glowingβ
Condition: β Action: β
Type: Boolean
β Healthβ
Condition: β Action: β
Type: Double
β InLavaβ
Condition: β Action: β
Type: Boolean
β InWaterβ
Condition: β Action: β
Type: Boolean
β Inventoryβ
Condition: β Action: β
Type: ItemStack List
β ItemInInventoryEnchantmentsβ
Condition: β Action: β
Type: String List
β MaxHealthβ
Condition: β Action: β
Type: Double
β Moneyβ
Condition: β Action: β
Type: Double
β Nameβ
Condition: β Action: β
Type: String
β NearbyEntityCountβ
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β
Condition: β Action: β
Type: Boolean
β Permissionβ
Condition: β Action: β (only if LuckPerms is installed)
Type: Boolean
β Pingβ
Condition: β Action: β
Type: Integer
β PlaytimeTicksβ
Condition: β Action: β
Type: Integer
β PlaytimeMinutesβ
Condition: β Action: β
Type: Double
β PlaytimeHoursβ
Condition: β Action: β
Type: Double
β QuestAbleToAcceptβ
Condition: β Action: β
Type: Boolean
β QuestOnCooldownβ
Condition: β Action: β
Type: Boolean
β QuestPointsβ
Condition: β Action: β
Type: Long
β QuestReachedMaxAcceptsβ
Condition: β Action: β
Type: Boolean
β QuestReachedMaxCompletionsβ
Condition: β Action: β
Type: Boolean
β QuestReachedMaxFailsβ
Condition: β Action: β
Type: Boolean
β RandomNumberBetweenRangeβ
Condition: β Action: β
Type: Integer
β ReflectionStaticBooleanβ
Condition: β Action: β
Type: Boolean
β ReflectionStaticDoubleβ
Condition: β Action: β
Type: Double
β ReflectionStaticFloatβ
Condition: β Action: β
Type: Float
β ReflectionStaticIntegerβ
Condition: β Action: β
Type: Integer
β ReflectionStaticStringβ
Condition: β Action: β
Type: String
β Sleepingβ
Condition: β Action: β
Type: Boolean
β Saturationβ
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β
Condition: β Action: β
Type: Boolean
β Sprintingβ
Condition: β Action: β
Type: Boolean
β Swimmingβ
Condition: β Action: β
Type: Boolean
β Trueβ
Condition: β Action: β
Type: Boolean
β WalkSpeedβ
Condition: β Action: β
Type: Float
β Weatherβ
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β
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β
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β
Condition: β Action: β
Type: Number (decimals)
Required argument: the tag name (create it with /qa tags create Double <name>).
β TagFloatβ
Condition: β Action: β
Type: Number (decimals)
Required argument: the tag name (create it with /qa tags create Float <name>).
β TagBooleanβ
Condition: β Action: β
Type: Boolean
Required argument: the tag name (create it with /qa tags create Boolean <name>).
β TagStringβ
Condition: β Action: β
Type: String
Required argument: the tag name (create it with /qa tags create String <name>).
PlaceholderAPI Integration Variablesβ
β PlaceholderAPINumberβ
Condition: β Action: β
Type: Double
β PlaceholderAPIStringβ
Condition: β Action: β
Type: String
Towny Integration Variablesβ
β TownyNationNameβ
Condition: β Action: β
Type: String
β TownyNationTownCountβ
Condition: β Action: β
Type: Integer
β TownyTownPlotCountβ
Condition: β Action: β
Type: Integer
β TownyTownResidentCountβ
Condition: β Action: β
Type: Integer
Floodgate Integration Variablesβ
β FloodgateIsFloodgatePlayerβ
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β
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