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:
@Spodi2290
That is really strange. I'm not sure why my plugin would be doing that so I will definitely be looking into it.
Thanks for letting me know.
@haveric
ah maybe i wasnt clear enough.
What happens without StackableItems: When i click the sort button from InventoryTweaks it sorts all items in a chest/inventory by id. Split items will be stacked (if they can be stacked by default).
What happens with StackableItems: On click it will try to sort the items. You see the result for just a moment but it will jump back to how it was before. No matter if there are items defined in you plugin or not.
It looks like your plugin doest like it when you move more then one item at a time and resets the sorting.
EDIT: It sometimes actually sort something if you keep smashing the sort button very fast multiple times...
@Nire_Inicana
As far as I can tell, this is not possible without Spout. I will look into it though and see if I can get a workaround.
Can you make it so it make the pickup sounds when you pick up items...
@Spodi2290
Unfortunately there is no easy way to fix this. Items are given a max amount and that is most likely what InventoryTweaks is going by. I'm overriding that amount when you stack them as there is no way to adjust that max amount for others to see. Perhaps an API for other plugins to hook into would work, but that won't happen for a while.
Also, what specifically breaks in InventoryTweaks' sort? Is it only using larger than normal amounts? I've never used it so please explain in detail.
Thanks for the feedback.
Its not really a bug or something, but this plugin will break the sort function of the client mod "InventoryTweaks" (sorting the items visually and then goes back how it was immediately.) Would be nice if this plugin will support this. If not... still ok.
hello,
don't worry, sometimes those things happens ;)
@ThoLav
Sorry about that, it is fixed in 0.6.4 I'm so used to seeing these types of messages that I occasionally forget to remove them before deploying. I'll try to be more careful though.
Hello,
great plugin, but with latest version i get InGame the following messages on every left or right click, on console is no output.
Alright then,this is a great plugin now that I upgraded to a higher version of Bukkit. Another plugin to add to my love list,great to have. Thanks!
@EpykPhailMC
Ah of course, the InventoryClickEvent was only just recently added to bukkit. (a week ago according to github) You will need a newer version to run it. Tried to find the one they added it in, but it doesn't show changes all of a sudden, not sure why.
Thanks though as I found a bug when picking up items while testing this. It would seem multiple stacks screws up the pickup process.
The file looks like this:
Also also tried this but it too did not work.
(Testing the plugin on dirt)
My craftbukkit version: 1930
I have also gotten this in my prompt.
@S3thc0n
I will definitely be adding permissions (most likely Vault). I could even make it so you can define configs for different groups.
It shouldn't take long to implement, I just have to work around classes and my busy schedule.
@EpykPhailMC
How are you surpassing the amount? If you are using a command such as /item or creative, they will probably still use the default max settings. I'd love to be able to hook into them, but not yet sure if it's possible.
Otherwise, if you are just picking up the items naturally, there could be something wrong. If this is the case, post your config file and version of craftbukkit so I may test it.
Also, I'm not sure what's confusing about the config file, I made it as simple as it can be. You can either use the Material name such as WOOL, or the id such as 35. You also have the option to use the data value, such as WOOL # to pick a specific color of wool in this case. If you need any help setting it up the way you want, let me know.
Ni do not,the plugin does not seem to be working. I set max stack for all to 10 but yet I am still able to surpass that amount. I have no op or permissions for any commands. Is it because I am using the latest version for an older version of bukkit?
Wait wait,I think I got it....
This is fantastic,but configuring the file is still very confusing for me. :(
Nice plugin, how about permissions?
@TheFluffey
I just added support for durability. See the example configuration above to see how to use it. Let me know if this works for you as I don't use spout so I'm unable to test custom items.