DF Manual Patch 6.6.1

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 projectile
Check 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, False



Exists | Exists (aka. )


Is Near Location | IsNear (aka. EIsNear)

Tags

name: Shape default: Sphere options: Sphere, Circle, Cube, Square



Has Potion Effect | HasPotion (aka. )

Tags

name: Check Properties default: None options: None, Amplifier, Duration, Amplifier and duration

name: 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, False



Is Standing on Block | StandingOn (aka. EStandingOn )