SaveTheHotbar! - Save Your Quick Access Bar!
Important Note
For the mod to function properly, you must set the game rule keepInventory to true!
About the Mod
The SaveTheHotbar! mod offers a balanced alternative to standard inventory preservation and gravestone-type modifications. Unlike them, it allows you to retain only the most essential elements - equipped gear and the quick access bar, while the remaining items drop upon death. This significantly simplifies the process of returning to your death location to recover lost belongings.
Configuration
Configuration is accessible directly in-game through the dedicated mods menu. You can easily adjust all parameters according to your preferences.
saveHotbar
Default: true
When enabled, this option preserves the quick access bar after character death.
saveArmor
Default: true
This function handles the preservation of all character equipment after death.
saveSecondHand
Default: true
Ensures that the item in the second hand isn't lost upon death.
randomSpread
Default: false
When this feature is enabled, all items dropped after death scatter in random directions. If disabled - all items remain exactly at the death location and can only move downward. This parameter doesn't function if container storage mode is active.
randomDropChance
Default: 0.0 (0.0 → 0%; 1.0 → 100%)
Adds a probability for items that should be preserved according to settings to drop randomly. For example, even if armor should be preserved, each piece has a chance to be dropped instead, introducing an element of risk to the recovery process.
containDrop
Default: false
When this option is activated, all non-preserved items get placed in a specialized container block according to container mode settings. If disabled, all non-preserved items simply drop to the ground.
containDropMode
Default: "SACK"
Determines the type of container where non-preserved items will be stored if container storage mode is enabled.
- Available container options:
"SACK"- after death, a specialized sack appears containing all non-preserved items. When the sack is destroyed, items drop out but not the sack itself or experience. Supports waterlogging.
mobGraveMaxSpawnRadius
Default: 32
Determines the maximum search radius for suitable special container spawn locations. If a perfect location isn't found within this radius, a backup sack option is used.
logDeathCoordinatesInChat
Default: false
When enabled, this function automatically records character death coordinates in the chat.
logGraveCoordinatesInChat
Default: false
This option saves container block coordinates in the game chat for quick access to lost items.
Default JSON Configuration
{
"saveHotbar": true,
"saveArmor": true,
"saveSecondHand": true,
"randomSpread": false,
"containDrop": true,
"logDeathCoordinatesInChat": false,
"logGraveCoordinatesInChat": false,
"randomDropChance": 0.0,
"rarityDropChanceDecrease": 2.0,
"containDropMode": "GRAVE",
"mobGraveMaxSpawnRadius": 32
}