Denizen Script Tags


Tags are always written with a <between these marks>, and are critical to scripts, as the primary way to read data.
Learn about how tags work in The Beginner's Guide.


Showing 1 out of 2437 tags...
Name<PlayerTag.target[(<matcher>)]>
ReturnsEntityTag
DescriptionReturns the entity that the player is looking at, within a maximum range of 50 blocks,
or null if the player is not looking at an entity.
Optionally, specify an entity type matcher to only count matches as possible targets.
Generated Example
- kill <player.target>
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java#L773