Skip to main content

Entity Targeters

Entity targeters are used to specify WHO a mechanic should affect. They are prefixed with @ in your skill configuration.

Basic Selections

@self / @caster

Targets the mob or player executing the skill.
  • Aliases: @me
- damage{amount=5} @self ~onTimer:20

@target

Targets the current entity the mob is attacking.

@attacker

Targets the entity that last damaged the caster. Perfect for counter-attack skills.

@trigger

Targets the entity that triggered the skill (e.g., the player who interacted with the mob).

Radius Targeters

These targeters scan for entities within a specific distance of the caster.

@playersinradius{r=...}

Targets all players within the specified radius.
  • Aliases: @pir
- message{msg="Get away from me!"} @pir{r=10} ~onTimer:100

@mobsinradius{r=...}

Targets all mobs within the specified radius.
  • Aliases: @mir

@entitiesinradius{r=...}

Targets all living entities (players + mobs) within the radius.
  • Aliases: @eir

Relationship Targeters

Target entities based on their relationship to the caster.
TargeterDescription
@ownerTargets the player who owns the mob (if tamed or spawned by a player).
@parentTargets the “parent” mob that spawned the current one.
@childrenTargets all mobs spawned by the caster.
@mountTargets the entity the caster is currently riding.
@passengerTargets the entity currently riding the caster.

Advanced Targeting

@threattable / @tt

Targets all entities currently on the mob’s threat table.

@visioncone{fov=90;r=16}

Targets entities within a 90-degree field of view in front of the caster, up to 16 blocks away.
Entity targeters can be combined with Conditions to filter results even further!