neptunecentury / time-lived

A Minecraft mod that tracks how long a player lived before each death
MIT License
0 stars 0 forks source link

Track world record #3

Open HoldYourWaffle opened 1 month ago

HoldYourWaffle commented 1 month ago

It'd be amazing if the world record for "longest time alive" was tracked, with special messages (or perhaps an advancement?) for when it's broken.

neptunecentury commented 1 month ago

Do you mean like a personal record or the longest time among all players in a server? It is something I've thinking about. Especially the achievement.

But I have a few concerns

  1. The time lived is based on world time since the player first joins. Usually, servers will continue to tick even when no players are online. A player could join and then leave, and come back 100 minecraft days later, while everyone else is dying over and over. I have thought about having it only count the time the player has played, but that also has its own issue, because it would not be synced with world time. E.G, the player joined on day 1, and the server is now on day 100, but the player only played for 2 minecraft days. It would only report them living for 2 days.
  2. A world record would be challenging since data is stored in nbt and loaded when players are currently playing. So players not currently online wouldn't be included. And I am not sure they should be. Some players may join once and never join again. I am thinking about adding a command to get the player that has lived the longest amongst currently online players.
  3. The achievement is a nice idea, but because of concern no. 1, the achievement might make more sense when beating a personal record, but that is easily done. I am however, thinking of a way to add custom achievements for configurable milestones, like 100 days, 500 days, etc...

Let me know your thoughts on this.