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 Dec 13, 2012@Zilacon
The options page has answers to the first two: http://dev.bukkit.org/server-mods/stackableitems/pages/options/
What do you mean by gear? Armor and weapons? Armor slots? Something else entirely?
-
View User Profile
-
Send Message
Posted Dec 13, 2012@haveric
Thanks, also any way to make furnaces smelt items in stacks? Cause furnaces stop at 64 even though theres a 120 stack in there.
Also private inventory crafting wont allow stacks. Brewing Stations also do not allow stacks still.
And is there a way to prevent gear from stacking?
-
View User Profile
-
Send Message
Posted Dec 13, 2012@Zilacon
I will take a look and see if there is anything I can do.
-
View User Profile
-
Send Message
Posted Dec 13, 2012@haveric
Your plugin is conflicting with HyperConomy it is allowing people to shift + click to take items out of chest shops for free. Please fix this!
-
View User Profile
-
Send Message
Posted Dec 7, 2012@ambedrake
What plugin are you using that I can test against? Also, does the other plugin try to prevent stacking as well? If so, try using -1 to have StackableItems ignore it.
-
View User Profile
-
Send Message
Posted Dec 7, 2012Hey mate, we just ran into an interesting cross plugin interaction that you may want to know about. We have a couple plugins that store special added data to certain items, such as special potions and mob spawn eggs, as such we know since the data is not natural to the game having them stack is a bad idea as it would intuitively remove that extra data, so we set the stacking to 1 to keep that from happening. What we found is if you ATTEMPT to stack the item, though they wont technically stack at the end, it will reset both items to their base item with out the extra data.
This leads me to believe that somewhere it's actually stacking them, realizing after the fact then undoing the function. If there is some way to block the stacking before the attempt to try and preserve data from other mods it would be a nice way to keep this plugin and others compatible.
Anyways, just some experiences from our server we thought you may like to know about ^_^
Cheers, Ambedrake
-
View User Profile
-
Send Message
Posted Nov 29, 2012@HammerfeIl
I'll make sure to handle that for the next version.
@Honest_Routuan
Interesting. It would seem that I need to only allow the max amount when dropping items into the inventory. I'll see what I can do.
-
View User Profile
-
Send Message
Posted Nov 29, 2012i find a bug~
Your text to link here...
-
View User Profile
-
Send Message
Posted Nov 26, 2012Hey I'm getting An error. I'll list it:
2012-11-26 18:52:49 [SEVERE] Could not pass event InventoryClickEvent to StackableItems v0.9.0.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:341) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:1298) at net.minecraft.server.Packet107SetCreativeSlot.handle(SourceFile:21) at net.minecraft.server.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:113) at net.minecraft.server.ServerConnection.b(SourceFile:39) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.r(MinecraftServer.java:595) at net.minecraft.server.DedicatedServer.r(DedicatedServer.java:222) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:493) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:426) at net.minecraft.server.ThreadServerApplication.run(SourceFile:856) Caused by: java.lang.UnsupportedOperationException: SuperPerms no group permissions. at net.milkbowl.vault.permission.plugins.Permission_SuperPerms.getPrimaryGroup(Permission_SuperPerms.java:96) at net.milkbowl.vault.permission.Permission.getPrimaryGroup(Permission.java:646) at haveric.stackableItems.Perms.getPrimaryGroup(Perms.java:55) at haveric.stackableItems.SIItems.getItemMax(SIItems.java:201) at haveric.stackableItems.InventoryUtil.getInventoryMax(InventoryUtil.java:316) at haveric.stackableItems.SIPlayerListener.inventoryClick(SIPlayerListener.java:522) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:339) ... 14 more
This error occurs when the plugin calls for vault group system using Perms.getPrimaryGroup(Player), it throws an exception. One example is in SIItems at line 201. If you can make it so the plugin catches this UnsupportedOperationException it shouldn't throw an error.
-
View User Profile
-
Send Message
Posted Nov 22, 2012@rellac
I'm assuming you are using the latest version (0.9.0.1). I'm also assuming you are running CraftBukkit 1.4.2+. If either of those aren't the case, let me know.
Virtual Items should be set in options.yml, not defaultItems and should be defaulted to false anyway.
All items max is no longer used. It has been replaced with min and max. See the configurations page for more info.
371: 100 should work fine to allow stacking gold nuggets up to 100. If that isn't working currently, I would assume it is because it isn't expecting a boolean value that virtual items has. (ie. Remove Virtual Items line from defaultItems)
-
View User Profile
-
Send Message
Posted Nov 22, 2012I have defaultitems.yml set to:
Virtual Items: false
All items Max: -1
371: 100
however it doesn't seem to do anything.
-
View User Profile
-
Send Message
Posted Nov 21, 2012@Faldonboy
That's good to hear, let me know if you have any other issues.
-
View User Profile
-
Send Message
Posted Nov 21, 2012@haveric
It appears that 1.4.5 fixed the problem. I haven't seen the error since updating to it the other night.
-
View User Profile
-
Send Message
Posted Nov 19, 2012@Faldonboy
I don't need worlds. I'm mainly looking for plugins and settings.
-
View User Profile
-
Send Message
Posted Nov 19, 2012@haveric
Thats a huge zip file haha, do you just want the Craftbukkit jar and the plugins folder or do you want the worlds too? I'll try and replicate in the meantime.
I have figured out that it only spams it when the server has 20+ people on and its more random with less people so its something that people are frequently doing.
Again, my biggest guess would be recipemanager since this used to be incompatible with it but I tested that, my second guesses are anything that use a fake/virtual inventory (Shopkeepers, CitiTrader) but those tested out fine too. In my head so many plugins affect an inventory in some way or another either by placing or taking items out forcefully or editing their nbt tags etc. This error didn't start until 1.4.4 though and we haven't added new plugins since updating
-
View User Profile
-
Send Message
Posted Nov 19, 2012@Faldonboy
I haven't been able to replicate that error as of yet and it doesn't really give me anything to go on besides inventory click. If you could figure out how to replicate this, it would greatly help. Otherwise, if you are willing to, could you zip up your entire server and send it to me so that I can test with your exact setup?
-
View User Profile
-
Send Message
Posted Nov 19, 2012@haveric
Hmm, I'm not entirely sure which ones deal with inventories. If I had to guess
CraftbookMechanisms(custom crafting - we have it disabled though)
CustomPotions(edits existing potions in players inventory to give them custom effects) CitiTrader(Citizens2 add-on for player shops)
S86 Powers(Just taking a guess on this one, it calls on all sorts of events and uses minor packet editing)
RecipeManager(This was the big one that I instantly went to, SI and RM have worked together since 1.4 though and even after taking it out the errors continued)
-
View User Profile
-
Send Message
Posted Nov 19, 2012@Faldonboy
Alright, hopefully it'll be something I can easily replicate then. Can you provide a list of plugins you are using that deal with inventory in any way in case there is a conflict so that I can check against them?
-
View User Profile
-
Send Message
Posted Nov 19, 2012@haveric
Out of the 300+ times I've seen it now its never had anything past that line.
-
View User Profile
-
Send Message
Posted Nov 19, 2012@Faldonboy
Does the InventoryClickEvent error ever have anything after the Caused by java.lang.ArrayIndexOutOfBoundsException? If not this could be tricky to determine the cause. I'll take a look tonight hopefully and see if I can find anything.