Name | disguise |
Syntax | disguise [<entity>] [cancel/as:<type>] (global/players:<player>|...) (self) |
Short Description | Makes the player see an entity as though it were a different type of entity. |
Full Description | Makes 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 |
|
Usage Example |
|
Group | player |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/DisguiseCommand.java#L42 |