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:
Latest version v0.7.4 is really buggy. When stacking redstone past 64 the stack I was trying to place on top of it disappeared. The only way I could get it to stack past 64 was by dropping some on the floor then picking it up.
Once I made a stack that was 65, no matter what I would always have that amount of redstone in my inventory. I would place 1 redstone in my inv. after having 0 and it would turn into 65....
When is shift-clicking fixed? It annoys me. Great Plugin! Keep working on it!
@agubelu
What are you having problems with stacking? Please explain in more detail because it seems to be working fine on my end.
I think 0.7.4 isn't working properly... Items are not stacking
Great plugin by the way.
@erdrickk
Thanks for the report. I've found and fixed the bug. Uploading a new version shortly.
Horrible bug with this plugin. If you drop an enchanted item and pick it up again it will wipe the enchant.
@ThoLav
Ah, I fixed one but not the other.. I'll take a good look tonight and make sure there aren't any other problems like this before I update it.
Edit: Updated it with the fix. Let me know if there's any other problems.
Hi,
i have a lot of this error in my log files. I'm running:
git-Bukkit-1.2.3-R0.2-96-ge16ae9a-b2124jnks (MC: 1.2.4) StackableItems v0.7.2
@Sk8Sanctified
I haven't had a chance to look at stacks above 64 yet, but I will be soon.
Version 0.7.1 changes the config files around, so you will need to move items from config.yml to defaultItems.yml (I'll mention this in the download)
Edit: NPE fixed. Version 0.7.2 uploading. Use the github link above if you need it right away.
Also, in the future, please post bug reports to the github tracker to keep the comments fairly clean.
@haveric Yes both plugins run fine together, its just the fact of selling things over the default stack limit of 64 is when things get screwy.
With version 0.7.1 I'm getting this error in console. I had the same spout version with SI v0.7 and everything worked fine, now the items that are supposed to stack, don't at all in v0.7.1
21:57:38 [SEVERE] Could not pass event PlayerInteractEvent to StackableItems org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:459) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEven t(CraftEventFactory.java:179) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.j ava:273) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:636) at net.minecraft.server.Packet15Place.handle(SourceFile:39) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java :169) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:7 8) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452) at net.minecraft.server.ThreadServerApplication.run(SourceFile:490) Caused by: java.lang.NullPointerException at haveric.stackableItems.SIPlayerListener.playerClick(SIPlayerListener. java:155) at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:301) ... 13 more
@BlessSonic
As of now, there will be problems with almost any other plugin/mod that affects inventory management. I will definitely try to solve as much as I can, but yes, beware that any items above 64 can be dangerous.
Also note that with this version and most likely the next, there are pretty good possibilities of being able to duplicate, modify, or lose items. (I'll try to fix as much as possible with the next update) Because of this, I'd suggest not using it on a serious roleplaying server if that is a concern until it gets to a more stable state (probably 1.0).
Thumps up! I loved the ould plugin "Stackit" wich broke with 1.2
Thankfully you came up!
PS: I think there will be some problems with multiverse-inventorys if you set the max stackamount over 64.
@Sk8Sanctified
Is it possible? yes.
Is it necessary? maybe. There are new methods in the api that might fix this, but I haven't had time to use them yet, still working on virtual item stacks.
Realshop is causing error spam? Using stacks over the normal amount is dangerous. Therefore, many plugins/mods may not play happily when you do that. For now, I'd suggest lowering the max amount to 64 or warning any players who are doing that about the issue. I will look into it though as I'm not sure why Realshop should be limiting that.
Edit: Looking through RealShop's source right now... It appears to need a lot of work. Just running it and using '/rs' gives me errors. That is not a good sign. Are you able to run RealShop without StackableItems fine?
could it be possible to deny placing items stack over 64 in a chest all together? It's causing a serious error spam from realshop if people place an item to sell in the chest that are over 64
@haveric
Do you mean when shift clicking it? If not, please explain in more detail.
If you grab individual items from a chest they do not stack automatically.
@Damimad
First of all, what version of the plugin are you using? That sounds like a bug that I fixed in 0.7. If you are using the latest, do they stack properly or disappear when you stack, ie "shadow" items?
Also, please provide the version of CraftBukkit, Vault, and what other plugins that you are using so that I can test it.
Edit: I cannot reproduce this in the latest version. Please make sure you have updated. Edit 2: Found it! This does happen, but only with fired arrows, not dropped arrows. That is why I didn't find it earlier. I'm looking into why this happens and will hopefully fix this for the next version.
Every time someone stands over and arrow it is infinitely picked up, duplicated!
@Wannab007
That is correct. It will probably be fixed after I get done rewriting some of the code for Virtual Stacks (ie. stack tools together and they keep their properties)
Thanks for trying it out and let me know any and all feedback on it.
meaning that if you use them while stacked it destroys them all?
well right now i just need it for storage anyway, but il be looking forward to the update
thanks