Targeters - bedwarshurts/AlchemistMMExtension GitHub Wiki

ConnectedBlocksTargeter

Targets all connected blocks to a location

[!NOTE] This is a location targeter

[!TIP] location and locationOffset arguments support Mythic Placeholders

[!CAUTION] If not used carefully this targeter could target way too many location causing lag or worse

Arguments

  • exclude - A set of materials. Once the target finds one of them it will end the operation there and return the locations up to that point, use , to split materials
  • location - This is the starting location of the targeter, if not specified the origin of the skill will be used
  • locationOffset - The offset to the starting location (or origin)
  • depth - The depth of the search, by default this is 10

Example

- blockDestabilize{} @TCB{depth=40;exclude=HOPPER}

EntitiesByClassInRadiusTargeter

This targets all entities of that specific class in a radius, this uses reflection and thus is only recommended for advanced users

[!NOTE] This is an Entity targeter

[!TIP] The radius argument supports Mythic Placeholders

[!WARNING] Operations may be performance heavy

Arguments

  • class - The class name that the Entity belongs to
  • radius - The radius of the search

Example

- particle @TEIR{class=org.bukkit.entity.Projectile;radius=20}
This example will target all projectiles in a radius of 20 blocks around the origin

EntityInSightTargeter

Targets the entity in sight of the caster, if no entity is found this targeter will return an empty set of entities.

[!NOTE] This is an Entity targeter

Arguments

  • maxdistance - The max distance to check for
  • seethroughwalls - boolean, should the targeter target entities even if the caster cant be able to see them because they are behind blocks

Example

- particleline{} @TEIS{maxDistance=20;seeThroughWalls=false}

GroundLevelTargeter

Targets the ground below the inherited target

[!NOTE] This is an location targeter

[!WARNING] This targeter needs inherited targets

Arguments

  • y - The y offset

Example

- summon{t=DC_Spike;yaw=0;pitch=0;level=<caster.level>} @TGL{y=1}

LocationPredictingTargeter

This is similar to the newly added Mythic's @TPL with some extra options. Targets the predicted location of the entity if it kept moving in the same direction

[!NOTE] This is a location targeter

[!TIP] This targeter uses raytrace to not target spots past walls that the players wouldnt be able to move at anyways

[!WARNING] This requires the config option Settings.TrackPlayerMovement to be enabled

Arguments

  • time - The prediction time, in ticks, supports mythic placeholders
  • y - The y offset
  • ignoreY - boolean, should the targeter ignore movement changes in the Y level
  • ignoreIfStill - boolean, should the targeter ignore standing still targets

Example

- setvarloc{var=skill.tloc;v=@TPL2{time=<skill.var.it> * 20;ignoreY=true}}