๐ญ Conditions
Raw conditions can be created using
To "test" a condition created via
Command Arguments for every condition:
(flags) - Optional flags--negate - This negates the condition. True will turn to False, and False will turn to True--category <categoryName> - If this is a raw, conditions.yml conditions, you are able to set its category here
Default Variable Conditionsโ
These conditions act as "vessels" for variables. What does that mean?
Well... for example, the NumberCondition is such a variable condition. In-game, it turns into as many conditions as there are number variables, so it's a lot more conditions than you think there are.
Please consult the Variables Section for those.
โ Booleanโ
Fulfilled when: The Boolean variable equals the expression. Booleans simply means true or false. Or, in easy words: Yes or No
Command Arguments:
<variable type> Type of the Boolean variable<variable arguments> Additional variable arguments which may or may not exist for this specific variable<operator> - Currently, the only operator isequals <expression> - What the result of the variable should be. Common values aretrue orfalse , but you can also compare it to a different boolean variable here.
Example commands:
/qa conditions add conditionname Flying equals false - Flying would be a variable type./qa conditions add conditionname True equals (Money>10)&Flying - True would be a variable type. This condition is true, if the player is flying AND has more than 10 money.- Another way to do this:
/qa conditions add conditionname True equals Condition(Conditions:Flying&IsRich) - The conditionsFlying andIsRich will have to be created beforehand - Or
qa conditions add conditionname Condition equals Flying&IsRich - The conditionsFlying andIsRich will have to be created beforehand
- Another way to do this:
๐ Listโ
Fulfilled when: The List variable equals the expression.
Command Arguments:
<variable type> Type of the List variable<variable arguments> Additional variable arguments which may or may not exist for this specific variable<operator> - Possible operators arecontains ,containsIgnoreCase ,equals andequalsIgnoreCase <expression> - What the result of the variable should be. This depends on the variable type
Example command:
๐ ItemStackListโ
Fulfilled when: The ItemStackList variable equals the expression.
Command Arguments:
<variable type> Type of the ItemStackList variable<variable arguments> Additional variable arguments which may or may not exist for this specific variable<operator> - Possible operators arecontains andequals <expression> - What the result of the variable should be. This depends on the variable type, but they do have to be Items
Example command:
๐ฏ Numberโ
Fulfilled when: The Number variable equals the expression.
Command Arguments:
<variable type> Type of the Number variable<variable arguments> Additional variable arguments which may or may not exist for this specific variable<operator> - Possible operators areequals ,lessOrEqualThan ,lessThan ,moreOrEqualThan andmoreThan <expression> - What the result of the variable should be. This expression is cool, because it can contain any kind of math expression. And it can even contain other number variables.
Example command:
๐ Stringโ
Fulfilled when: The String variable equals the expression.
Command Arguments:
<variable type> Type of the String variable<variable arguments> Additional variable arguments which may or may not exist for this specific variable<operator> - Possible operators arecontains ,endsWith ,equals ,equalsIgnoreCase ,isEmpty andstartsWith <expression> - What the result of the variable should be. This is a string. The possible values depend on the variable type.
Example command:
Default Conditionsโ
These are the default, "standalone" conditions and don't depend on variables.
๐ค Conditionโ
This condition has been removed in v4.13.0. The Boolean variable
Fulfilled when: The other condition is fulfilled. Yes, this simply checks another condition which is defined in the
Command Arguments:
-
Example command:
โฒ๏ธ WorldTimeโ
Fulfilled when: The current time of the players Minecraft world is in a certain time range
Command Arguments:
<minTime> - minimum time (24-hour clock)<maxTime> - maximum time (24-hour clock)
Example command:
๐ Dateโ
Fulfilled when: The current date is (operator) the specified date. Operators are 'before' and 'after'
Command Arguments:
<Date operation> - Comparison operator between the currentDate or the specified date. Operators arebefore andafter . Example: Current dateafter 2023(flags) - Optional flags--year <year> - The year--month <month> - The month of the year--day <day> - The day of the month--hours <hours> - The hours of the day--minutes <minutes> - The minutes of the hour--seconds <seconds> - The seconds of the minute--timeZone <name of the timezone> - Name of the timezone of the specified date.
Example commands:
/qa conditions add conditionname Date after --year 2022 --timeZone Europe/Berlin - Makes it so the condition is fulfilled next year in Europe/Berlin time/qa conditions add conditionname Date after --month 11 - Seasonal condition! It's fulfilled every december/qa conditions add conditionname Date before --month 11 --year 2022 - You have until the end of october 2022. After that, this condition is NOT fulfilled anymore
Special Default Conditionsโ
๐๏ธ CompletedObjective Conditionโ
This Condition can ONLY be used when attached to an Objective. That's because it's valid for the current Quest. Other Condition attachment places may not be bound to a specific Quest.
Fulfilled when: The specified objective of the current Quest has been completed
Command Arguments:
<Objective ID> - ID of the objective which needs to be completed. To see the objective IDs, use/qa edit questname objectives list
Example command: