Targeters are used to determine what a skill targets when it is fired.
Targeters are used to determine what a skill targets when it is fired.
While targeters are technically optional (as the default targeter will usually be @trigger), forgetting a targeter is probably one of the most common mistakes people who are new to MythicMobs make.
While targeters are technically optional (as the default targeter will usually be @trigger), forgetting a targeter is probably one of the most common mistakes people who are new to MythicMobs make.
When a targeter is used on the Skill mechanic, all of the skills inside of the meta-skill inherit the initial targeter. You can still overwrite the parent targeter for individual mechanics inside of the meta-skill by giving them their own targeter to use.
When a targeter is used on the Skill mechanic, all of the skills inside of the meta-skill inherit the initial targeter. You can still overwrite the parent targeter for individual mechanics inside of the meta-skill by giving them their own targeter to use.
If entity targets are passed to a location-based mechanic, it will use the entity's location.
If entity targets are passed to a location-based mechanic, it will use the entity's location.
[[_TOC_]]
[[_TOC_]]
# Additional Targeters
# Additional Targeters
Links to targeters added by addon plugins. Any targeters from these links will not work without that plugin installed.
Links to targeters added by addon plugins. Any targeters from these links will not work without that plugin installed.
| @[LivingInCone][] | @entitiesInCone<br>@livingEntitiesInCone<br>@LEIC<br>@EIC | Targets all living entities in cone with a specified angle, length and rotation relative to facing direction |
| @[LivingInCone][] | @entitiesInCone<br>@livingEntitiesInCone<br>@LEIC<br>@EIC | Targets all living entities in cone with a specified angle, length and rotation relative to facing direction |
| @[LivingInWorld][] | @EIW | Targets all living entities in the caster's world |
| @[LivingInWorld][] | @EIW | Targets all living entities in the caster's world |
| @[NotLivingNearOrigin][] | @nonLivingNearOrigin<br>@NLNO | Targets all non living entities in a radius near the origin |
| @[NotLivingNearOrigin][] | @nonLivingNearOrigin<br>@NLNO | Targets all non living entities in a radius near the origin |
| @[PlayersInRadius][] | @PIR | Targets all players in the given radius |
| @[PlayersInRadius][] | @PIR | Targets all players in the given radius |
| @[MobsInRadius][] | @MIR | Targets all mythicmobs or vanilla overrides of the given type in a radius |
| @[MobsInRadius][] | @MIR | Targets all mythicmobs or vanilla overrides of the given type in a radius |
| @[EntitiesInRadius][] | @livingEntitiesInRadius<br>@livingInRadius<br>@allInRadius<br>@EIR | Targets all entities in the given radius. |
| @[EntitiesInRadius][] | @livingEntitiesInRadius<br>@livingInRadius<br>@allInRadius<br>@EIR | Targets all entities in the given radius. |
| @[EntitiesInRing][] | @EIRR | Targets all entities in the given ring. |
| @[EntitiesInRing][] | @EIRR | Targets all entities in the given ring. |
| @[EntitiesInRingNearOrigin][] | @ERNO | Targets all entities in the given ring around the origin. |
| @[EntitiesInRingNearOrigin][] | @ERNO | Targets all entities in the given ring around the origin. |
| @[PlayersInWorld][] | @World | Targets all players in the current world. |
| @[PlayersInWorld][] | @World | Targets all players in the current world. |
| @[PlayersOnServer][] | @Server<br>@Everyone | Targets all players in the server. |
| @[PlayersOnServer][] | @Server<br>@Everyone | Targets all players in the server. |
| @[PlayersInRing][] | | Target all players between the specified min and max radius. |
| @[PlayersInRing][] | | Target all players between the specified min and max radius. |
| @[PlayersNearOrigin][] | @PNO | Targets players near the [origin](/skills/targeters/origin) of a meta-skill. |
| @[PlayersNearOrigin][] | @PNO | Targets players near the [origin](/skills/targeters/origin) of a meta-skill. |
| @[TrackedPlayers][] | @tracked | Targets players that are within the render distance of the caster |
| @[TrackedPlayers][] | @tracked | Targets players that are within the render distance of the caster |
| @[MobsNearOrigin][] | | Targets all MythicMobs or vanilla overrides of the given type(s) in a radius around the origin |
| @[MobsNearOrigin][] | | Targets all MythicMobs or vanilla overrides of the given type(s) in a radius around the origin |
| @[EntitiesNearOrigin][] | @ENO | Targets all entities near the [origin](/skills/targeters/origin) of a meta-skill |
| @[EntitiesNearOrigin][] | @ENO | Targets all entities near the [origin](/skills/targeters/origin) of a meta-skill |
| @[Children][] | @child<br>@summons | Targets any child entities summoned by the caster. |
| @[Children][] | @child<br>@summons | Targets any child entities summoned by the caster. |
| @[Siblings][] | @sibling<br>@brothers<br>@sisters | Targets any mobs that share the same parent as the caster. |
| @[Siblings][] | @sibling<br>@brothers<br>@sisters | Targets any mobs that share the same parent as the caster. |
| @[ItemsNearOrigin][] | | Targets item drops near the [origin](/skills/targeters/origin) of a meta-skill. |
| @[ItemsNearOrigin][] | | Targets item drops near the [origin](/skills/targeters/origin) of a meta-skill. |
| @[ItemsInRadius][] | @IIR | Targets all item drops in the given radius |
| @[ItemsInRadius][] | @IIR | Targets all item drops in the given radius |
### ThreatTable Targeters
### ThreatTable Targeters
These targeters only work if the mob has [Threat Tables](/Mobs/ThreatTables) enabled.
These targeters only work if the mob has [Threat Tables](/Mobs/ThreatTables) enabled.
| @[TargetPredictedLocation][] | @targetPredictedLoc<br>@TPL<br>@PredictedTargetLocation | Targets the predicted location at which the caster's top target will be after an amount of ticks has elapsed, based on its current movement speed |
| @[TargetPredictedLocation][] | @targetPredictedLoc<br>@TPL<br>@PredictedTargetLocation | Targets the predicted location at which the caster's top target will be after an amount of ticks has elapsed, based on its current movement speed |
| @[TriggerLocation][] | | Targets the location of the entity that triggered the skill |
| @[TriggerLocation][] | | Targets the location of the entity that triggered the skill |
| @[SpawnLocation][] | | Targets the world's spawn location. |
| @[SpawnLocation][] | | Targets the world's spawn location. |
| @[CasterSpawnLocation][] | | Targets the location the caster spawned at. |
| @[CasterSpawnLocation][] | | Targets the location the caster spawned at. |
| @[Location][] | | Targets the specified coordinates in the caster's world. |
| @[Location][] | | Targets the specified coordinates in the caster's world. |
| @[Origin][] | @source | Targets the location of the "origin" or "source" of a meta-skill. While that is usually the casting mob, there are special cases where this is not true (such as with the Projectile Skill, where the "origin" is the location of the projectile). |
| @[Origin][] | @source | Targets the location of the "origin" or "source" of a meta-skill. While that is usually the casting mob, there are special cases where this is not true (such as with the Projectile Skill, where the "origin" is the location of the projectile). |
| @[ObstructingBlock][] | | Tries to target the block in front of the caster that is obstructing it |
| @[ObstructingBlock][] | | Tries to target the block in front of the caster that is obstructing it |
| @[TargetBlock][] | | Targets the block the casting player is looking at. |
| @[TargetBlock][] | | Targets the block the casting player is looking at. |
| @[TrackedLocation][] | | Targets the mob's tracked location |
| @[TrackedLocation][] | | Targets the mob's tracked location |
| @[NearestStructure][] | | Targets the nearest structure of the specified type within a radius in the caster's world |
| @[NearestStructure][] | | Targets the nearest structure of the specified type within a radius in the caster's world |
| @[VariableLocation][] | @varLocation | Targets the location stored in the specified variable |
| @[VariableLocation][] | @varLocation | Targets the location stored in the specified variable |
| @[HighestBlock][] | | Targets the highest block at the skill origin |
| @[HighestBlock][] | | Targets the highest block at the skill origin |
| @[PlayerLocationByName][] | | Targets a specific player's location by their name |
| @[PlayerLocationByName][] | | Targets a specific player's location by their name |
| @[EscapeLocation][] | | Targets a nearby safe escape location like how an Enderman would choose its teleport destination |
| @[EscapeLocation][] | | Targets a nearby safe escape location like how an Enderman would choose its teleport destination |
| @[ForwardWall][] | | Targets a plane in front of the caster |
| @[ForwardWall][] | | Targets a plane in front of the caster |
| @[PlayerLocationsInRadius][] | @PLIR | Targets all player locations in the given radius |
| @[PlayerLocationsInRadius][] | @PLIR | Targets all player locations in the given radius |
| @[Pin][] | | Targets the location(s) of a [pin](/Pins). |
| @[Pin][] | | Targets the location(s) of a [pin](/Pins). |
| @[Ring][] | | Target points to form a ring of locations |
| @[Ring][] | | Target points to form a ring of locations |
| @[RandomRingPoint][] | | Targets random points in a ring around the caster |
| @[RandomRingPoint][] | | Targets random points in a ring around the caster |
| @[Cone][] | | Returns the # of points target locations that comprise a cone (Note: Cone is fixed on the y-axis, and cannot be rotated up or down) |
| @[Cone][] | | Returns the # of points target locations that comprise a cone (Note: Cone is fixed on the y-axis, and cannot be rotated up or down) |
| @[Sphere][] | | Targets points in a sphere around the caster |
| @[Sphere][] | | Targets points in a sphere around the caster |
| @[Rectangle][] | @cube<br>@cuboid | Returns the # of points target locations that comprise a rectangle |
| @[Rectangle][] | @cube<br>@cuboid | Returns the # of points target locations that comprise a rectangle |
| @[RandomLocationsNearCaster][] | @randomLocations<br>@RLNC | Targets random locations near the caster. |
| @[RandomLocationsNearCaster][] | @randomLocations<br>@RLNC | Targets random locations near the caster. |
| @[RandomLocationsNearOrigin][] | @RLO<br>@randomLocationsOrigin<br>@RLNO | Targets random locations near the origin of a skill. |
| @[RandomLocationsNearOrigin][] | @RLO<br>@randomLocationsOrigin<br>@RLNO | Targets random locations near the origin of a skill. |
| @[BlocksNearOrigin][] | @BNO | Targets all blocks in a radius around the origin of the metaskill. |
| @[BlocksNearOrigin][] | @BNO | Targets all blocks in a radius around the origin of the metaskill. |
| @[RingAroundOrigin][] | @ringOrigin<br>@RAO | Targets locations in a specified ring around the origin. |
| @[RingAroundOrigin][] | @ringOrigin<br>@RAO | Targets locations in a specified ring around the origin. |
| @[Spawners][] | | Targets the location of the specified spawners. |
| @[Spawners][] | | Targets the location of the specified spawners. |
| @[BlocksInPinRegion][] | | Targets the blocks in a region delimited by two pins |
| @[BlocksInPinRegion][] | | Targets the blocks in a region delimited by two pins |
| @[ChunksInWERegion][] | @chunksInWGRegion | Targets the 0,0 chunk corners of the chunks in a specified WorldGuard region |
| @[ChunksInWERegion][] | @chunksInWGRegion | Targets the 0,0 chunk corners of the chunks in a specified WorldGuard region |
## Meta Targeters
## Meta Targeters
Meta Targeters targets relative to an [inherited target](/Skills/Metaskills#inheritance). For example:
Meta Targeters targets relative to an [inherited target](/Skills/Metaskills#inheritance). For example:
```yaml
```yaml
# Mob file
# Mob file
Laser:
Laser:
Type:CREEPER
Type:CREEPER
Display:'Laser'
Display:'Laser'
Health:12
Health:12
AITargetSelectors:
AITargetSelectors:
-0 clear
-0 clear
-1 players
-1 players
Skills:
Skills:
-skill{s=Laser} @target
-skill{s=Laser} @target
```
```
```yaml
```yaml
# Skill file
# Skill file
Laser:
Laser:
Skills:
Skills:
-ignite @EntitiesInLine{r=1}
-ignite @EntitiesInLine{r=1}
```
```
In the example skill above, the "ignite" mechanic will target entities between the caster and the targeter specified in `- skill{s=Laser} @target`, i.e. a line between the caster and the caster's target.
In the example skill above, the "ignite" mechanic will target entities between the caster and the targeter specified in `- skill{s=Laser} @target`, i.e. a line between the caster and the caster's target.
Some meta targeters also allow the mechanic to be casted "fromOrigin". This will change the starting location of the meta-targeter to be @Origin rather than the caster, which can allow for some complex effects, particularly when used with Projectiles.
Some meta targeters also allow the mechanic to be casted "fromOrigin". This will change the starting location of the meta-targeter to be @Origin rather than the caster, which can allow for some complex effects, particularly when used with Projectiles.
| @[LivingInLine][] | @entitiesInLine<br>@livingEntitiesInLine<br>@LEIL<br>@EIL | Targets any entities in a line between the inherited target and the casting mob. |
| @[LivingInLine][] | @entitiesInLine<br>@livingEntitiesInLine<br>@LEIL<br>@EIL | Targets any entities in a line between the inherited target and the casting mob. |
| @[LivingNearTargetLocation][] | @LNTL<br>@ENTL<br>@ENT | Targets all living entities near the inherited target. |
| @[LivingNearTargetLocation][] | @LNTL<br>@ENTL<br>@ENT | Targets all living entities near the inherited target. |
| @[PlayersNearTargetLocations][] | @playersNearTargetLocation<br>@PNTL | Targets all players near the inherited targets. |
| @[PlayersNearTargetLocations][] | @playersNearTargetLocation<br>@PNTL | Targets all players near the inherited targets. |
| @[Line][] | | Targets locations between the mob and the inherited targets. |
| @[Line][] | | Targets locations between the mob and the inherited targets. |
| @[RandomLocationsNearTargets][] | @randomLocationsNearTarget<br>@randomLocationsNearTargetEntities<br>@randomLocationsNearTargetLocations<br>@RLNT<br>@RLNTE<br>@RLNTL | Targets random locations around the inherited targets. |
| @[RandomLocationsNearTargets][] | @randomLocationsNearTarget<br>@randomLocationsNearTargetEntities<br>@randomLocationsNearTargetLocations<br>@RLNT<br>@RLNTE<br>@RLNTL | Targets random locations around the inherited targets. |
| @[FloorOfTargets][] | @FOT<br>@floorsOfTarget | Targets the blocks underneath the inherited targets. |
| @[FloorOfTargets][] | @FOT<br>@floorsOfTarget | Targets the blocks underneath the inherited targets. |
| @[LocationsOfTargets][] | @locationOfTarget<br>@LOT | Targets the location of the inherited target entities. |
| @[LocationsOfTargets][] | @locationOfTarget<br>@LOT | Targets the location of the inherited target entities. |
| @[TargetedLocation][] | @targetedLocations<br>@targetedLoc | Targets the location of the inherited target locations. |
| @[TargetedLocation][] | @targetedLocations<br>@targetedLoc | Targets the location of the inherited target locations. |
| @[BlocksInRadius][] | @BIR | Targets all blocks in a radius of the inherited targets. |
| @[BlocksInRadius][] | @BIR | Targets all blocks in a radius of the inherited targets. |
| @[BlocksInChunk][] | @BIC | Targets all blocks in a chunk relative to the inherited target. |
| @[BlocksInChunk][] | @BIC | Targets all blocks in a chunk relative to the inherited target. |
| @[BlockVein][] | @vein<br>@bv | Target all adjancent blocks that match the blocktype, starting from the origin of the skill. |
| @[BlockVein][] | @vein<br>@bv | Target all adjancent blocks that match the blocktype, starting from the origin of the skill. |
| sudoparent | fromparent, ofparent, asparent, parent, ofparent | If this attribute is set to `true`, the targeter will be parsed as if it was the [Parent][] of the casting entity executing the mechanic | |
| sudoparent | fromparent, ofparent, asparent, parent, ofparent | If this attribute is set to `true`, the targeter will be parsed as if it was the [Parent][] of the casting entity executing the mechanic | |
| sudoowner | fromowner, ofowner, asowner, owner, ofowner | If this attribute is set to `true`, the targeter will be parsed as if it was the [Owner][] of the casting entity executing the mechanic | |
| sudoowner | fromowner, ofowner, asowner, owner, ofowner | If this attribute is set to `true`, the targeter will be parsed as if it was the [Owner][] of the casting entity executing the mechanic | |
| sudotrigger | fromtrigger, oftrigger, astrigger, trigger, oftrigger | If this attribute is set to `true`, the targeter will be parsed as if it was the [Trigger][] of the skilltree executing the mechanic | |
| sudotrigger | fromtrigger, oftrigger, astrigger, trigger, oftrigger | If this attribute is set to `true`, the targeter will be parsed as if it was the [Trigger][] of the skilltree executing the mechanic | |
In this example, [the mob will keep getting teleported in front of its owner](https://cdn.discordapp.com/attachments/523443579574681600/1101186712174088253/a.gif), since the `Forward` targeter is using the `sudoowner` attribute, and is, as such, getting parsed as if it was the owner of the casting mob executing the mechanic
In this example, [the mob will keep getting teleported in front of its owner](https://cdn.discordapp.com/attachments/523443579574681600/1101186712174088253/a.gif), since the `Forward` targeter is using the `sudoowner` attribute, and is, as such, getting parsed as if it was the owner of the casting mob executing the mechanic
| useboundingbox | bb | If the targeter is performing a distance check, this option allows it to check against the bounding box of the target instead of the center of its hitbox | |
| useboundingbox | bb | If the targeter is performing a distance check, this option allows it to check against the bounding box of the target instead of the center of its hitbox | |
| unique | u | The maximum number of times an entity can be targeted. Defaults to 1, disable with 0. This is mostly used for meg models with multiple hitboxes | |
| unique | u | The maximum number of times an entity can be targeted. Defaults to 1, disable with 0. This is mostly used for meg models with multiple hitboxes | |
| nomegbb | nmb | Whether MEG sub hitboxes should be filtered out | |
| nomegbb | nmb | Whether MEG sub hitboxes should be filtered out | |
| xoffset | xo, x | Centers the offset on the x axis | |
| xoffset | xo, x | Centers the offset on the x axis | |
| yoffset | yo, y | Centers the offset on the y axis | |
| yoffset | yo, y | Centers the offset on the y axis | |
| zoffset | zo, z | Centers the offset on the z axis | |
| zoffset | zo, z | Centers the offset on the z axis | |
| forwardOffset | foffset, fo | Centers forward and backward offset, based on the caster's viewing angle | 0 |
| forwardOffset | foffset, fo | Centers forward and backward offset, based on the caster's viewing angle | 0 |
| sideOffset | soffset, so | Centers left and right offset, based on the caster's viewing angle | 0 |
| sideOffset | soffset, so | Centers left and right offset, based on the caster's viewing angle | 0 |
| upoffset | uoffset, uo | Centers up and down offset, based on the caster's viewing angle | 0 |
| upoffset | uoffset, uo | Centers up and down offset, based on the caster's viewing angle | 0 |
| rotatex | rotx | Rotation on the x axis | |
| rotatex | rotx | Rotation on the x axis | |
| rotatey | roty | Rotation on the y axis | |
| rotatey | roty | Rotation on the y axis | |
| rotatez | rotz | Rotation on the z axis | |
| rotatez | rotz | Rotation on the z axis | |
| coordinatex | cx | Sets the x axis coordinate | |
| coordinatex | cx | Sets the x axis coordinate | |
| coordinatey | cy | Sets the y axis coordinate | |
| coordinatey | cy | Sets the y axis coordinate | |
| coordinatez | cz | Sets the z axis coordinate | |
| coordinatez | cz | Sets the z axis coordinate | |
| length | | Multiplied the direction vector by the specified value | |
| length | | Multiplied the direction vector by the specified value | |
| blocktypes | blocktype, bt | Only targets selected block types. Multiple blocks can be listed by separating them using a `,`<br>You can add a `#` at the front of the type to indicate that the block only needs to match part of the type, add `@` to indicate that the block only needs to match the start of the type<br>You can add a `*` at the front of the type to indicate that the one specified is not a block type, but a [block tag](https://minecraft.wiki/w/Tag#Block_tags_2)(example:`blocktype=*sculk_replaceable` ) | |
| blocktypes | blocktype, bt | Only targets selected block types. Multiple blocks can be listed by separating them using a `,`<br>You can add a `#` at the front of the type to indicate that the block only needs to match part of the type, add `@` to indicate that the block only needs to match the start of the type<br>You can add a `*` at the front of the type to indicate that the one specified is not a block type, but a [block tag](https://minecraft.wiki/w/Tag#Block_tags_2)(example:`blocktype=*sculk_replaceable` ) | |
| blockignores | blockignore, bi | Excludes selected block types from the targeter. Multiple blocks can be listed by separating them using a `,`<br>Can use the special syntaxes specified in `blocktype` | |
| blockignores | blockignore, bi | Excludes selected block types from the targeter. Multiple blocks can be listed by separating them using a `,`<br>Can use the special syntaxes specified in `blocktype` | |
| coordinateyaw | cyaw | Sets the yaw value | |
| coordinateyaw | cyaw | Sets the yaw value | |
| coordinatepitch | cpitch | Sets the pitch value | |
| coordinatepitch | cpitch | Sets the pitch value | |
| blockcentered | centered | Boolean value. If set to true, the center of the block at the target location will be targeted, instead of the target location itself | |
| blockcentered | centered | Boolean value. If set to true, the center of the block at the target location will be targeted, instead of the target location itself | |
| faulty | | Whether the mechanic should use the old vector formula | false |
| faulty | | Whether the old vector calculation formula should be used | false |
| blockSurface | surface | Whether the plugin should attempt to adjust the location to be on a surface | false |
| blockSurface | surface | Whether the plugin should attempt to adjust the location to be on a surface | false |
| blockSurfaceTolerance | surfaceTolerance | The tolerance used when searching for a surface, when `blockSurface` is set to `true`| 5 |
| blockSurfaceTolerance | surfaceTolerance | The tolerance used when searching for a surface, when `blockSurface` is set to `true`| 5 |
# Targeter Options
# Targeter Options
## Target Filters
## Target Filters
Target Filters allow you to filter out certain targets, and makes targeters a lot more flexible.
Target Filters allow you to filter out certain targets, and makes targeters a lot more flexible.
They are used with two attributes (available on ANY entity-targeter):
They are used with two attributes (available on ANY entity-targeter):
| ground | | Whether to target ground entities. Will ignore flying and water entities if used |
| ground | | Whether to target ground entities. Will ignore flying and water entities if used |
| water | | Whether to target water entities. Will ignore flying and ground entities if used |
| water | | Whether to target water entities. Will ignore flying and ground entities if used |
| flying | | Whether to target flying entities. Will ignore ground and water entities if used |
| flying | | Whether to target flying entities. Will ignore ground and water entities if used |
| self | caster | Whether the caster of the mechanic can be targetd |
| self | caster | Whether the caster of the mechanic can be targetd |
| player | | Whether players can be targeted |
| player | | Whether players can be targeted |
| creative | | Whether creative mode players can be targeted |
| creative | | Whether creative mode players can be targeted |
| spectator | | Whether spectator mode players can be targeted |
| spectator | | Whether spectator mode players can be targeted |
| armorstand| armor_stand | Whether armor stands can be targeted |
| armorstand| armor_stand | Whether armor stands can be targeted |
| marker | | Whether markers can be targeted |
| marker | | Whether markers can be targeted |
| npc | | Whether Citizens NPCs can be targeted |
| npc | | Whether Citizens NPCs can be targeted |
| animal | | Whether animals can be targeted |
| animal | | Whether animals can be targeted |
| creature | | Whether creatures can be targeted |
| creature | | Whether creatures can be targeted |
| monster | | Whether monsters can be targeted |
| monster | | Whether monsters can be targeted |
| villager | | Whether villagers can be targeted |
| villager | | Whether villagers can be targeted |
> If neither `ground`, `water` and `flying` are used and the default filters do not include any of them, then `Players`, `ArmorStands`, `Markers`, `Creative`, `Spectator`, `CitizensNPCs`, `Animals`, `Creatures`, `Monsters` and `Villagers` will also be ignored
> If neither `ground`, `water` and `flying` are used and the default filters do not include any of them, then `Players`, `ArmorStands`, `Markers`, `Creative`, `Spectator`, `CitizensNPCs`, `Animals`, `Creatures`, `Monsters` and `Villagers` will also be ignored
You can also specifically set whether to target a specific type of entity or not by using the attributes below. The effects of these attributes override the effects of the more generic target/ignore attributes for the specific entity type the attribute handles
You can also specifically set whether to target a specific type of entity or not by using the attributes below. The effects of these attributes override the effects of the more generic target/ignore attributes for the specific entity type the attribute handles
> Use this to explicitly target players and entities in the same faction alongside any other valid target there may be, while also not targeting the owner of the caster
> Use this to explicitly target players and entities in the same faction alongside any other valid target there may be, while also not targeting the owner of the caster
## Target Limits
## Target Limits
All entity and location targeters also support target limits (as of v5.0.4). With this you can limit how many entities/locations are targeted, including the order in which they are selected.
All entity and location targeters also support target limits (as of v5.0.4). With this you can limit how many entities/locations are targeted, including the order in which they are selected.
| sort | sortby | How to sort the targeted entities/locations. Distance-based sorts are made against the mechanic's origin |<!--type:NONE,RANDOM,NEAREST,FURTHEST,HIGHEST_HEALTH,LOWEST_HEALTH,HIGHEST_THREAT,LOWEST_THREAT-->|
| sort | sortby | How to sort the targeted entities/locations. Distance-based sorts are made against the mechanic's origin |<!--type:NONE,RANDOM,NEAREST,FURTHEST,HIGHEST_HEALTH,LOWEST_HEALTH,HIGHEST_THREAT,LOWEST_THREAT-->|
| skipTargetsUpToIndex | stuti | skips the first `n` targets of the targeter after the sort is applied, if >0 |0|
| skipTargetsUpToIndex | stuti | skips the first `n` targets of the targeter after the sort is applied, if >0 |0|
| limit | |The limit to the targeted entities/locations after the skip is applied, if >0 |0|
| limit | |The limit to the targeted entities/locations after the skip is applied, if >0 |0|
Lets say you want your ability to only target the 2 nearest players within 30 blocks. To do this, you'd simply set the limit 2 to and sort by nearest:
Lets say you want your ability to only target the 2 nearest players within 30 blocks. To do this, you'd simply set the limit 2 to and sort by nearest:
| sort | sortby | How to sort the targeted entities/locations. Distance-based sorts are made against the mechanic's origin |<!--type:NONE,RANDOM,NEAREST,FURTHEST-->|
| sort | sortby | How to sort the targeted entities/locations. Distance-based sorts are made against the mechanic's origin |<!--type:NONE,RANDOM,NEAREST,FURTHEST-->|
| skipTargetsUpToIndex | stuti | skips the first `n` targets of the targeter after the sort is applied, if >0 |0|
| skipTargetsUpToIndex | stuti | skips the first `n` targets of the targeter after the sort is applied, if >0 |0|
| limit | |The limit to the targeted entities/locations after the skip is applied, if >0 |0|
| limit | |The limit to the targeted entities/locations after the skip is applied, if >0 |0|