Entity 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:
ifAdult
Description: Checks if the entity is in it's adult phase
Example:
Example Situations:
If the sheep is in it's adult phase, the activator will activate.
Required: NO (Default: false)
ifBaby
Description: Checks if the entity is in it's baby phase
Example:
Example Situations:
If the cow is in it's baby phase, the activator will activate.
Required: NO (Default: false)
ifFrozen
Description: Checks if the entity is frozen (works for 1.18 and upper versions)
Example:
ifGlowing
Description: Checks if the entity has the glowing effect
Example:
Example Situations:
If the entity is glowing, the activator will activate.
Required: NO (Default: false)
ifHasAI - ifNotHasAI
Description: Checks if the entity has AI
Example:
ifInvulnerable
Description: Checks if the entity has the invulnerable attribute
Example:
Example Situations:
If the villager is invulnerable, the activator will activate.
Required: NO (Default: false)
ifNamed - ifNotNamed
Description: Checks if the entity is named (for example when using a nametag in a mob)
Example:
ifOnFire
Description: Checks if the entity is on fire
Example:
Example Situations:
If the villager is burning, the activator will activate
Required: NO (Default: false)
ifPowered
Description: Checks if the entity is charged
Example:
Example Situations:
If the creeper is charged, the activator will activate.
Required: NO (Default: false)
ifTamed - ifNotTamed
Description: Checks if the entity is tamed
Example:
ifEntityHealth
Description: Checks if the entity has the said health.
Example:
Example Situations:
If the value is
<66
, the activator will only activate if the entity's health is below 66If the value is
<928
, the activator will only activate if the entity's health is 928 and below.If the value is
==76
, the activator will only activate if the entity's health is 76.If the value is
>123
, the activator will only activate if the entity's health is above 123.If the value is
>=40000
, the activator will only activate if the entity's health is 40000 and above.
Required: NO
ifHasTag - Not
Description: Checks if the entity has (not) specifics tags
Specifically the tag nbt from
/summon armor_stand ~ ~ ~ {Tags:["Pikamee"]}
Example:
Required: NO
ifIsOnTheBlock - Not
Description: Checks if the entity is (not) standing on a block.
Example:
Example Situations:
If the entity has stone under its feet, the activator will activate.
As long as the entity is not more than 1 block higher from the block the player is standing at, the activator will activate
Required: NO (Default: false)
ifName
Description: Checks if the entity's name matches the listed names in the condition
Example:
Example Situations:
If the parrot is named, "John Cena", and the name "John Cena" is listed in the list of names in the ifName condition, the activator will activate.
Required: NO
ifNotEntityType
Description: Checks if the entity type of the entity is not the same as the list of types listed in the condition.
Example:
Example Situations:
If the entity type of the entity you targeted is a cow and it's listed in the ifNotEntityType condition list, the activator will not activate.
Required: NO
ifFromSpawner - Not
Description: Checks if the entity spawned from a spawner
Example:
ifHasSaddle - Not
Description: Checks if the entity is equipped with a saddle
Example:
ifIsOnTheBlock - Not
Description: Checks if the entity is standing on the said block
Example:
ifNotEntityType
Description: Checks if the target entity is not the said entity
Example:
Last updated