StackableItems
StackableItems
StackableItems allows you to raise or lower the default stack amounts for any item. Items can also be disabled (disallows pickup and crafting). Items can be set in three different ways: individual players, permission groups (requires Vault), and universally.
Example use cases:
- Carrying 16 snowballs while carrying 64 cubic meters of dirt is ridiculous.
- Carry a stack of water buckets or mushroom soup with you so you never run out
- Make potions stack
- Limit stacks of food for a hardcore survival server
- Allow only privileged users to craft/pickup TNT
- Allow individual players to craft custom items
Download: BukkitDev
Source Code: Github
Example configurations
- Items are capped to 127 max to prevent item loss.
- Configurations use Bukkit Material names.
More info on the Configurations page.
Custom configs per group/player
Each Permissions group or player can be setup to use their own custom config by creating a new file in the StackableItems directory. Examples for me would be: I am in group admin and player haveric, so I could use admin.yml or haveric.yml
A group file will override defaultItems for the Permission group.
A player file will override a group file or defaultItems for the given player.
Permissions
- - stackableitems.admin
- Allows a player to use in-game commands to set stack amounts and reload the config.
- Permissions can also be used to create groups which can be handled with group.yml (ex: admin.yml) files
Options
See the options page for detailed descriptions of each option in options.yml
Changelog
See the full changelog on github.
Problem or Bug?
If you are having any issues or encounter any bugs, check the issue tracker on github first, and submit a new one if needed. If you're not sure if you've found a bug or just want to ask for help, jump on the Discord server below to ask around.
If you find my plugins useful and want to help support future development and faster updates, please consider donating and fueling my need for coffee:


