A /stats command could be useful when managing servers and creating datapacks, working in a way similar to /advancement
Syntax
/stats [pause|resume|get|set|add|reset] [player] [statistic] [value]
-
pause stops tracking a statistic. The [statistic] argument is optional, so /stats pause @s would pause all statistics, while /stats pause @s minecraft:animals_bred would only pause that statistic.
-
resume resumes tracking. It works the same way as pause.
-
get returns the current value of a statistic.
-
set sets a statistic to a specific value.
-
add adds or subtracts a value from a statistic.
-
reset resets a statistic.
Only get, set, and add would require [statistic]
Only set and add would require [value]
Examples:
/stats pause @s
/stats resume @s
/stats reset @s
/stats get @s minecraft:damage_taken
/stats set @s minecraft:fill_cauldron 0
/stats add @s minecraft:walk_one_cm 160
/stats add @s minecraft:eat_cake_slice -27
/stats reset @s minecraft:trigger_trapped_chest
I would also suggest adding pause and resume to /advancement:
/advancement [pause|resume|grant|revoke] ...
For example:
/advancement pause @s
/advancement resume @s
/advancement pause @s only minecraft:story/mine_stone
pause would temporarily stop advancements from being tracked and awarded, while resume would enable them again.
0 Comments
Please sign in to leave a comment.
Post a new comment: