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 644 mechanisms...
Namespectate
ObjectPlayerTag
InputEntityTag
DescriptionForces the player to spectate from the entity's point of view, using a packet (meaning, the player starts spectating clientside, but not serverside).
The player will not move from their existing location serverside.
To cause real spectator mode spectating, use Mechanism:PlayerTag.spectator_target
Note that in some cases you may want to force the player into the spectate gamemode prior to using this mechanism.
Note: They cannot cancel the spectating without a re-log -- you must make them spectate themselves to cancel the effect.
Like: - adjust <player> spectate:<player>
Generated Example
- adjust <player> spectate:<npc>
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/PlayerTag.java#L3687