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 Aug 10, 2012I'm giving Blaze Rods with data value 369:1 special features that the regular 369:0 ones don't have. I do not want these 369:1 rods to stack.
I added the line '369 1: 1' to defaultItems.yml, which nicely prevents 369:1 rods from stacking with eachother.
However, when holding a 369:1 rod and picking up 369:0 rods, the latter will stack with the former and result in stacked 369:1 rods, which is exactly what I'm trying to avoid. I can show you a live demonstration if you'd like.
Could you please take sub-values (the :1 part) of data values into account in StackableItems?
I also get the following errors dumped whenever I do /stackableitems: http://pastebin.com/2i467nKk It appears Vault (which I don't have, but should be optional?) is giving trouble, but it may be the OpenInv conflict Meindratheal mentioned... Otherwise nice plugin :)
-
View User Profile
-
Send Message
Posted Aug 10, 2012@Meindratheal
That is interesting. Thanks for letting me know. It will be fixed in the next version.
-
View User Profile
-
Send Message
Posted Aug 10, 2012I get an error with version 0.8.5, as it's main command conflicts with OpenInv's searchinv alias. The solution is to swap the values of Command.cmdMain and Command.cmdMainAlt (so the main one is "stackableitems" and the alt is "si"). I've changed this in my copy, and it now works with no errors.
tl;dr Swap the values for cmdMain and cmdMainAlt to fix command conflict with OpenInv
-
View User Profile
-
Send Message
Posted Aug 9, 2012@hammerklavier
If you want to come up with examples, go ahead, I'm always open to help/suggestions.
Here's a direct link to the the test version: https://github.com/haveric/StackableItems/blob/master/versions/test/StackableItems.jar?raw=true Also, the Downloads is extremely outdated, the latest version is 0.8.5 so I hope you aren't using 0.8.1. I tried using the Downloads in the past, but at the time, it didn't seem to update quick enough so I just throw every file under the versions folder. It also makes it so I never have to change the link at the top pointing to the latest file. I'll try the downloads again, hopefully it will work better.
Also, If you make an edit here that has actual content (not just fixing spelling/grammer, minor things), please use a new post. I don't get email updates when somebody edits things here, but I do for each new post, which means I can respond much quicker.
-
View User Profile
-
Send Message
Posted Aug 9, 2012@BobbySoSlo
StackableItems is in no way affecting what mobs drop so I'm pretty sure this has nothing to do with my plugin. Can you replicate this with only StackableItems or by removing StackableItems? What other plugins are you running?
-
View User Profile
-
Send Message
Posted Aug 9, 2012Sorry but I don't have a github account so I couldn't file this ticket there:
Eggs cease to be dropped by chickens when I increased their stacking ability.
-
View User Profile
-
Send Message
Posted Aug 8, 2012@hammerklavier
It uses the same event, but they do two different things. Simply clicking will put the item on the cursor where shift clicking puts it into the inventory, but since I am using custom stacks, it needs to be cancelled so I can override stack amounts. If I can't find a way to let it handle it normally, I can always give the player the xp directly. I honestly haven't tried out 1.3 enough to know how it works now, but it should be about the same.
-
View User Profile
-
Send Message
Posted Aug 8, 2012@haveric
I'll give it a whirl, thanks. The plugin is quite usable - and packaging that groups.yml will almost certainly really help, BTW, although I do heartily recommend providing examples in the stock config nonetheless - it's just got a minor hurdle or two for new users such as myself. The kind of person who looks at this and goes "but what do I DO?!" is the kind of person who might not know that the included groups.yml actually would have some useful hints, in the form of a huge list of usable names.
I could quickly bang up some examples if you want, that you could throw into the plugin config directly to aid new users if you like. I'd pretty much just put yours in there, headed by descriptive comments, plus add my own example in for potion stacking - I bet I'm not the only one who pretty much wants this plugin just for that. I don't suppose there's a separate item name in groups.yml for splash potions, is there?
As for the furnace XP, I would've assumed shift-clicking the results box would fire the same event as picking up the stack in the results box. If this stuff were consistent, this wouldn't even be a thing. Heh. Oh well. If you have to override more stuff, and especially if it's a hassle, I'll just try to remember to pick up the stack rather than snapping it in to inventory.
Is it possible, actually, that they've updated Bukkit to include/handle that? After all, XP orbs from anything but kills weren't even a thing in 1.2.5, which is the last Bukkit version we got before this dev release we're all on now. Might be a new, ... uh... function or whatever.
Whatever programs do. ;)
EDIT: Ack. How do I download the test version? I feel pretty stupid but I also feel like I've looked at/clicked on everything. Clicking the big friendly "DOWNLOADS" button takes one to the last official release, 0.8.1, which is what I'm running now.
-
View User Profile
-
Send Message
Posted Aug 7, 2012@hammerklavier
I thought I replied to you a couple days ago but apparently I didn't..
Anyway, I've fixed the armor and repairing by letting minecraft handle them normally. (Repairing won't stack items if you have them set higher, but I may fix this down the road, it just requires me to fully override the repair functionality, and that just seems silly).
The furnace xp one should be interesting. Hopefully bukkit will provide some functionality for that, but otherwise I'll try to override it. (I guess just give the player xp when they take items?)
In terms of documentation, I realize that it is not the greatest and will try to improve upon that in the future. Another thing would be that I need to package the groups file here as a default file, which I'm sure would help greatly: https://github.com/haveric/StackableItems/tree/master/versions/latest
Usability is something that is hard for me to judge since I've created everything and know it well so if there are any other issues like this, please let me know.
You may very well find more strange things that either don't quite work or don't work like they are supposed to. If you do, please report them to github so I can fix them.
And finally, I'm holding back a release in order to fix 1.3 bugs and rework a few things. If you (or anyone else) would like to test with the latest, please try the test version here: https://github.com/haveric/StackableItems/tree/master/versions/test and let me know what isn't working.
-
View User Profile
-
Send Message
Posted Aug 7, 2012@TheFluffey
Thanks, there are still plenty of improvements to be made especially with 1.3 now out, but it's getting better with every update.
-
View User Profile
-
Send Message
Posted Aug 5, 2012@haveric
Latest versions shift clicking and management is flawless. Finally working amazingly well.
-
View User Profile
-
Send Message
Posted Aug 5, 2012@haveric
oh, dear I have alot of other plugins on. I'll try it without them. thanks!
-
View User Profile
-
Send Message
Posted Aug 5, 2012@haveric
EDIT: Hey, in case anyone wants to know what I wanted to know (How do I stack potions and mushroom stew?), I figured it out based on the examples provided on the page here. So you can regard this comment as more examples. :D Put this in defaultItems.yml:
373: 64
282: 64
To plugin author: plugin is good and works quite well. Thanks for doing it. However, if I may suggest one thing: Put some commented-out examples directly in config.yml so people can see them while they're trying to edit. Makes it much easier to figure out stuff.
EDIT 2: A shift-clicking bug: Shift-clicking the results box when repairing two armor items together fails; the server reverts the two damaged items back into the crafting box until you left-click it to pick it up. The expected behavior would be for the item to snap from the results box directly into the player's inventory on shift-click.
For that matter, shift-clicking to instantly don a piece of armor in an empty armor slot no longer works with this plugin installed either, it reverts as well. :)
Edit 3: Sorry, the more I play with this plugin the more I notice strange little things. If you shift-click the results out of a furnace, for example if you've smelted some iron ingots, the ingots go to your inventory correctly, but the furnace doesn't throw XP orbs. This is of course a 1.3 update issue, but I figured you should know.
-
View User Profile
-
Send Message
Posted Aug 5, 2012@Flubausterus
I haven't had a chance to test 1.3 yet and I'm assuming that there are enough changes that it won't work. I'll take a look and try to get one out as soon as possible.
Edit: Just tested and it does seem to be working fine for 1.3 so either something isn't set up correctly or there is a conflicting plugin/mod.
Having SNOW_BALL: 64 in defaultItems.yml should work just fine. If only using defaultItems, you shouldn't need to worry about permissions. You also don't need to add anything to config.yml
What other plugins are you using? Which CraftBukkit build are you running? A zip of the plugins/StackableItems folder might also help if there is something not set up correctly.
-
View User Profile
-
Send Message
Posted Aug 4, 2012I can't seem to get this plugin to work on my server. I am using craftbukkit 1.3. would that having anything to do with this? I tried putting SNOW_BALL: 64 in both the config and the defaultitems. no results. also installed vault and added permission stackableitems.stack to all groups (using permissionsbukkit) and still no results. when server loads no errors pop up.
-
View User Profile
-
Send Message
Posted Aug 3, 2012@Manuestaire
Everything that you need should either be on this page or in game. There isn't enough info to fill a wiki with.
For commands, you can use "/stackableitems" or "/si" in game which will then list the couple of commands there are which are simply for reloading the configs and setting/getting values from the configs in game, but it most likely is easier to do this out of the game.
Permissions are explained clearly above. Please go back and read them.
Crafting? I honestly don't know what you are looking for here. Can you explain this some more?
-
View User Profile
-
Send Message
Posted Aug 3, 2012Any wiki or documentation? for info about commands permissions and crafting?
-
View User Profile
-
Send Message
Posted Aug 1, 2012@rex707
It's an experimental feature that will currently cause item loss because it isn't implemented correctly/fully. What it is supposed to do is this: Take two iron swords with different damage/enchantments and stack them. They will then retain their damage/enchantments and you can use them as you would a normal sword. When the first breaks, it will switch to the next right away. You can unstack them by right clicking on an empty slot or right clicking on the stack will split it in half.
It would still require a similar item (two iron swords) but any damage or enchantment would stick with it. An iron sword and a diamond sword would still not stack.
-
View User Profile
-
Send Message
Posted Aug 1, 2012hi, what is virtual items? what does that do? thanks good plugin
-
View User Profile
-
Send Message
Posted Aug 1, 2012@THDigi
Failure chance shouldn't have the same issue as multiple results. You should just be able to cancel the event.