Placeholder Conditions
placeholdersConditions:
Description: Parses the said placeholder and compares it with the said value.
type: Of how you want to compare placeholders
PLAYER_STRING
: Parses the given placeholder in the first part with the item user and compares it to the second partPLAYER_NUMBER
: Same asPLAYER_STRING
but you can use INFERIOR/SUPERIOR related comparatorsPLAYER_PLAYER
: Same asPLAYER_STRING
but you can use placeholders in the second part and can use INFERIOR/SUPERIOR related comparatorsTARGET_STRING
: Same asPLAYER_STRING
but you parse the placeholder with your targetTARGET_NUMBER
: Same asTARGET_STRING
but you can use INFERIOR/SUPERIOR related comparatorsTARGET_TARGET
: Same asTARGET_STRING
but you can use placeholders in the second part and can use INFERIOR/SUPERIOR related comparatorsPLAYER_TARGET
: Parses the given placeholder in the first part with the item user and compares it to the second part which parses the target with the given placeholder and can use INFERIOR/SUPERIOR related comparators
comparator: Used to compare the given placeholder to the second part in numbers
EQUALS
: Compares if the given placeholder gives the exact value as the given value in the second partDIFFERENT
: Compares if the given placeholder doesn't give the exact value as the given value in the second partINFERIOR
: Compares if the given placeholder gives a value lower than the given value in the second partSUPERIOR
: Compares if the given placeholder gives a value greater than the given value in the second partINFERIOR_OR_EQUALS
: Compares if the given placeholder gives a value lower than or equals to the given value in the second partSUPERIOR_OR_EQUALS
: Compares if the given placeholder gives a value greater than or equals to the given value in the second partIS_CONTAINED_IN: Compares if the PART1 is cointained in the PART2, if it is, this placeholder is OK and the activator will run.
IS_NOT_CONTAINED_IN: Compares if the PART1 is cointained in the PART2, if it isn't, this placeholder is OK and the activator will run.
messageIfNotValid:
: The custom message if the custom placeholder condition didn't match with the first and second partcancelEventIfNotValid:
: If the custom placeholder condition didn't match with the first and second part, the activator's event will be cancelled. (Default: false)stopCheckingOtherConditionsIfNotValid
: If the conditions is not valid the other conditions won't be checked, so only 1 message of error will be displayed. (Default:true)placeholderConditionCmds
: If the conditions are not met this list of commands will run.
Example:
Example Situations:
If the player facing south west with this given placeholder condition, the activator will activate.
Required: NO
In the PART2 you can add multiple things using <OR> between each thing.
Last updated