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 2 out of 2425 tags...
Name<ListTag.highest[(<tag>)]>
ReturnsObjectTag
DescriptionReturns the highest value in a list of decimal numbers.
Optionally specify a tag to run on each list entry that returns the numeric value for that entry.
Example
# Narrates '10'
- narrate "<list[3|2|1|10].highest>
Example
# Narrates the name of the player with the most money currently online
- narrate <server.online_players.highest[money].name>
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/ListTag.java#L2007

Name<ListTag.highest[(<tag>)].count[<#>]>
ReturnsListTag
DescriptionReturns a list of the highest values in a list of decimal numbers.
Optionally specify a tag to run on each list entry that returns the numeric value for that entry.
Note: if you want to sort the entire list, rather than just getting a few values, use a sort tag like Tag:listtag.sort_by_number
Example
# Narrates a list of '10|3'
- narrate "<list[3|2|1|10].highest.count[2]>
Example
# Narrates the names of the 5 players with the most money currently online
- narrate <server.online_players.highest[money].count[5].parse[name].formatted>
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/ListTag.java#L2034