本模组重做了死亡时物品保存的处理方式。它允许玩家在死亡后保留部分物品和经验值,而不会像 keepInventory 游戏规则那样保存所有物品。
物品
当玩家通过床、重生锚或其他方法设置出生点时,玩家身上的所有物品和经验等级都会带有时间戳并被保存。
如果玩家死亡,他们将保留在睡觉时身上已有的那些物品。其他所有物品将正常掉落。
只有与玩家身上的时间戳匹配的物品才会被保留,任何具有不同时间戳的物品都将正常掉落。
已标记时间戳但在死亡时不在玩家身上的物品不会被保留。
经验值
玩家将在最后一次设置出生点时的经验等级或死亡时的经验等级中,保留较低的那个值。
示例 1:玩家以 30 级保存并收集了额外的 5 级,然后死亡,他们将保留 30 级,并掉落相当于 5 级的经验值。
示例 2:玩家以 30 级保存并消耗了 5 级,然后死亡,他们将保留 25 级,不掉落任何经验值。
备注
如果启用了 keepInventory 游戏规则,本模组不会改变任何功能。
如果玩家在死亡时出生点无效,所有物品将正常掉落。
This mod reworks how inventory saving on death is handled. It allows the player to keep some of their items and xp on death while not saving everything like the keepInventory gamerule does.
Items
When the player sets a spawnpoint, via bed, respawn anchor or other method, all items and experience levels on the player will be saved with a timestamp.
If the player dies, then they will keep any items that they had at the time of sleeping that are still present on the player. All other items will be dropped as normal.
Only items that match the timestamp on the player will be kept, anything with a different timestamp will be dropped as normal.
Items that are timestamped, but not on the player at the time of death will not be kept.
Experience
The player will keep the xp levels when last setting spawn or the levels had on death, whichever is lower.
Example 1: Player saves with 30 levels, collects 5 more and then dies, they will keep 30 levels and drop 5 levels worth of xp.
Example 2: Player saves with 30 levels, spends 5 levels and then dies, they will keep 25 levels and drop no xp.
Notes
If the keepInventory gamerule is active, this mod will not alter any functionality.
If the player's spawn point is invalid at the time of death, all items will be dropped as normal.
评论 0
登录后参与评分
还没有评论,来抢沙发吧