| Name | Invisible |
| Syntax | invisible (<entity>|...) ({true}/false/toggle/reset) (for:<player>|...) |
| Short Description | Sets whether an NPC or entity are invisible. |
| Full Description | Sets whether the specified entities are invisible (equivalent to an invisibility potion), defaults to the linked player/NPC if none were specified.
If an NPC was specified, the 'invisible' trait is applied. Optionally specify 'for:' with a list of players to fake the entities' visibility state for these players. When using 'toggle' with the 'for:' argument, the visibility state will be toggled for each player separately. If unspecified, will be set globally. 'for:' players remain tracked even when offline/reconnecting, but are forgotten after server restart. Note that using the 'for:' argument won't apply the 'invisible' trait to NPCs. When not using 'for:', the effect is global / on the real entity, which will persist in that entity's data until changed. To reset an entity's fake visibility use the 'reset' state. A reset is global by default, use the 'for:' argument to reset specific players. NPCs can't be made invisible if not added to the playerlist (the invisible trait adds the NPC to the playerlist when set). See invisible trait |
| Related Tags | None
|
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Usage Example | |
| Group | entity |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/entity/InvisibleCommand.java#L32 |