Published on October 06, 2022 (Updated on March 31, 2023)

Statistics

Ever wanted to know how many blocks you have mined or how many days you have spent in the nether? What about how much damage you have taken from falling or how many innocent dolphins you have needlessly slaughtered? Well good news, now you can see all of these and many many more!

Select version for changelog:

Changelog

Updated 1.19.50 pack and zip to fix scoreboard not displaying issue

Installation

Downloads

  • Statistics_1_19_50.mcpack (166.25 KB)
  • Statistics_1_19_50.zip (166.25 KB)
  • Statistics_1_19_40.mcpack (166.25 KB)
  • Statistics_1_19_40.zip (166.25 KB)

Supported Minecraft versions

Installation Guides

1
Can you upgrade it to 1.20?
1
look i'm sure that this mod is great and all but bro the thumbnail needs work my guy...
1
I installed the addon correctly but it is not displayed in my game. By doing !s nothing happens under version 1.19.73
1
Thanks for letting me know!

Upon investigation, the tick event has been removed from the api in 1.19.70, so the packs will not work as currently designed for the new release.

I have created a new pack and zip, which should be available in a few days, that have all tracked statistics that require timing remove (this includes the scoreboard updates). Hopefully they will re-add this functionality or a similar mechanic in the future so these can be tracked again.
1
how do i get the scoreboard to work
1
Thanks for alerting me to this issue!

The latest API changes broke the scoreboard display code (class changed to an interface). I have sent over a new Statistics_1_19_50 mcpack and zip for approval, they should be available for download in a couple of days (addon version 1.0.3).

If you want this update sooner, you can update the "bc_statistics.js" file by replacing lines 13318 and 13361 from
"let newObjecitveDisplay = new minecraftserver.ScoreboardObjectiveDisplayOptions(newObjective);"
to
"let newObjecitveDisplay = { objective: newObjective };"
1
Excellent! I read through your script and you have a very impressive attention to detail (and good programming skills too). This is such a great addon! Thank you!
1
Thanks for the kind words! I am new to javascript so I am learning the nuances, but it does have similarities to other languages I have been using for many years ... as always, I am still planning to go back and document more. lol
1
Hey, i love the idea. But i have a problem.
I downloaded the .mcpack, imported it, created a new world with beta api on, the pack activated, in survival (1.19.50), but when i joined it, there was no message and when i type !s, nothin happened.
Did i do something wrong?
1
No, you did everything correctly, it looks like the 1.19.50 update removed the 1.0.0-beta version of the Beta APIs. I am uploading a new version of the pack that works on 1.19.50, so that should be available here in a couple of days. If you want a jump start on it, unzip the zip version, go to the file "manifest.json" and change the version in line 28 from "1.0.0-beta" to "1.1.0-beta", rezip the folder, rename the extension from .zip to .mcpack, and finally reimport the package.
1
okay, i'll try this wednesday
1
Hey I won't work on dedicated Servers do you have any clue why?
1
No idea. The experiment Beta APIs is currently still in development, so it could just be that they haven't fully added support yet. But hopefully soon, as the changes in 1.19.40 changed the root from minecraft-mojang to minecraft-server. :D
1
I created a test server and it indeed does not work out of the box because of the needed experimental toggle for Beta APIs not being on.
I'm not familiar with how to enable this when creating a new world server, but I got it to work by first creating the world not as a server with the pack on and with the experiment on. Then, replace the server's world files with the newly created non-server world files, and move the pack from inside the world's behavior_packs folder to the server's behavior_packs folder.
Then run the server and in the console log you should see the line "[.... INFO] Experiment(s) active: gtst"
1
When I type !s nothing happens.
1
Double check that the pack has been activated on the world, and that GameTest Framework has been turned on in Experiments.