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 2484 tags...
Name<util.random_chance[<percent>]>
ReturnsElementTag(Boolean)
DescriptionReturns a random boolean (true or false) with the given percent chance (from 0 to 100).
Example
- if <util.random_chance[25]>:
    - narrate "This happens 25% of the time"
- else:
    - narrate "This happens 75% of the time"
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/tags/core/UtilTagBase.java#L189