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_deep_sleeping[(<#>)]>
ReturnsElementTag(Boolean)
DescriptionReturns whether enough players have been in bed long enough for the night to advance (generally 100 ticks).
Loops through all online players, so is typically used after checking Tag:WorldTag.enough_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_deep_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#L951