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 2454 tags...
Name<WorldTag.is_night>
ReturnsElementTag(Boolean)
DescriptionReturns whether it is considered night in this world. Players are typically allowed to sleep at this time.
Note that in certain worlds, this and Tag:WorldTag.is_day can both be 'false'! (The nether, for example!)
In typical worlds, this is 'true' if Tag:WorldTag.sky_darkness is 4 or higher.
To check the current time without storm interference, see Tag:WorldTag.time and related tags.
Generated Example
- if <player.location.world.is_night>:
    - 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#L999