All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Backpack Attribute

Backpack Attribute

by TheRedBrain • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

Backpack Attribute

This is a different approach to a backpack in Minecraft. No backpack items are added, the backpack can be accessed at any time (depending on the config settings).

The player can open the new backpack screen via a hotkey (B by default).

The minimum amount of slots is 0, in which case the backpack screen won't open. The player gets notified that they currently don't have backpack slots.

The maximum amount of slots is 27.

Configuration

The "natural_backpack_capacity" server config option controls the amount of backpack slots each player has by default.

The entity attribute "backpackattribute:backpack_capacity" controls how many slots are added to/removed from the default amount. This is 0 by default, but with entity attribute modifiers (EAMs) it can be changed.

The background texture of disabled slots is not shown. This can be disabled in the client config.

"What happens to items in my backpack when my backpack gets smaller?"

When a backpack slot contains an item and becomes inactive, that item is moved to the normal inventory or dropped at the players location, when the inventory is full. This is announced to the player via a chat message.

"What happens to items in my backpack when I die?"

Several server config options control what happens in the case of player death.

When the "keep_backpack_inventory_on_death" option is set to true, the items stay in the backpack. This is similar to the vanilla "keepInventory" game rule.

When "keep_backpack_inventory_on_death" is set to false, two outcomes are possible, depending on the "clear_backpack_inventory_on_death" option:

  • When the option is true, the items are destroyed.
  • When the option is false, the items are dropped on the players position.

How to Install Backpack Attribute (Mod)

Backpack Attribute by TheRedBrain is verified for Fabric across Minecraft versions 1.20.1, 1.21, 1.21.1, 1.21.11, 26.1, 26.1.1, 26.1.2 (latest release: 4.0.0, file size: 69 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.20.1, 1.21, 1.21.1, 1.21.11, 26.1, 26.1.1, 26.1.2) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded Backpack Attribute file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.1.x
Fabric
7mo ago 1
1.21.11
Fabric
8mo ago 1
1.21.1
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
1.21
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
1.20.1
Fabric
last yr. 1
[4.0.0] 4.0.0 by TheRedBrain on Apr 21, 2026
Download
# 4.0.0

  • updated to 26.1.x

[3.0.0] 3.0.0 by TheRedBrain on Mar 02, 2026
Download
# 3.0.0

  • updated to 1.21.11
  • migrated to Mojang Mappings

## Additions

  • added server config option to disable the hotkey for opening the backpack screen

## Changes

  • replaced game rules with server config options

## Fixes

  • fixed potential issues regarding config initialization and "Inventory Size Attributes" integration

## Technical

  • replaced synced data with a data attachment, following the best practice for custom entity data
  • removed deprecated API method

[2.2.0] 2.2.0 by TheRedBrain on Dec 22, 2024
Download
# 2.2.0

  • removed dependency on cloth config
  • added dependency on fzzy config

[2.1.0] 2.1.0 by TheRedBrain on Sep 09, 2024
Download
# 2.1.0

  • update to 1.21.1
  • added compatibility with "Inventory Size Attributes"
  • rendering of disabled slots is now controlled by a client config

[2.0.0] 2.0.0 by TheRedBrain on Jun 14, 2024
Download
Update to 1.21
[1.1.0] 1.1.0 by TheRedBrain on May 24, 2024
Download
  • Changed the way the attribute is registered, which increased compatibility with other mods
  • the backpack capacity attribute is now found under "generic.backpack_capacity"
[1.0.0] 1.0.0 by TheRedBrain on May 12, 2024
Download
First release!
Backpack Attribute Icon
Download Backpack Attribute
Select game version
Select platform