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 Jan 1, 2013@haveric
For CB-1.3.2, I was using StackableItems 0.8.9
Here's my options.yml file - unchanged from 1.3.2 for 1.4.6 ...
It might be helpful to know that items that were stacked [in CB-1.3.2/SI-0.8.9], are still stacked. However, as soon as I shift-click to move between chest & inventory or simply click to pick up a stack, only one item "breaks off." This item can no longer be re-stacked. Similarly, anything that I craft anew is not stackable. Examples of this would be a mine cart, boat, iron helmet, etc. Things that normally stack - planks, torches, ore, etc. - seem unaffected. (I say "seem" because I set the stack limit in SI to 64 for everything.)
-
View User Profile
-
Send Message
Posted Jan 1, 2013@atypicaluser
I have heard that there are issues with 1.4.6, but that shouldn't prevent it from working completely. I'll be looking into bugs this week and hopefully get a new version out this weekend.
What version of StackableItems were you using before updating? If you could send me your options.yml file as well, I might be able to see if something is messed up.
-
View User Profile
-
Send Message
Posted Jan 1, 2013I upgraded from 1.3.2 to 1.4.6 last weekend. Everything was fine in 1.3.2; StackableItems is simply not working for me in 1.4.6 I turned on debug and got no additional information. I get no errors; things just won't stack.
Here's what I got server-side ...
Here's what I have client-side ...
Here's the relevant snip from my server log:
-
View User Profile
-
Send Message
Posted Dec 29, 2012please update and fix the bug~
youtube video
-
View User Profile
-
Send Message
Posted Dec 24, 2012i have had reports of the this plugin not playing nice with the new enchanted books, enchanted book rather they are the same enchant or different get stacked together and all the books all get re-named to a single book. and only one of the stacked books will keep the enchant and the rest become normal books.
-
View User Profile
-
Send Message
Posted Dec 24, 2012@nurwin22
It should work fine with Vault, are you getting any errors on the console?
-
View User Profile
-
Send Message
Posted Dec 23, 2012This plugin is awesome! I'm using it on a CB-1.4.5-R0.2 beta server, and it works flawlessly... until I throw Vault in the plugins folder and start up the server... is this plugin compatible with Vault? From what I could see I don't believe it is, and I really need it to be. Would you be able to make this compatible with vault? Thanks for your time!
-
View User Profile
-
Send Message
Posted Dec 22, 2012@Zilacon
@confuser
These are both strange, I'm wondering if 1.4.6 changed how picking up items works. I'll see if I get a chance before the holidays to test this, but it likely won't happen until after I get back as I'm not really set up for development on my laptop.
It's looking like I'm going to be focusing on bugs pretty heavily though when I do get back.
-
View User Profile
-
Send Message
Posted Dec 22, 2012Getting item dupes with this in 1.4.6, only appears to occur for items i'm doing stuff with in the PlayerPickupItemEvent. Previous craftbukkit had no such problem. For example, I run a delayed (by event.getItem().getPickupDelay() + 5) sync task when a player picks up wheat to turn it automatically into bread if they have 3 of them. Throwing the wheat from their inventory and picking it up again results in 2 wheats, rather than one. Removing this plugin gets rid of the duping problem.
-
View User Profile
-
Send Message
Posted Dec 22, 2012@haveric
Getting this error:
Ill start reading your reply its huge XD
-
View User Profile
-
Send Message
Posted Dec 20, 2012@Zilacon
"Yes i used the group file, and no there is no reported errors for any plugin on my server." This works fine on my end so I'm not sure what's going on there. To help debug some of this, can you zip up your plugins folder and include the CB version you are using so that I can test these easier? It would be a great help, PM if you don't want to share it here.
"I also found another compatibility bug with stackables, its making item duping possibilities everywhere on my server and conflicting with DiabloDrops a custom loot plugin. I spoke with Death_Marine and he said its because your plugin allows stacks where it shouldn't and id have to talk to you about fixing it." Item duping should not be possible with my plugin alone and I don't allow stacks anywhere that they can't normally go (at least I don't think so), I just increase the amount that they can stack to. I'm not sure how DiableDrops is handling items, so until I see it in action, it's hard to tell here.
"I had to disable anvils because it was causing people to be able to duplicate diablodrops items upon repair, when repaired it would give a stack of 2 instead of just 1." I'm not doing much in anvils to begin with, can you make sure this isn't happening with just DiabloDrops (same goes for these other issues that occur with DiabloDrops)?
"Also you can set your boots to a stacked item and whenever you throw the item from your boots slot out it duplicates the item in hand." The latest version of StackableItems shouldn't let you put stacks of armor into armor slots. What version are you using? This sounds more like an issue with DiabloDrops or a combination of using two plugins that affect inventory. I won't know until I get a chance to test it.
"And finally it also duplicates items upon death (this is rare but it has happened 4 times) everything you are wearing or in your item bar gets duplicated once (stacks of 2)." Assuming that DiabloDrops only deals with creating custom items that drop on the ground, I don't see how this would be possible, unless it is also handling a pickup event, which would not be compatible with StackableItems. Also the fact that it happens rarely doesn't help much, but if you can find a way to replicate it, that would help a lot.
"Also your plugin allows max stacks to be used on beacons and when you choose which power up you want it takes the whole stack a fix of this would be nice or disallow beacon stacks period." You must have some other plugin that is causing issues other than DiabloDrops as I can't put more than 1 item into a beacon (although the option Use_Stack_Amounts_In_Beacon set to true should allow you to, it doesn't appear to be working right now, which is probably a good thing anyway)
"The stacks do not work in furnaces item outcomes (the finished product) it stops at 64 even if the stack on the bottom and top are both 120." If you really want this to work, there is a hacky option called Furnace_Amount that you can set what furnaces should cook up to. Read about it's hackiness in the options page, it's a limitation of minecraft/bukkit so it won't look right, but will still function.
"The stacks do not work in personal crafting window, it puts 64 stack and 56 stack in the window." Check the options page listed above, there are options for setting whether stack amounts work in different containers.
"The stacks on brewing stations is bugged as it allows you to use 1 nether wart for 360 water bottles and it makes all of them. Would be nice if this exploit can be fixed to make it so you need 120 per water bottle stack." I made it so you can't stack items in brewing stands in a previous version, this makes my really think you aren't using the latest version.
From several of these, I can only assume you are running an old version of StackableItems, which if is true, you need to update to the latest. If not, then you have some other plugins that are conflicting and I'll need the zip of your plugins as mentioned above.
"5 days and not even a reply..." To be fair, this is a huge post and it takes quite a while to reply properly. In the future, please use the github issue tracker to post individual bugs, as it makes it much easier to keep track of them there and will likely get my attention quicker.
"RegalOwl fixed your plugin's bug on HyperConomy by copying your chest shift + click event and making it on his plugin a higher priority..." I'll look into, I might be able to change the priority on mine to make his work without my code. I rarely deal with priorities though as there are usually better ways to deal with problems, but it could be a quick fix.
"I wish you would try to fix your plugin cause 5 days time all these issues should be fixed by now, authors i have direct contact with take minutes to fix bugs like these :-/" You know.. I have a job.. and other things that I do besides code. If I was doing this as a full time job, I would have no problem fixing bugs sooner, but I do it in my spare time, which takes away from time to do everything else I could be doing. Also, saying you could have fixed all these bugs in X amount of time is futile. Bugs are very unpredictable as to how long they take, even more so when dealing with other plugins that are conflicting. Even if I had had the time to work on them this week, I likely would not have much fixed yet, and with the holiday coming up, it's hard to predict how much time I might work on plugins. On that note though, my code is completely open source and appreciate any help that is offered.
TLDR: Pretty sure you need to update StackableItems. That or another plugin is conflicting pretty heavily. Send me your plugins folder and I'll see what I can find out.
-
View User Profile
-
Send Message
Posted Dec 20, 2012@Zilacon
First of all, sorry for not replying sooner, I am usually quicker to responding to these. There is a lot of information in your comment that it would be hard to just say 'sure, I'll fix all of those'.
The furnace and crafting window issues are intentional, check out the options page.
Depending on how DiabloDrops actually handles its custom items, there may not be anything I can do there, but I'll certainly look into it.
I'll do a more thorough reply tonight after work.
-
View User Profile
-
Send Message
Posted Dec 20, 20125 days and not even a reply...
RegalOwl fixed your plugin's bug on HyperConomy by copying your chest shift + click event and making it on his plugin a higher priority...
I wish you would try to fix your plugin cause 5 days time all these issues should be fixed by now, authors i have direct contact with take minutes to fix bugs like these :-/
-
View User Profile
-
Send Message
Posted Dec 15, 2012@haveric
Yes i used the group file, and no there is no reported errors for any plugin on my server.
I also found another compatibility bug with stackables, its making item duping possibilities everywhere on my server and conflicting with DiabloDrops a custom loot plugin. I spoke with Death_Marine and he said its because your plugin allows stacks where it shouldn't and id have to talk to you about fixing it.
I had to disable anvils because it was causing people to be able to duplicate diablodrops items upon repair, when repaired it would give a stack of 2 instead of just 1.
Also you can set your boots to a stacked item and whenever you throw the item from your boots slot out it duplicates the item in hand.
And finally it also duplicates items upon death (this is rare but it has happened 4 times) everything you are wearing or in your item bar gets duplicated once (stacks of 2).
Also your plugin allows max stacks to be used on beacons and when you choose which power up you want it takes the whole stack a fix of this would be nice or disallow beacon stacks period.
The stacks do not work in furnaces item outcomes (the finished product) it stops at 64 even if the stack on the bottom and top are both 120.
The stacks do not work in personal crafting window, it puts 64 stack and 56 stack in the window.
The stacks on brewing stations is bugged as it allows you to use 1 nether wart for 360 water bottles and it makes all of them. Would be nice if this exploit can be fixed to make it so you need 120 per water bottle stack.
-
View User Profile
-
Send Message
Posted Dec 15, 2012@Zilacon
I honestly haven't had a chance to look at hyperconomy yet.
Did you add the groups file that I linked you in the StackableItems folder? If so, you may have other issues. Are there any errors coming across the server log?
-
View User Profile
-
Send Message
Posted Dec 15, 2012@haveric
Any luck finding the problem with hyperconomy?
And that Armor/Tools doesnt work for me it still stacks.
-
View User Profile
-
Send Message
Posted Dec 15, 2012@haveric
Sorry for the late reply I've been out for awhile with RL. The main one that got our users concerned is "MobCatcher" which is storing mob data such as armor, weapons, health etc. The other one that was going a wee wonky was Custom Potions. To be honest though MobCatcher is the only one that causes too much of an issue as it is the base way players open shops on our server (They have to capture villagers and enslave them to do their trading lol).
Anyhow thanks for the reply, Ambe
-
View User Profile
-
Send Message
Posted Dec 13, 2012@haveric
Alright gonna have to give my server a warning for a few days before i do that :P
Let me know when you find out the problem with hyperconomy because i cant use the chest shops until that's fixed.
-
View User Profile
-
Send Message
Posted Dec 13, 2012@Zilacon
You can either add them each manually and set them to -1 or add this groups file to the StackableItems folder and then set Armor and Tools to -1:
-
View User Profile
-
Send Message
Posted Dec 13, 2012@haveric
Axes, Swords, Hoes, Pickaxes, Bows, Armor, etc. I wanted everything else to stack but those.