Posted October 12, 201410 yr I would like to change the maximum stack size for certain blocks. Is it possible to do this? I haven't found a way.
October 12, 201410 yr Not really. I'm pretty sure you'd have to make your own custom implementation of 'ItemStack' and your own custom Container/Inventory. BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
October 12, 201410 yr Use a custom ItemBlock. You can call methods in it like any other item. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
October 12, 201410 yr A stack of "blocks" is really a ItemStack of ItemBlock. Because ItemBlock extends Item you can use the setMaxStackSize() method. So if you make your own custom ItemBlock you can change the stack size. However, the maximum in the game seems to be 64. If you try to make it larger, then weird things will happen. There are other threads on making stack larger than 64 and while it is probably possible it is a huge amount of work because you have to change all the inventories, the way inventories display, etc. to custom. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.