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 184 commands...
Namesleep
Syntaxsleep (<location>)
Short DescriptionCauses the NPC to sleep. To make them wake up, see Command:Stand.
Full DescriptionMakes the linked NPC sleep at the specified location.
Use Command:Stand to make the NPC wake back up.
Related Tags<NPCTag.is_sleeping> Returns true if the NPC is sleeping. Relates to Command:sleep.
Usage Example
# Make the linked NPC sleep at the player's cursor location.
- sleep <player.cursor_on>
Groupnpc
RequiresCitizens
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/npc/SleepCommand.java#L24