-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Per-Inventory List Max Stack Size #7229
Comments
Absence of this feature holds back development of storage mods that involve condensing blocks into larger stacks. Here is example from mod called storage-interface by @cx384 that will benefit, as well as new holostorage mod. |
Since changing the maximum stack size from arbitrary |
I like this. Should this be a per-list maximum for all items? Should it be per-stack as meta data? I prefer the former, although it's not as versatile, as it's simpler and less likely to have issues. |
I prefer per-list too. |
Yes, per list is what I mean. Sorry for the confusion. |
No confusion, you were clear this is per-list. I think rubenwardy was just wondering, maybe due to the other issue that is for per-stack #5730 |
While this is not implemented I can describe workaround of this issue for containers. Some time ago I played on Xanadu with shops mod. I was able to set up shop which takes 999 cobble from player and gives him 1 dirt. This way I have managed to compress enormous amount of cobble to single chest. |
No mods to the base system are necessary to do this. See microexpansion which handles up to 2^16 items per stack. I have a round of changes to bump this up to 2^48 or so, but the UI is lightly less pretty (I show a nominal count (2^15 items), and manage the real count on on_put, on_take and so on. This inelegant UI I think can be improved, by displaying the count with the item description or the short description and having the UI not display the count. But, that said, we'd benefit if ItemStack could make a 2^48 count in a fat stack and leave the interface alone and update the UI code to handle and display the fat ItemStack as well. minecraft mods often like inventories in the 2^32 range, 2^16 is just simply too small. Another solution is to make a manager like lwcomponents, the UI there is just buttons, and the semantics are anything you want to program. So, in short, you can write a library to abstract and handle the entire work load for you. |
it shouldn't be possible to stack items with max size of 1 e.g. many types of tools shouldn't become stackable by this. |
It is and it works perfectly? Now what? Or, put another way, what breaks? |
Issue type
Summary
It would be neat if we could set the max stack size on a list in an inventory in order to create storage system GUIs that condense multiple stacks into one. This would be extremely useful in mods like Refined Storage, Applied Enertistics, Storage Interface, etc.
Taking an item from this list would just give the player a normal stack size of said item.
The text was updated successfully, but these errors were encountered: