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 30, 2013@Zilacon
I haven't been able to replicate that error on a bukkit or spigot server. Could you provide a zip of your plugins folder so that I could test against your current plugins and possibly check for plugin conflicts?
-
View User Profile
-
Send Message
Posted Apr 30, 2013@haveric
EVERY item pretty much... It errors with rotten flesh to coal ore, literally any item picked up in a stack i believe gives this error.
I run spigot so the items are merged into a stack in a radius of 5 i don't think that has anything to do with it but i cant even see my console its just this error spammed non stop.
-
View User Profile
-
Send Message
Posted Apr 28, 2013@Zilacon
What item are you picking up when you get this error?
-
View User Profile
-
Send Message
Posted Apr 26, 2013@haveric
Getting this error SPAMMED like every 3 seconds on my console:
-
View User Profile
-
Send Message
Posted Apr 21, 2013@CraftySubZero
The plan is to rework the configuration files so that everything is in one file. This would then allow for each type of inventory to be handled without creating a new file for each one as the chests are currently handled. See this ticket for an idea of what I'm talking about: https://github.com/haveric/StackableItems/issues/45
For now though, you can always use the player stack amounts if you have the "Use_Stacks" set to true for enderchests in the options.yml file.
-
View User Profile
-
Send Message
Posted Apr 21, 2013Could we get stack limits for enderchests as well please? Just like we do with normal chests :) This would be great!
-
View User Profile
-
Send Message
Posted Apr 21, 2013@Faldonboy
This has always been the case, I don't have any control over stacks combining on the ground currently.
-
View User Profile
-
Send Message
Posted Apr 20, 2013So something I didn't notice in the test version you posted(also present in 0.9.3.2) is that if you throw two items with different data values(350:1 and 350:2 for example) on the ground vanilla MC takes over and combines to two into one stack(first item thrown down becomes the new stack)
-
View User Profile
-
Send Message
Posted Apr 14, 2013@TeeePeee
First of all, stop. Do not include other plugins in your own plugin. Dependencies are there for a reason. If I update my code, you now have to get that code again and put it in yours, rather than having people just update my plugin. I'm basically losing all control over "your" version of my code so if something goes wrong, I can't support it.
Second, why? What advantage does you copying my source into your plugin help with? Do you just need access to something in my plugin? If so, ask for me to setup an API so you can get that information.
Including other plugins' source code is the wrong way to go. I DO NOT SUPPORT THIS AT ALL and request that whatever you are trying to do, you go about it a different way, such as asking for support.
Speaking of which, what are you trying to do and what plugin is this for?
-
View User Profile
-
Send Message
Posted Apr 14, 2013Do you mind if I copy your source code into my plugin, with you retaining full ownership over the stackable items? Reason being my plugin is becoming quite heavy with dependencies and if I could compress two plugins into one, it would be excellent. PM me so I don't miss your reply. Thanks.
-
View User Profile
-
Send Message
Posted Apr 14, 2013@OriginalMadman
The multiclicking is actually because of the new dragging feature in Minecraft. If you keep your cursor still when clicking, it works fine, otherwise Minecraft thinks you are dragging, even in the same slot and takes over. Bukkit doesn't have this implemented yet so I can't do anything about it yet.
What do you mean by not close to regular MC stack handling?
I've been hearing that InvTweaks doesn't work since I started with this plugin. (See github issue here) It and any other client side mod has no way of knowing about StackableItems' stack amounts. Perhaps something with plugin channels and a nice API on my end, but the plugin channels would still require each mod to be looking for it and handle it on their end. I've never used plugin channels and never worked on a client side mod, so I have no idea how complicated this would be for them.
The other option would be for me to replicate the functionality of InventoryTweaks in StackableItems. If that interests you, feel free to add a ticket on github with a clearly documented list of what each type of sorting should be doing.
For now though, mods or even other plugins that deal with anything in the inventory are not going to play nice with StackableItems. That is an unfortunate result of trying to override everything to make stacks different. I am always trying to support what I can though and have even recently gotten support for RecipeManager in the dev versions.
-
View User Profile
-
Send Message
Posted Apr 14, 2013This plugin is great, but a little buggy on stacking (needs too many multiclicking, not close to regular MC stack handling) - and also prevents chest sorting and proper handling by such popular mods as InvTweaks and Convenient Inventory. It would be great if they can get to work together.
-
View User Profile
-
Send Message
Posted Apr 12, 2013@haveric
It seems to be working, the first time I tested it though the items did stack but when I picked them up out of my inventory they separated.
-
View User Profile
-
Send Message
Posted Apr 12, 2013@Faldonboy
I'm pretty sure I have everything working correctly now, please try out the test version: https://github.com/haveric/StackableItems/tree/master/downloads/dev and let me know if there are any issues. Also note that anything set to -1 in the config files should no longer be affected by StackableItems.
-
View User Profile
-
Send Message
Posted Apr 12, 2013@Faldonboy
That's what I get for trying to let vanilla do some of the stacking. What this means and what I didn't realize was that vanilla doesn't handle data values correctly for items that don't normally have any data values beyond 0.
I have an idea that can make it work while still keeping some of the reduced flashing of using vanilla stacking. I'll see what I can do.
Thanks,
Haveric
-
View User Profile
-
Send Message
Posted Apr 12, 2013V 0.9.3.1 no longer prevents two items of the same type(with different data values) from stacking on each other like it used to. This is what I use StackableItems for because my server heavily depends on items using data values(I use 200 data values for fish alone.)
Ex: Two raw fish(349:5 and 349:6) throw one on the ground and it will stack onto the other one instead of being treated like a separate item.
Using CB Build #2735(Beta Build)
EDIT: Just tested on the same bukkit build using SI 0.9.2 and the problem isn't there, 0.9.3.1 fixed a bad duplication bug for me though so I don't want to downgrade it.
EDIT 2: Another problem this is causing, this allows one to stack items past their max stack size, all fish on my server are set to a stack size of 20 but if you drop a fish with a different data value on the ground and pick it up it stacks with the first stack of raw fish it can find even if its at its stack limit already.
-
View User Profile
-
Send Message
Posted Apr 11, 2013@haveric
gotcha, thanks for the reply... i'll check with the mod creator.
-
View User Profile
-
Send Message
Posted Apr 10, 2013@marubal21
I don't know of a way to determine if an inventory is a backpack or any other custom inventory unfortunately. If anyone can show me how, I'd love to implement this.
The items being lost if they are in a stack greater than the stack amount should be something that the modder can fix. (Don't ask me how though, I have never dealt with the modding side yet) I know there are similar issues currently with Hoppers and Anvils, but I can at least detect them correctly as they are part of the bukkit api and prevent more than 64 from going into them.
-
View User Profile
-
Send Message
Posted Apr 10, 2013I understand this might be out of the scope, but its worth a try. I recently added the mod Backpacks to my server. And i noticed that when using a backpack i could only stack items within the backpack to their default stacking amounts, regardless of Stackableitems max and mins set on the server. i also noticed that if you shift+click a stack that is more then default amount from your inventory into the backpack, that stack gets reduced to the max default stack amount, and rest is lost. Is it possible for you to ad a support option for this mod?
Thanks in advance.
-
View User Profile
-
Send Message
Posted Apr 9, 2013That was quick; you rock. Regrettably, I'm having unrelated technical difficulties with my server and can't verify the fix right now.