Minecraft Data Packs / Quality of Life

Hold More Stuff! (Inventory Expansion Data Pack)

  • check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • check_circle Recipes
  • 24,330 views, 56 today
  • 6,715 downloads, 13 today
  • 96
  • 100
  • 46
Required Resource Pack
blockerlocker's Avatar blockerlocker
Level 55 : Grandmaster Blockhead
128
NOTE: I'm well aware of several bugs reported in the comments, including inventories getting wiped in certain circumstances. I'll try and get a patch out when I can, but have found myself quite busy as of late.

Hold More Stuff expands the measly 36 inventory slots of the base game to a potential 217 slots after receiving all upgrades!


The new inventory Storage Button allows players to navigate between pages, as well as easily transfer items between pages. Clicking an item into an unselected Page button will deposit the item into that page, and clicking an item into the Storage Button will deposit that item into the next available slot.

The following crafting recipe can be used to craft one new page:

Crafting Recipe

Note: This data pack is intended for usage in SURVIVAL mode or ADVENTURE mode. There is a known bug preventing it from working in creative mode, and I am unsure of how to fix it.

Pages can be manually unlocked with commands, and Keep Inventory is supported so long as the included Keep Inventory function is used (as opposed to the normal /gamerule command).


Commands
Toggle Keep Inventory (must be used instead of normal command):
/function hms:keepinventory

Manually receive all 8 inventory pages:
/scoreboard players set @s hms_pages 80

Reset player to 2 pages (deletes all page content):
/function hms:reset

(Advanced) Moving Storage Center to World Spawn
By default, inventory pages are stored in marker entities located a (0,0,0). In order to ensure these marker entities can be called upon at a moment's notice and are never unloaded, the chunk at (0,0) is forceloaded. Forceloading chunks can have performance implications, so this is a short tutorial on relocating the inventory markers to the center of your world.

With the data pack already installed and loaded once, the first step is to locate the center of your world, either by following a compass, or by setting a new world center with '/setworldspawn X Y Z'. The Y value is irrelevant, and an arbitrary one can be picked (such as 0). The X and Z values of your world center are what is most important.

Next, open the .mcfunction file data/hms/functions/inv_return.mcfunction. In inv_return, change the first command to 'tp @s X Y Z', where the coordinates are your world center. This will make all storage markers return to this location after being used.

To relocate the markers, run the command '/tp @e[​type=marker,tag=hms_inv] X Y Z', where again the coordinates are your world center.

Finally, in the .mcfunction file data/hms/functions/load.mcfunction, you can remove or comment out the line 'forceload add 0 0'. Running the command '/forceload remove 0 0' in-game after removing this line will unload the forceloaded chunk at (0,0)

Now markers will return to your world center, and no extra chunks will remain loaded!


I'm hoping to add some cool new features to this data pack in the future, so let me know what you'd like to see!
CompatibilityMinecraft 1.19
Tags

Create an account or sign in to comment.

1
04/20/2024 2:04 pm
Level 1 : New Explorer
mikomine12
mikomine12's Avatar
PLS update to 1.20
1
03/29/2024 8:49 pm
Level 1 : New Miner
GoStrawberryMan
GoStrawberryMan's Avatar
This data pack wont work in 1.20.4. Can you fix it.
2
03/25/2024 9:31 pm
Level 1 : New Miner
grimnotfound
grimnotfound's Avatar
works in 1.20
2
03/22/2024 8:45 pm
Level 1 : New Miner
GoStrawberryMan
GoStrawberryMan's Avatar
This data pack wont work in 1.20.4
2
03/12/2024 7:50 pm
Level 58 : Grandmaster Geek
MM-13
MM-13's Avatar
Will it be made compatible with 1.20.4? The chest (button) in the inventory doesn't react as a button anymore.
1
12/01/2023 1:07 am
Level 1 : New Miner
harry777
harry777's Avatar
1.17?
1
07/29/2023 5:27 pm
Level 1 : New Miner
Yupoman
Yupoman's Avatar
I love this datapack, I always found it necessary to expand the inventory. As a suggestion it would be interesting an alternative that you get an expansion once you kill the dragon, which is something that can be repeated and makes it more interesting.
1
04/24/2023 11:29 am
Level 1 : New Miner
Datapackenjoyer
Datapackenjoyer's Avatar
I could put KeepInventory on by replacing some coding in the data pack, took me a lot of time to figure it out but in the end it worked
1
04/08/2023 3:18 pmhistory
Level 1 : New Miner
Fear_dont
Fear_dont's Avatar
Am i supposed to have a texture pack to go with this?
2
04/04/2023 4:18 pm
Level 1 : New Miner
calfordz
calfordz's Avatar
If i add this datapack to my server, will our inventorys be reset?
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome