You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just like a normal bag, you can throw things in at the top, but if you want to search something in there, you have to start taking things out of it.
In the game the bag would be represented by a single item slot, where you can access the top-most item in the bag, or put new stuff into it.
Overall this allows expanding the inventory, while also encouraging some strategy when it comes to inventory management.
Which items do you want to access quickly? Which items can you just put into the bag?
Internally this can be represented by a Stack data structure.
In the future, there could also be capacity upgrades to the bag.
I'd imagine that it would probably have a symbol in the background, or a special color/outline.
Should we be able to view all items in the bag, even if we can take only last in?
No, I think only seeing the top is part of the fun.
I think it would be nice if you could see the top two items behind each other (the one behind maybe slightly gray), to indicate visually how the bag works.
How should we indicate fullness when bag slot is part of structure eg. furnace
I think a binary indication should be enough, maybe we can change the color of the frame or something.
Having adventured for ~5000 blocks, my inventory has gotten full of random shiny things that I picked up along the way (new flowers, plants, wood types, etc), leaving no room for anything I find at my destination or pick up on the way back.
The bag would be the perfect solution, I could throw all this stuff in a bag and sort it out when I got home
With #2774 removing the Inventory.Type I would like to know how this could be achieved.
A dynamic sized Inventory sounds pretty unique to me but also shouldn't conflict with other inventories.
Will it maybe be one inventory with size 1 and one backing type with the stack.
Then on the update callback of the inventory we could move the top most item from the stack to the actual inventory.
And with specifing the stack as the source we can make commands look if they first need to move the item in the inventory to the stack.
This would of course mean we may need new sync commands wich represent these two operations (moving from stack to inventory and from inventory to stack, if the stack is not itself an inventory).
It could also be not an inventory.
There is no reason to try to generalize an inventory into being able to fulfill the same things as the bag, especially given that it behaves much differently too.
There are basically just two operations: deposit and take, so we could just add sync commands for these and be done with it.
Activity
Argmaster commentedon Mar 5, 2025
IntegratedQuantum commentedon Mar 5, 2025
I'd imagine that it would probably have a symbol in the background, or a special color/outline.
No, I think only seeing the top is part of the fun.
I think it would be nice if you could see the top two items behind each other (the one behind maybe slightly gray), to indicate visually how the bag works.
I think a binary indication should be enough, maybe we can change the color of the frame or something.
thecreare commentedon Oct 25, 2025
Having adventured for ~5000 blocks, my inventory has gotten full of random shiny things that I picked up along the way (new flowers, plants, wood types, etc), leaving no room for anything I find at my destination or pick up on the way back.
The bag would be the perfect solution, I could throw all this stuff in a bag and sort it out when I got home
Wunka commentedon Mar 23, 2026
With #2774 removing the
Inventory.TypeI would like to know how this could be achieved.A dynamic sized Inventory sounds pretty unique to me but also shouldn't conflict with other inventories.
Will it maybe be one inventory with size 1 and one backing type with the stack.
Then on the update callback of the inventory we could move the top most item from the stack to the actual inventory.
And with specifing the stack as the source we can make commands look if they first need to move the item in the inventory to the stack.
This would of course mean we may need new sync commands wich represent these two operations (moving from stack to inventory and from inventory to stack, if the stack is not itself an inventory).
IntegratedQuantum commentedon Mar 24, 2026
It could also be not an inventory.
There is no reason to try to generalize an inventory into being able to fulfill the same things as the bag, especially given that it behaves much differently too.
There are basically just two operations: deposit and take, so we could just add sync commands for these and be done with it.
The Bag #73 (#2989)
The Bag PixelGuys#73 (PixelGuys#2989)