IF ENTITY
Used to execute the code inside it if a certain condition related to an entity or multiple entities is met.examples
Check if an entity is a projectileCheck if an entity is a certain type
of mob
Check the name of an entity
Actions
Is Vehicle | IsVehicle (aka. )
Is Grounded | IsGrounded (aka. EIsGrounded)
Is Type | IsType (aka. )
Is Projectile | IsProj (aka. )
Is Mob | IsMob (aka. )
Has Custom Tag | HasCustomTag (aka. )
Is Sheared | IsSheared (aka. )
Is Item | IsItem (aka. )
Is Riding Entity | IsRiding (aka. )
Tags
name:
Ignore Formatting
default: True
options: True, FalseExists | Exists (aka. )
Is Near Location | IsNear (aka. EIsNear)
Tags
name:
Shape
default: Sphere
options: Sphere, Circle, Cube, SquareHas Potion Effect | HasPotion (aka. )
Tags
name:
Check Properties
default: None
options: None, Amplifier, Duration, Amplifier and durationname:
Check Mode
default: Has any effect
options: Has any effect, Has all effects | IsRiding (aka. )
Tags
name:
Compare Text To
default: Entity type
options: Entity type, Name or UUID | StandingOn (aka. EStandingOn)
Name Equals | NameEquals (aka. ENameEquals)
Tags
name:
Ignore Formatting
default: True
options: True, FalseIs Standing on Block | StandingOn (aka. EStandingOn )