Denizen Script Mechanisms


Mechanisms are found in object properties, the 'adjust' command, and similar. These are used to change the state of an object.
Learn about how mechanisms work in The Beginner's Guide.


Showing 1 out of 632 mechanisms...
Namespectator_target
ObjectPlayerTag
InputEntityTag
Related Tags<PlayerTag.spectator_target> Returns the entity that a spectator-mode player is currently spectating, if any.
DescriptionSwitches the player to spectator mode and causes them to immediately start spectating an entity.
To instead fake this effect, use Mechanism:PlayerTag.spectate
Give no input to detach the player from any target.
Generated Example
- adjust <player> spectator_target:<player>
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java#L3665