Skip to content

Inventory Enhancement: The Bag #73

Closed

Description

@IntegratedQuantum

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.

Activity

  1. added
    enhancement
    contributor friendly
    on Sep 17, 2023
  2. Argmaster commented on Mar 5, 2025

    @Argmaster
    Collaborator
    • How should we indicate that a slot is a bag?
    • Should we be able to view all items in the bag, even if we can take only last in?
    • How should we indicate fullness when bag slot is part of structure eg. furnace
  3. IntegratedQuantum commented on Mar 5, 2025

    @IntegratedQuantum
    MemberAuthor

    How should we indicate that a slot is a 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.

  4. thecreare commented on Oct 25, 2025

    @thecreare
    Contributor

    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

  5. Wunka commented on Mar 23, 2026

    @Wunka
    Contributor

    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).

  6. IntegratedQuantum commented on Mar 24, 2026

    @IntegratedQuantum
    MemberAuthor

    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.

  7. added a commit that references this issue on Apr 30, 2026
  8. added a commit that references this issue on May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributor friendlyenhancementgameplay

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions