- fixed refresh type "Global Timer" (id: 3) not sorting scores properly. This was an oversight that is now fixed, they should all be sorted now.
Funny story, turns out I planned to do some optimization on that, so I put in an additional check to prevent it from sorting every tracked score as many times as they were shown in books. I just never implemented the optimized sorting (once for every tracked scoreboard), a mistake I've now corrected thanks to this bug report.
- fixed "Tried to load invalid item:" error that could occasionally pop up if an empty lectern tried to update the book inside of it.
- in rare occasions a book could be empty after creation without the placeholder message inside. That should be fixed now.
Added the sb:run_before function tag that is run as @a before the player scores are stored in the storage. This lets you easily add combined scoreboards that are combined just-in-time instead of needing to combine them all the time.
You can use https://plagiatus.github.io/Statistic-Books-MC/generator/combined_scoreboards/ to create such combined scoreboards.
In 1.3 there was a bug that caused the name storage to be duplicated every time the datapack was reloaded. This led to exponential growth of the data stored, which caused performance issues once it grew too big.
1.4 fixes the issue of the infinite growth, it doesn't clean up the already existing duplicated information though. You could use an NBT editor and remove all the duplicates manually, or you can use the below command. This command will remove all tracked names, so players will need to come online (for at least 5 minutes to be sure) to be tracked with their names again!
/data remove storage sb:tracking names