Instead of adding a value of 1 per min, stat.playOneMinute adds a value of 1 for every tick!
Linked issues
is duplicated by 5
Attachments
Comments 11
Works as intended. If you look in the Statistics screen, the game divides the number by 20 to get the number of seconds played and then by 60 to get the number of minutes played. As a result, the game needs to keep track of more than just an integer number of minutes.
If that's intended, than this stat is not named correctly. The user expects that a thing called "PlayOneMinute" gives a value in minutes!
As for scoreboard etc. it's not possible to calculate anything afaik, this stat is not really helpful at all.
May I suggest:
Rename stat.playOneMinute to stat.playOneTick
Add stat.playOneMinute (gives minutes), stat.playOneHour and stat.playOneDay so we can keep track if this on a scoreboard for example.
=> Alternative: Give the possibility to calculate a scoreboard value or a divider parameter to the scoreboard command. Some like:
/scoreboard objectives add <name> <criteria> [ displayname divider ]
/scoreboard objectives add ptime stat.playOneTick Playtime 1200
=> gives Playtime in minutes
With some like this, everyone can be happy 🙂
I am not even 1 min online when this was created and it gives this count already.