Denizen Script Tags


Tags are always written with a <between these marks>, and are critical to scripts, as the primary way to read data.
Learn about how tags work in The Beginner's Guide.


Showing 1 out of 2437 tags...
Name<WorldTag.enough_sleeping[(<#>)]>
ReturnsElementTag(Boolean)
DescriptionReturns whether enough players are sleeping to prepare for the night to advance.
Typically used before checking Tag:WorldTag.enough_deep_sleeping
By default, automatically checks the playersSleepingPercentage gamerule,
but this can optionally be overridden by specifying a percentage integer.
Any integer above 100 will always yield 'false'. Requires at least one player to be sleeping to return 'true'.
Generated Example
- if <player.location.world.enough_sleeping>:
    - narrate "it was true!"
- else:
    - narrate "it was false!"
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/WorldTag.java#L930