-
View User Profile
-
Send Message
Posted Apr 8, 2013@QuantumMiner
Fixed and uploaded on BukkitDev
Not sure if that link will work without the file being approved, you can also find it on Github
Please note that I also changed the permission node .adjust to .admin
Let me know if you find any other issues.
Thanks, Haveric
-
View User Profile
-
Send Message
Posted Apr 8, 2013@QuantumMiner
Thanks, looking into it right now. Not sure how I missed that.
@CommodoreAlpha
Were you in creative by any chance?
-
View User Profile
-
Send Message
Posted Apr 8, 2013After I upgraded to CraftBukkit 2735 and StackableItems 0.9.2 I found that sometimes when I took a stack of 32 Lapis (which has no special configuration), split it in half, and recombined it, I'd end up with 64. I tried disabling StackableItems and behavior went back to normal, except that some of the previously glitched stacks started losing items until they were back where they were supposed to be.
Other people were testing with other materials, so it isn't special to Lapis.
-
View User Profile
-
Send Message
Posted Apr 7, 2013Hmm, that's strange. On my testing server, with this plugin alone, click-stacking works just fine regardless of the options. I'll have to poke around on my main server then to see if it still happens, and if so, what the nature/source of the problem is. Maybe it was plugin incompatibility, not sure though.
EDIT: I'm referring to my previous comment, the one about being unable to stack items directly in the inventory.
-
View User Profile
-
Send Message
Posted Apr 5, 2013@Zilacon
Unless it is in an anvil or hopper, that is not true. They will appear client side as 64 as some inventories will not show up to 127. As soon as you click on that stack again, the full amount will appear on the cursor.
-
View User Profile
-
Send Message
Posted Apr 5, 2013@haveric
Players are reporting their items being deleted when placing items over the 64 stack inside minecart chests, dispensers, etc.
A fix for this would be great!
-
View User Profile
-
Send Message
Posted Apr 2, 2013@Faldonboy
Take a look at the changelog. Version 0.9.2 requires CraftBukkit #2700+
-
View User Profile
-
Send Message
Posted Apr 2, 2013@haveric
1.5.1-R0.1 build #2699
-
View User Profile
-
Send Message
Posted Apr 2, 2013@Faldonboy
That most likely means you need a newer version of CraftBukkit. What version are you currently using?
-
View User Profile
-
Send Message
Posted Apr 2, 2013@haveric
I'm currently using CitiTraders because I have other issues with DTL and CitiTraders doesn't break as often, I'm not sure what version of DTL I was using to test that earlier though.
Unrelated but this error keeps showing up too.
-
View User Profile
-
Send Message
Posted Apr 2, 2013@Faldonboy
So I just checked out DtlTraders and it is working fine for me. I used Citizens2 2.0.8 (alpha 3) and the latest dev build of DtlTraders. The shift clicking when buying/selling is even disabled so I'm not sure where the problem you are having is coming from unless you are running an older version.
-
View User Profile
-
Send Message
Posted Apr 2, 2013@haveric
Well, there aren't many shop plugins that use virtual inventories like that, at least none that are popular, the only two that come to mind right away are DTL and CitiTraders, both using Citizens2. This has only started happening since 1.5 maybe 1.5.1 though so something in one of the plugins was changed recently that caused this.
-
View User Profile
-
Send Message
Posted Apr 2, 2013@Faldonboy
There is no current support for virtual shop plugins. I would need a way to determine whether an inventory is a shop or a regular inventory and as far as I know, that isn't possible. If you or any of those developers know a way for me to get that (preferably without including every shop plugin), please let me know.
-
View User Profile
-
Send Message
Posted Apr 2, 2013Been having a problem with shift clicking things in shop plugins that use virtual items and fake inventories to display items, plugin in question this time is CitiTrader2 for Citizens2 and DTLtraders, shift clicking items in those windows causes them to glitch and gives them to you for free. Already pmed those devs about it, thought you should know I tracked it back to StackableItems though.
-
View User Profile
-
Send Message
Posted Mar 31, 2013@EpicTrance
Not in the way that I would like to, but you can fake it using permissions. You should be able to create a different permission group for each world with most permission systems.
-
View User Profile
-
Send Message
Posted Mar 31, 2013Havnt youa dded multiworld support yet?
-
View User Profile
-
Send Message
Posted Mar 29, 2013That reply got pretty long, but here's some more:
@MonthOLDpickle As you can probably tell, documentation/instructions are not my strongest suit, but I am trying to improve it when I get a chance and am not in the mood for coding.
If anyone wants to help out with any of the documentation or instructions on any of these pages or on github, please send me a pm.
@marubal21
I'm away from my dev machine for the weekend, but I'll try to test against that version and see if I can replicate it.
-
View User Profile
-
Send Message
Posted Mar 29, 2013@MonthOLDpickle
If you are uncertain of a name, you can either use the id or take a look here for the correct name: http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html Nether_Warts should have worked fine, but if it doesn't, there could be something strange going on. What most likely is happening is that you are trying to stack them in an inventory that has "Use_Stacks" in options.yml set to false so it is reverting to the default. If you want the stacks to work everywhere, set all of those to true.
Ender chests should work exactly like the player inventory currently. I just added the config for them today in options.yml so that will be configurable in the next version.
Weird auto sorting? By this, I'm assuming you mean that items flash in one spot and move to another? If so, that is the plugin doing its job (most of the time). It needs to sort based on the new stack sizes. Bukkit/Vanilla Minecraft has no way of doing this so I must cancel the events (causing the flash) and then add them manually. I am currently working on reducing the flashing in situations where Vanilla will work properly. For the player inventory, it might be iterating over the inventory in a different order, causing it to be added in say the hotbar and then jump to the inventory. That sounds like something I should try to fix if that is the case.
In other cases, I am changing how shift clicking works so that you can shift click items into the crafting table for example where in vanilla I don't believe you can yet. In this case, the item will flash somewhere in the player inventory because that is where vanilla would have sent it.
@CommodoreAlpha
That is not the case for me. Can you provide your options.yml file? What I think might be happening is that the inventory is being told to ignore stacks in the options and I'm missing that check on pickup. Try setting all of the "Use_Stacks" to true. If that's not the case, I'd really like to figure out what is going on as that is one of the main features of the plugin.
@marubal21
How often is very rarely? If I'm not able to reproduce it, I can't guarantee that I can fix it, but I can always try to throw in some checks to try to catch anything from throwing errors.
-
View User Profile
-
Send Message
Posted Mar 29, 2013Oh I see..also any way to disable the weird auto sorting thing it does in inventory and chests?
-
View User Profile
-
Send Message
Posted Mar 28, 2013@haveric
Sorry for the late reply, i was on CB build #2717. I had completely removed all the plugins it was just default CB. it doesn't seem to matter which way the furnace is facing, but that was kinda hard to test as it happen very rarely.