跳到正文

Time Lived

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!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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

Note: As of version 1.1.0, the message config property is deprecated. Use messages. You can add multiple messages separated by a comma. If more than one message is listed, the mod will choose one at random for that minDaysLived entry.

{
    "minDaysLived": 100.0,
    "messages": [
      "Wow! You lived for {daysLived} day(s). That is quite an accomplishment!",
      "Great job! You lived for {daysLived} day(s)!"
    ]
  },

For versions less than 1.1.0, use message property.
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.

常见问题

Time Lived 支持哪些 Minecraft 版本?

Time Lived 支持 Minecraft Java 版 1.20.1–26.3,共 23 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Time Lived 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

neptunecentury 的其他作品

查看全部 →