Download Keep Bed Inventory — Minecraft Mods — MetaMods

Keep Bed Inventory

Active

Downloads

0

Last update

11 months ago
Client
Weapons and armor
Utils

Keep Bed Inventory

This mod completely reworks the standard inventory saving system after player death. Unlike the keepInventory rule which preserves absolutely all items, this modification offers a more balanced and logical approach.

Item Preservation

When a player sets a respawn point (typically through a bed, respawn anchor or other methods), all items in their inventory and their current experience level are recorded with a timestamp. Upon character death, the player will only retain those items that were in their possession at the time of their last sleep save and which are still in their possession. All other items are dropped in the usual manner.

Key condition: only items matching the player's timestamp are preserved. Any objects with different timestamps will be dropped normally. Items that were previously timestamped but are no longer in the player's possession at the time of death are also not preserved.

Experience Management

The experience level system works on an intelligent principle. The player will preserve either the number of levels they had during their last spawn save or the levels at the moment of death - whichever value is lower.

Example 1: player saved with 30 levels, collected 5 more levels, then died. As a result, they will preserve 30 levels and lose experience equivalent to 5 levels.

Example 2: player saved with 30 levels, spent 5 levels on enchanting and died. In this case, they will retain 25 levels without any experience loss.

Important Features

If the standard keepInventory rule is active on the server, this mod does not affect gameplay. Also, if the player's respawn point becomes invalid by the time of their death, all items will be dropped normally.

Project members
tfarecnim

tfarecnim

Created: 20 Oct 2024

ID: 63652