

Death Backup 是一个模组,它会在玩家死亡前将玩家的物品栏保存到世界文件夹中的一个文件中。如果玩家拥有作弊权限,可以通过 '/deathbackup load <index>' 命令重新加载物品栏。'/deathbackup list' 会显示所有最近的死亡记录及其索引,以便进行检索。物品栏保存在以玩家名字命名的文件夹中,因此它既适用于服务器环境,也适用于单人游戏。






所有可用的配置选项:
显示剧透
sendBackupReminderMessageToThoseWithAccessOnDeath 默认值 true
启用后,当玩家死亡且拥有作弊权限时,会向其发送一条消息,告知已创建备份并可加载。
backupReminderMessage 默认值 "A backup of your inventory before your death has been created and can be loaded with '/deathbackup load 0'."
当 'sendBackupReminderMessageToThoseWithAccessOnDeath' 启用时,发送给拥有作弊权限玩家的提示消息。

/deathbackup - 显示可用的命令。
/deathbackup list - 显示最近死亡记录的列表及其索引。
/deathbackup load <index> - 加载 '/deathbackup list' 中由 <index> 指定的死亡备份。索引 0 始终代表最新的死亡记录。

每当玩家死亡时,其物品栏和装备都会保存到 './world-folder/data/deathbackup/time.txt' 中。默认情况下,如果玩家拥有作弊权限,系统会向该玩家发送一条提醒消息,但此功能可在配置中禁用。

使用命令 '/deathbackup list' 可以查看所有最近的死亡备份。索引 0 始终代表最新的备份。

使用 '/deathbackup load 0' 命令加载最新死亡前的最新物品栏。

另一个示例展示了带有 NBT 标签的物品,例如附魔书和写好的书:

通过执行 '/deathbackup load 0',上一个物品栏被成功加载,没有任何问题。


您可以自由在任何整合包中使用此模组,前提是下载源必须保留在 CurseForge 或 Modrinth 生态系统中。
Serilum.com 提供了所有可用模组的概览及更多信息。
如有问题、想法、建议或其他任何事宜,请访问 Github 仓库。谢谢!


Death Backup is a mod which saves the inventory of a player right before their death to a file in the world folder. If a player has cheat-access, they can reload the inventory via the '/deathbackup load <index>' command. '/deathbackup list' shows all the latest deaths with indices which can be retrieved. The inventories are saved in a folder with the players' name, so it works in server environments as well as singleplayer.






All available config options:
Show Spoiler
sendBackupReminderMessageToThoseWithAccessOnDeath default true
When enabled, sends a message to a player when they die and have cheat-access that a backup has been created and can be loaded.
backupReminderMessage default "A backup of your inventory before your death has been created and can be loaded with '/deathbackup load 0'."
The message sent to players with cheat-access when 'sendBackupReminderMessageToThoseWithAccessOnDeath' is enabled.

/deathbackup - Shows the commands available.
/deathbackup list - Shows a list of the latest death with indices.
/deathbackup load <index> - Loads the death backup specified by <index> in '/deathbackup list'. Index 0 is always the latest death.

Whenever a player dies, their inventory and gear is saved to './world-folder/data/deathbackup/time.txt'. By default a message is sent to the player with a reminder if they have cheat-access, but this can be disabled in the config.

With the command '/deathbackup list' all recent death backups can be seen. Index 0 is always the latest.

Using the '/deathbackup load 0' command to load the latest inventory prior to the latest death.

Another example with items with NBT tags such as enchantments and written books:

The last inventory is loaded without problems by doing '/deathbackup load 0'.


You may freely use this mod in any modpack, as long as the download remains hosted within the CurseForge or Modrinth ecosystem.
Serilum.com contains an overview and more information on all mods available.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!
评论 0
登录后参与评分
还没有评论,来抢沙发吧