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:
@HavenOfKairos
I just pushed out an update (0.7.5). Let me know what problems are the biggest issues and I'll see what I can do.
Great plugin,I will be definitely using this when you fix some problems you're encountering.
@deleted_6947223
I'm not sure if I should do test versions or not, but I'll consider it. My biggest concern with that is that I would be splitting the users between two versions of the plugin, but maybe I'll try it out and see what happens.
@haveric
I wrote then command, becuase I was unable to find it in the Todo/Ideas list
But then I saw it after reading it 3 more times :$.
Just take your time on updating the plugin ;D
Maybe could you release test-versions?
@deleted_6947223
Assuming this was your original comment: "When my inventory is full it doesn't pickup more... Example: I changed the Ender Pearl stack to 32, but when my inventory is full and I got 16 Ender Pearls in my inventory, they don't stack up to 32..."
I do have this listed as an issue above which I'm assuming is why you edited this. I would like to comment on it though.
There are two problems involved with this and they could be tricky to fix. The first is what you mentioned above where you can no longer pick up items with higher values than default. This is due to the fact that no Pickup event is called for those items once it thinks that the inventory is full.
The second problem is partially due to the way I have it implemented, but when picking up part of a stack that will fill up your inventory, the rest of the stack would be deleted.
I will see what I can come up with and definitely try to fix these if possible, as with all other strange bugs that occur, which is a lot I am finding out. I never expected this many issues to pop up like they did, but I'm trying to fix as much as possible with the limited time I have for now. In a couple months, I'll be graduating and have more time to focus on plugins.
I'm also slowing down the updates slightly so that I can fix more things per update as well as allow me a bit more testing before I push them out.
Nice Plugin! :D
@haveric
thx !
@Damimad
It should create multiple files, a config.yml, defaultItems.yml, defaultTools.txt, and customTools.txt (I think that's all of them offhand). If you are upgrading from an older version (0.7 or less), you will need to delete the old config files.
Other than that, the only thing I could think that would cause that would be a corrupt file. Try redownloading the plugin and try again. If you are still having issues, let me know.
IT's not creating a config file. :[
@Damimad
This was actually a bug with bukkit that was fixed about a week and a half ago. As long as you are running a newer build, it will work fine.
A month or so ago, shot arrows would cause them to infinitely gain into your inventory. Non-stop. Is this fixed?
@nicquehen
I'm looking into it. I know they were working at some point, so I'll see what's up and try to get that working.
Edit: Potions do work. The problem appears to be in your config file. The first line is missing a semicolon. It should be "All items Max: -1" Also, if you want all potions to work, you should only need the "373: 64" line with that.
Hello,
I not able to stack potion :
My config : http://pastebin.com/djun4XYx
I have a user with stackableitems.stack node (and i have vault installed) is not a permission probleme because op not able to do too. (pex + last recommended build cb for 1.2.5)
don't work :(
@Wannab007
That is different than virtual stacks and it should be working for all items. Virtual items is partially enabled and allows you to stack different versions of a tool. For example, a Gold Pickaxe with 10 damage and a Gold Pickaxe with no damage and an Enchantment would be able to be stacked.
Virtual Items are enabled in the config.yml and default to false since they are not fully implemented and can cause problems.
If you find that there are any items that you do lose, or do not split correctly, let me know.
Have you finished up the work on the virtual stacks so that consuming an item will not destroy all in the stack? I remember asking you about it a few weeks ago, and you were working on it then.
@thatoneguy009
It should, but I have not extensively tested it with all potions. Try it on a test server if you want to be sure. Also, let me know if there are any problems.
Does this work for potions? Potions of all different times and effects? I wanted to be sure before I installed it xD
@haveric
No, it isnt a problem at all xDD My server is a survival one, just letting you know ;)
@agubelu
Is this a problem? Creative should have infinite stacks and not need to stack any items.
@haveric
I've realized that this only happens on Creative