
已生存时间
记录你自上次死亡以来生存了多少天,并在你重生后发送一条消息给你。你甚至可以根据你存活的时间添加自己的自定义消息!
这是一个记录自上次死亡以来存活天数的模组。当玩家死亡时,会向玩家显示一条消息,说明他们存活了多久,以及是否打破了上次的记录。 玩家重生后,会向玩家发送一条消息。

请使用“报告问题”链接将问题提交到 github 问题追踪器。
查看玩家存活了多久
/timelived query player [player]
查看世界纪录。目前仅包含当前正在游戏的玩家
/timelived query worldRecord

注意: 从 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 天或更久,你就会收到这条新消息。
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。