Backpack Attribute
This mod offers a completely new approach to the backpack system in Minecraft. Instead of adding backpack items, it provides access to additional storage at any time (settings can be changed in configuration).
The player can open the backpack screen using a hotkey (default - B).
The minimum number of slots is 0 - in this case, the backpack screen will not open, and the player will receive a notification that they currently have no available backpack slots. The maximum number of slots is 27.
Configuration
The "default_backpack_slot_amount" parameter in the server configuration file determines the default number of backpack slots for each player.
The entity attribute "generic.backpack_capacity" controls how many slots are added or removed from the standard amount. By default, this value is 0, but it can be changed using entity attribute modifiers (EAMs).
The background texture for disabled slots is not displayed. This can be disabled in the client configuration.
What happens to items in the backpack when its size decreases?
When a backpack slot contains an item and becomes inactive, that item is moved to the regular inventory or dropped at the player's location if the inventory is full. The player is notified of this via a chat message.
What happens to items in the backpack when the player dies?
Two new game rules control backpack behavior in case of player death.
"keepBackpackInventory" is set to false by default.
"clearBackpackInventoryOnDeath" is set to false by default.
When "keepBackpackInventory" is set to true, items remain in the backpack. This is similar to the vanilla game rule "keepInventory".
When "keepBackpackInventory" is set to false, two options are possible:
- If "clearBackpackInventoryOnDeath" is true, items are destroyed
- If "clearBackpackInventoryOnDeath" is false, items are dropped at the player's position
Mod Compatibility
The backpack screen will not show disabled inventory slots when the "Inventory Size Attributes" mod is installed.