Repository navigation
How to stack item past 64 #224
|
I'm trying to make an amount selector from 1-100, but this would require stacking an item past 64. It's theoretically possible as this Inventory method exists, Would it be possible to use this in something like a ChestGUI? |
Answered by
stefvanschie
Jun 15, 2022
Replies: 1 comment 1 reply
|
No, this is not possible. From my testing, this method is pretty unstable and doesn't always display the stack size properly. You can grab the underlying inventory yourself and call this, just note that there's no guarantee that IF doesn't create a different inventory prior to showing the gui, so you may be calling that method on an inentory that won't be used in the end. |
1 reply
Answer selected by
okay1204
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, this is not possible. From my testing, this method is pretty unstable and doesn't always display the stack size properly. You can grab the underlying inventory yourself and call this, just note that there's no guarantee that IF doesn't create a different inventory prior to showing the gui, so you may be calling that method on an inentory that won't be used in the end.