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 14, 2013@clonecommando101
Sorry for the late reply, If you want a single item to only stack to 1, use the Bukkit Material Name for the item such as:
You just need to add each of the food items this way. Add them to defaultItems.yml and it will affect everyone or see the config section above for specific players/groups.
@RingOfStorms
I'll take a look when I get a chance and update the github issue when I know more. I've got a bit of catching up to do first though.
-
View User Profile
-
Send Message
Posted Jan 14, 2013Some people are having problems with your plugin supporting CraftingPlus properly. If you PM me we can exchange some infos and talk about it to fix it. That way both of our users are happy :)
-
View User Profile
-
Send Message
Posted Jan 11, 2013I was wondering how do I change a stack? Example: I want food to stack in 1s not 64s. Thanks
-
View User Profile
-
Send Message
Posted Jan 10, 2013@XombyCraft
Basic functionality is still working, but there are some bugs with new features/items.
@graysheep189
I couldn't get it to behave well in creative and I am limited by what the client sends so it wouldn't be very effective so it is disabled in creative unfortunately.
-
View User Profile
-
Send Message
Posted Jan 10, 2013Cant seem to get it to work when change to creative mode, any idea how to fix this?
-
View User Profile
-
Send Message
Posted Jan 7, 2013Is this working as is in 1.4.5?
-
View User Profile
-
Send Message
Posted Jan 4, 2013its a new feature that was added in 1.4 or 1.3 i dont know but people dont either know it exists or dont use it..
-
View User Profile
-
Send Message
Posted Jan 4, 2013@atypicaluser
No problem, glad I could help. The plan is to combine everything into one file which will hopefully make things easier to understand, but might also increase the complexity.
-
View User Profile
-
Send Message
Posted Jan 4, 2013@MrMightyGnome
I've never heard of that behavior before so either it is something new in Minecraft or you have another plugin/mod affecting something. I'll take a look and see if I can replicate it.
@funbi11112
If you want items to not stack, just use 1 as the number and they will only 'stack' to 1. If you want to completely disable picking up or crafting an item, use 0.
Ex: would make dirt unstackable and disable tnt.
I'm pretty sure you want the first option.
If you want to do this to all items (or most and then define others individually), set MIN and MAX to 1, and then define others below it.
-
View User Profile
-
Send Message
Posted Jan 4, 2013@atypicaluser
This is done on purpose. Chests have their own config file: chestItems.yml. Other containers might do the same, check out the options page for more info there: http://dev.bukkit.org/server-mods/stackableitems/pages/options/
-
View User Profile
-
Send Message
Posted Jan 4, 2013@atypicaluser
Ah!! Here's a twist I discovered ... Items DO stack but only in my inventory. As soon as I put something in a chest, it's un-stacked according to system defaults. So ... I can carry a single stack of 64 snowballs and single stack of 3 iron helms but as soon as I put them into a chest, the snowballs break into 16-count stacks and the helms break into 1-count stacks.Got it! I had to modify both defaultitems.yml and chestitems.yml. I got my basic functionality back. Thanks for all the help the quick responses!
-
View User Profile
-
Send Message
Posted Jan 3, 2013What would be the settings in order to make the items unstackable?
-
View User Profile
-
Send Message
Posted Jan 3, 2013ok so to replicate the bug, lets just use logs and wood planks. so lets just say... set maximum carry amount of wood planks as 5 and have all of your hotkeys ( number 1- 9 key) empty and have your log in your inventory somewhere else. now go to a crafting table or your 2x2 grid on ur inventory and put ur logs in the table and when you see the wood planks, dont grab it yet, instead press number 1 - 9 (whichever one) and keep pressing the same key over and over, eventually what happens, the wood planks will go into your hotkey slot (whichever number u pressed) but it will exceed over 5 wood planks and keep going. Try this and tell me if it works, also have 64 logs just for testing
-
View User Profile
-
Send Message
Posted Jan 3, 2013@haveric
Ok ... so I shut down the server, made the changes (as you outlined) to defaultitems.yml, and restarted the server. I triple-checked that the file was modified correctly. Still no joy. Could there be something client-side that's preventing SI from working?
-
View User Profile
-
Send Message
Posted Jan 2, 2013ill provide more info tomorrow, today i believe i dont have enough time to describe it fully.. but thank you for the very fast reply :D
-
View User Profile
-
Send Message
Posted Jan 2, 2013@MrMightyGnome
There should be very few messages and they are all used to inform you of something, which ones are you seeing that are bothering you? Also, what specifically is bothering you about them, too many messages or something else?
Can you give me some more detail to the bug you are talking about, I'm not quite sure I understand what you are describing. A specific case in which I can replicate it would be helpful.
In general on fixing bugs, I do know there are bugs, and I will fixing some of them soon. (My plan was to work on some this week). I can't guarantee when I'll get to anything though as I just got back from holiday vacation and have been sick for a week now.
-
View User Profile
-
Send Message
Posted Jan 2, 2013can you add an option to disable the chat saying [StackableItems] *bla bla bla*, i find that quite annoying. id be a nice feature added in the config. thank you! and im pretty sure you are already aware, there are many bugs in this plugin that needs to be fixed and i understand this is a really hard plugin to work on. i found a bug where if you are crafting something (lets say torch and ur number 4 slot is empty) if you keep pressing 4 on the item that you crafted, it exceeds the maximum stackables.
-
View User Profile
-
Send Message
Posted Jan 2, 2013@atypicaluser
If you want everything to stack to 64, you just need MIN set to 64.
This:
should have also worked as setting MAX to 64 would have no affect on any items.
You should only need to use 'si reload', but a full restart can't hurt anything.
Since you said you tried that and it didn't work, I'm not really sure what the problem is, perhaps the file wasn't saved when you did the reload?
-
View User Profile
-
Send Message
Posted Jan 2, 2013@haveric
Still no luck ... :(
Ok ... my [original] defaultitems.yml looks like this:
I tried this:
... and ...
... and ...
None of them worked. I guess I'm just being really daft.
After I changed the defaultitems.yml file, do I need to do a full server stop/start? (I've been doing just an "si reload")
-
View User Profile
-
Send Message
Posted Jan 1, 2013@atypicaluser
Ah, that would be why. The configuration changed for item files in 0.9. You can find more info about it here: http://dev.bukkit.org/server-mods/stackableitems/pages/configurations/
And when I said the options.yml, I actually meant the items files (defaultItems.yml), sorry, but the options file doesn't hurt. Read the configuration page above and let me know if you have any questions converting 'all items max' to 'min' and 'max'. This should fix the basic functionality.