Conditions
List of useable conditions for creating custom enchantments.
Last updated
List of useable conditions for creating custom enchantments.
Last updated
Conditions are an exact situation that needs to be happening for an enchantment to become active.
Some conditions will require arguments that are just customizable options, if the condition requires arguments then you will need to add some to avoid errors.
Example: You want an enchantment that gives regeneration, but only on low health. Using conditions you can check if the player's health is low.
To view a list of conditions and how to use them either execute /ee info
in-game or check below.
You can use these conditions for targets aswell by replacing Player with Target ie. isTargetFlying would check if the target is flying
isPlayer
isPlayer [MOB] (Example: ZOMBIE)
isPlayerBlocking
isPlayerBlocking
isPlayerCrouching
isPlayerCrouching
isPlayerFlying
isPlayerFlying
isPlayerHealth
isPlayerHealth [VARIABLE] [VALUE] (Example: >= 5)
isPlayerHolding
isPlayerHolding [ITEM] (Example: AXE)
isPlayerRunning
isPlayerRunning
isBlock
isBlock [BLOCK-TYPE] (MINE/INTERACT effect only)
isProtected
isProtected
Symbol
Meaning
>
More Than
>=
More Than or Equal To
<
Less Than
<=
Less Than or Equal To
==
Equals