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:
@haveric
I've launched a locale server (Spigot 1.9.2) and added Stackable items as the sole plugin. I'm unable to replicate this as well, so I'm willing to believe that it is actually another plugin, interfering with yours. So, I apologise for bothering you about it.
After attempting this with just your plugin, I slowly matched up the locale server's plugins, with the plugins on the affected server; one at a time. Once again, I was unable to replicate the issue. So, I'm rather baffled, honestly.
Thank you for being patient with me.
@Quavelen
I have been unable to replicate the minecart duplication. I'll try to test the death duplication, but I doubt either of these are coming from StackableItems as those are different mechanics than StackableItems handles.
If you are still experiencing this issue with the latest Bukkit/Spigot server, please create a ticket with as many details as you can. Also, please test this issue with only StackableItems running to confirm there are no plugin conflicts.
@haveric
Once more, I've another comment about duplication. Quote from my friend, who runs the server:
aegisjester
Posted 1 hour ago
''The minecarts are set to stack to 8, bucket types to 16. I'm not sure what is causing the duplication, but it happens when dropping them (death) I think. If I had to guess, it would be something to do with the 2nd hand slot interfering with whatever he uses to stack items.''
@haveric
When you remove a MineCart from the track, it would drop two instead of one. Also, the max stack was 8.
@Quavelen
What do you have minecarts set to? What are you doing specifically that allows duplication?
@haveric
I would just like to post here, saying that there is currently a duplication glitch with the 1.9 release (StackableItems 1.0.5) of this plugin; specifically with Minecarts. Is there any possibility of you looking into fixing this? Also, if it just happens to be a conflict with another plugin, this is our current plugin list:
@TheOneTwelfth
StackableItems is probably fighting the event priority with ChestCommands, making them incompatible. It looks like both are using EventPriority.HIGHEST. If ChestCommands were to change theirs to anything below HIGHEST, it would potentially make it compatible.
@TheBlackBeltPanda
Unfortunately, no. There'd have to be a pretty serious rewrite to handle this properly. Maybe someday though...
There is a problem with ChestCommands (and all other inventories, which you are not supposed to take items from).
When a player presses a number key, hovering the mouse over an item in such an inventory, and has any item in appropriate slot of their inventory (for example, they press 4 key and they have an item in forth slot), the item will be moved to their inventory (although it is not supposed to).
This issue only seems to be happening when StackableItems is running.
Is there a way to limit the stack size of items with a specific name? Would be useful for limiting custom items from other plugins.
Great plugin, thanks :)
@Tck13
I started to look into the Written Books, but the event was not firing when I was testing it. I'll have to revisit it in the future.
@haveric
I see you have made a update for 1.9 -> I also see you have fixed the "bug" with the rabbitstew's.
But I also see that the problem with the book and quills -> written books at this moment not is fixed. I find that unfortunate, but hopefully you solve the one these days. Indeed, it is best to do, that you are at the time of writing & signen there for minecraft but one book is on stacks not allow NBT come on stand like that happen to accept one and the other separately or stack - 1 dropping into the inventory. (Remember that inventory at a time could also be full drop them on the ground at the player).
@haveric
Okey -> Sorry, I use the plugin on a server so I have a little bit of priority that it is coming to fixed as soon as possible.
I make many plugins self but you are one of the few plugins I have downloaded and be happy with it! (a llitle "bug" but you are fixing it =) )
@Tck13
You're correct. I worked on updating over the weekend, but I haven't had a chance to do full testing because I've been busy with other projects. It'll be done when it's done. Please be patient.
@haveric
It weekend is past so...
@Tck13
I'll look into these when updating for 1.9 this weekend.
We're having issues with StackableItems on 1.9, bug report here: https://github.com/haveric/StackableItems/issues/117
I have found 2 irritated bugs;
1) is with rabbit-stew -> When you stack them and eat 1 all the other change also to bowl :/
2) is with book and quill -> When you stack them and sign 1 book all other book and quills also been signed.
If it is in your eyes not a bug then I would like a feature to change this for me.
You were so right! I got the bug on the wrong place! It wasnt this one <3 sorry! Ty for the help! I found my issue..
@shaliquinn
This plugin doesn't affect recipes, so I'm fairly confident it isn't happening because of it. Are you able to replicate this issue with only StackableItems running? Do you get any errors in the console? What version of Bukkit/Spigot are you using?