Denizen Script Commands


Commands are always written with a '-' before them, and are the core component of any script, the primary way to cause things to happen.
Learn about how commands work in The Beginner's Guide.


Showing 1 out of 184 commands...
NameStatistic
Syntaxstatistic [<statistic>] [add/take/set] (<#>) (qualifier:<material>/<entity>)
Short DescriptionChanges the specified statistic value for a player.
Full DescriptionChanges the specified statistic for the player.
For more info on statistics, see 🔗https://minecraft.wiki/w/Statistics
For statistic names, see 🔗https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Statistic.html

You can add, take, or set a numeric value to the statistic for the linked player.
Works with offline players.

Some statistics are unique per a material or entity - for those, use the "qualifier" argument.
Related Tags<PlayerTag.statistic[<statistic>]> Returns the player's current value for the specified statistic. (...)
<PlayerTag.statistic[<statistic>].qualifier[<material>/<entity>]> Returns the player's current value for the specified statistic, with the (...)
Usage Example
# Use to hide the evidence of all the animal breeding you've done.
- statistic animals_bred set 0
Usage Example
# Use to pretend you just ran a 5k.
- statistic walk_one_cm add 500000
Usage Example
# Use to make it look like that challenge course wasn't even hard for you at all.
- statistic deaths take 200
Groupplayer
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/commands/player/StatisticCommand.java#L27