Item Conditions
For conditions that require numerical values, you can assign 2 conditions.
Example: "I want to create a condition that only activates if the value is greater than 50 but less than 250"
So what you would type in the config will be 50 < CONDITION < 250
If a condition fails to be met, you can enable cancelEvent so if a specific condition isn't completed, cancelEvent will run. You can also customize the error message !
You can also run commands if the condition has failed to execute!
Example:
ifDurability
Description: Checks if the ei has the said durability.
Example:
Example Situations:
If the value is
<789
, the activator will only activate if the item's durability is below 789If the value is
<1000
, the activator will only activate if the item's durability is 1000 and below.If the value is
==788
, the activator will only activate if the item's durability is 788.If the value is
>989
, the activator will only activate if the item's durability is above 989.If the value is
>=676
, the activator will only activate if the item's durability is 676 and above.
Required: NO
ifUsage
Description: Checks if the item has the said usage remaining.
Example:
Example Situations:
If the value is
<456
, the activator will only activate if the item's usage remaining is below 456If the value is
<=234
, the activator will only activate if the item's usage remaining is 234 and below.If the value is
==16
, the activator will only activate if the item's usage remaining is 16.If the value is
>6666
, the activator will only activate if the item's usage remaining is above 6666.If the value is
>=78
, the activator will only activate if the item's usage remaining is 78 and above.
Required: NO
Also it supports to work in intervals
ifHasEnchant
Description: Checks if the item has the whitelisted enchantment.
Example:
Example Situations:
If the EI item has the Flame enchantment and you have the condition in the example part, the activator activates
Required: NO
ifHasNotEnchant
Description: Checks if the item has the blacklisted enchantment.
Example:
Example Situations:
If the EI item has the Power VI enchantment and you have the condition in the example part, the activator does not activate
Required: NO
ifCrossbowMustBeCharged - Not
Description: Checks if the item is a (not) charged crossbow.
Example:
Example Situations:
If the EI item is a charged crossbow, the activator activates
Required: NO
More Info: You can edit the error message by adding this in the file:
Last updated