Time Lived

模组

· 作者 neptunecentury

记录自上次死亡以来你存活的天数,并在你重生后发送一条消息。你甚至可以根据你的存活时长添加自定义消息!

0 本站下载 0 关注 更新于 2 个月前

最新 1.1.0+26.1 · 26.3 · Fabric

一键开服(送7天)

一个记录自上次死亡以来存活天数的模组。当玩家死亡时,会向玩家显示一条消息,告知其存活时长以及是否打破了之前的记录。 玩家重生后,也会收到一条发送的消息。

重生后显示给玩家的消息

请使用“报告问题”链接将问题提交至 GitHub Issue 跟踪器。

查看玩家的存活时长

/timelived query player [player]

查看世界纪录。目前仅包含当前正在游戏的玩家(暂时如此)

/timelived query worldRecord

Time Lived 命令结果,显示玩家存活时长及之前的记录

注意: 从版本 1.1.0 开始,message 配置属性已被弃用。请使用 messages。你可以添加多条消息,并用逗号分隔。如果列出了多条消息,模组将为该 minDaysLived 条目随机选择其中一条。

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

对于低于 1.1.0 的版本,请使用 message 属性。 你可以自定义消息,甚至为存活时间消息添加新消息。默认配置设置如下:

{
  "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
}

你可以在自定义消息中使用变量来插入玩家存活的天数、之前的记录以及玩家名称。

{daysLived}
{previousDaysLived}
{playerName}

要向存活时间消息中添加新消息,请添加如下新部分:

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

现在,如果你存活了 1000 天或更久,你将收到这条新消息。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源