Time Lived

Time Lived

Mod

Keeps tracks of how many days you've survived since your last death and sends you a message after you respawn. You can even add your own custom messages based on how long you live!

Server Utility

2,316 downloads
13 followers
Follow Save

A mod that keeps track of days survived since your last death. When the player dies, a message is shown to the player indicating how long they lived and if the player surpassed the last record. After the player respawns, a message will be sent to the player.

Message shown to player after respawn

Please use the Report Issues link to report issues to the github issue tracker.

See how long a player has lived

/timelived query player [player]

Check the world record. Only includes players currently playing (for now)

/timelived query worldRecord

Time Lived command result showing how long the player has lived and the previous record

You can customize the messages or even add new ones to the time lived messages. The default configuration settings:

{
  "timeLivedMessages": [
    {
      "minDaysLived": 500.0,
      "message": "Incredible! You lived for {daysLived} day(s)! You\u0027re a legend!"
    },
    {
      "minDaysLived": 366.0,
      "message": "Amazing! You lived for {daysLived} day(s). That\u0027s seriously impressive!"
    },
    {
      "minDaysLived": 365.0,
      "message": "Amazing! You lived for {daysLived} day(s). That\u0027s a whole Minecraft year!"
    },
    {
      "minDaysLived": 100.0,
      "message": "Wow! You lived for {daysLived} day(s). That is quite an accomplishment!"
    },
    {
      "minDaysLived": 1.0,
      "message": "Congrats, you lived for {daysLived} day(s)."
    },
    {
      "minDaysLived": 0.5,
      "message": "You lived for {daysLived} day(s). How about we try that again, shall we?"
    },
    {
      "minDaysLived": 0.1,
      "message": "You lived for {daysLived} day(s). Let\u0027s see if we can last a bit longer next time."
    },
    {
      "minDaysLived": 0.0,
      "message": "You lived for {daysLived} day(s). Maybe next time will be better."
    }
  ],
  "timeLivedMessagesToOthers": [
    {
      "minDaysLived": 500.0,
      "message": "Incredible! {playerName} lived for {daysLived} day(s)! Legendary!"
    },
    {
      "minDaysLived": 366.0,
      "message": "Amazing! {playerName} lived for {daysLived} day(s). That\u0027s seriously impressive!"
    },
    {
      "minDaysLived": 365.0,
      "message": "Amazing! {playerName} lived for {daysLived} day(s). That\u0027s a whole Minecraft year!"
    },
    {
      "minDaysLived": 100.0,
      "message": "Wow! {playerName} lived for {daysLived} day(s). That is quite an accomplishment!"
    },
    {
      "minDaysLived": 1.0,
      "message": "{playerName} lived for {daysLived} day(s)."
    },
    {
      "minDaysLived": 0.0,
      "message": "{playerName} only lived for {daysLived} day(s). Let\u0027s give them some encouragement!"
    }
  ],
  "newRecordMessage": "All right! New record! You surpassed your previous record of {previousDaysLived} day(s)!",
  "newRecordMessageToOthers": "All right! {playerName} surpassed their previous record of {previousDaysLived} day(s)!",
  "queryPlayerMessage": "{playerName} has lived for {daysLived} day(s). Previous record is {previousDaysLived} day(s).",
  "queryWorldRecordMessage": "The current record holder for longest time lived is {playerName}, surviving a total of {daysLived} day(s).",
  "statsNotFoundMessage": "Statistics not found for {playerName}.",
  "timeTravelMessage": "Wait... did you travel back in time?",
  "enableMessagesToOthers": true
}

You can use variables in the customer messages to insert the number of days the player lived, their previous record, and also the player name.

{daysLived}
{previousDaysLived}
{playerName}

To add a new message to the time lived messages, add a new section like this:

{
  "minDaysLived": 1000.0,
  "message": "Holy moly! You lived for {daysLived} day(s)! You\u0027re a superstar!"
}

Now if you live for 1000 days or more, you will get the new message.


Project members

neptunecentury

Member

Details

Licensed MIT
Published a year ago
Updated 24 days ago