Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 183 commands...
Namedisguise
Syntaxdisguise [<entity>] [cancel/as:<type>] (global/players:<player>|...) (self)
Short DescriptionMakes the player see an entity as though it were a different type of entity.
Full DescriptionMakes the player see an entity as though it were a different type of entity.

The entity won't actually change on the server.
The entity will still visibly behave the same as the real entity type does.

Be warned that the replacement is imperfect, and visual or internal-client errors may arise from using this command.

If you disguise a player to themself, they will see a slightly-lagging-behind copy of the disguise entity.

The disguise will last until a server restart, or the cancel option is used.

Optionally, specify a list of players to show or cancel the entity to.
If unspecified, will default to the linked player.
Or, specify 'global' to make the disguise or cancel apply for all players. If using global, use "self" to show to the self-player.

To remove a disguise, use the 'cancel' argument.
Related Tags<PlayerTag.disguise_to_self[(<player>)]> Returns the fake entity used to disguise the entity in the player's self-view (only relevant to players), either globally (if no context input given), or to the specified player. (...)
<EntityTag.is_disguised[(<player>)]> Returns whether the entity is currently disguised, either globally (if no context input given), or to the specified player. (...)
<EntityTag.disguised_type[(<player>)]> Returns the entity type the entity is disguised as, either globally (if no context input given), or to the specified player. (...)
<EntityTag.disguise_to_others[(<player>)]> Returns the fake entity used to disguise the entity in other's views, either globally (if no context input given), or to the specified player. (...)
Usage Example
#Use to show a turn the NPC into a creeper for the linked player.
- disguise <npc> as:creeper
Usage Example
#Use to show a turn the NPC into a red sheep for the linked player.
- disguise <npc> as:sheep[color=red]
Groupplayer
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/DisguiseCommand.java#L42