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 Aug 14, 2013@CraftySubZero
Thanks, I'll look into it tonight.
-
View User Profile
-
Send Message
Posted Aug 14, 2013@haveric
StackableItems 0.9.4
spigot-1.6.2-R0.1-SNAPSHOT.jar
-
View User Profile
-
Send Message
Posted Aug 14, 2013@CraftySubZero
What version of StackableItems and what version of CraftBukkit?
-
View User Profile
-
Send Message
Posted Aug 14, 2013Hello, I'm not sure if you've noticed this yet. But if you spam click an item in your inventory with another item which is the same, let say 2 pieces of wheat, AND the max amount is met in that one slot your trying to place it into, lets say a max size of 1. You can easily dupe the item into huge stacks within seconds. Im not sure why it does this, sorry I can't be of more help.
-
View User Profile
-
Send Message
Posted Aug 14, 2013@Dolphin263
Yes, the other files are no longer used. Please read the configuration guide. I think I have your bug fixed though and will release it tonight.
-
View User Profile
-
Send Message
Posted Aug 14, 2013@haveric
hmmm... I never have used items.yml, is it new? I've used defaultItems.yml and chestItems.yml. All three contents are in pastebin here:
http://pastebin.com/GLhgDYiL
-
View User Profile
-
Send Message
Posted Aug 13, 2013@Dolphin263
Send me your items.yml file or post it to pastebin
Edit: Ohhh, that issue. I had closed it: https://github.com/haveric/StackableItems/issues/59 thinking it wasn't happening anymore, but I will open it back up and see what I can do.
-
View User Profile
-
Send Message
Posted Aug 13, 2013@haveric
Hmmm... something seems to be wrong. I can't stack enderperls, and the console is getting exceptions like this:
20:42:52 [SEVERE] Could not pass event InventoryClickEvent to StackableItems v0. 9.4 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:462) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java :1372) at net.minecraft.server.v1_6_R2.Packet102WindowClick.handle(SourceFile:3 1) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296 ) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java :116) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:3 0) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:5 90) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:2 26) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:4 86) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java :419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5 82) Caused by: java.lang.NullPointerException at haveric.stackableItems.SIItems.getItemMax(SIItems.java:173) at haveric.stackableItems.InventoryUtil.getInventoryMax(InventoryUtil.ja va:419) at haveric.stackableItems.SIPlayerListener.inventoryClick(SIPlayerListen er.java:781) at sun.reflect.GeneratedMethodAccessor45.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:425) ... 14 more
-
View User Profile
-
Send Message
Posted Aug 13, 2013The 0.9.4 update seems to be stuck in the approval queue. You can (hopefully) download it from this link: http://dev.bukkit.org/bukkit-plugins/stackableitems/files/30-stackable-items-0-9-4/
-
View User Profile
-
Send Message
Posted Aug 12, 2013@applejack2132 @Dolphin263
applejack, Dolphin and everybody else who's been waiting. I am updating the documentation right now so that it will be ready when I release the update later today. I am sorry that this update has taken as long as it has. The update came at a bad time when I was trying to add new features (world support) and I didn't get a good chance to sit down for more than an hour or so and work on the inventory stuff until this weekend.
A bit of warning though, because of the changes with world support and how the inventory events are handled, I am sure bugs will be found and it is always possible with a plugin like this that duplication will occur. If any of you should find any breaking bugs or thing not working as they should, let me know right away on the github issue tracker.
-
View User Profile
-
Send Message
Posted Aug 12, 2013Please update to 1.6.2
-
View User Profile
-
Send Message
Posted Aug 11, 2013@haveric
Hi, Haveric! Just a note to say that there is still a strong demand for this type of functionality, and I'm not aware of alternatives. Although I had forgone updating to 1.5.2R1.0 in order to keep this plugin, I couldn't wait for you to once horses were out, and we had to give up StackableItems on my server. We've really missed being able to have large stacks of things like snowballs and enderperls -- I'd love to be able to get StackableItems back!
Thanks for making such an awesome plugin!
-
View User Profile
-
Send Message
Posted Aug 5, 2013For me, it half-works. Here's my config: MIN: -1 MAX: -1 MINECART: 64
It will let me collect stacks of minecarts, but when I click on the stack in my inventory to move it, it won't let me pull it out of its original inventory position. If I grab one from a chest and try to place it in my inventory, I can't release it into an inventory slot after picking it up.
-
View User Profile
-
Send Message
Posted Aug 1, 2013@sumusikoo
The plugin only works in survival mode. Creative mode was buggy so I removed all support for it a while back, but it may come back in the future. Also note that the plugin may not work as intended in CraftBukkit 1.5.2R1.0 or up as the inventory events changed in that version in order to support new methods. There will be a new test version out in the near future.
-
View User Profile
-
Send Message
Posted Aug 1, 2013@haveric
I'm in my server survival , I'm trying to get them through the creative item menu but doesn't stack. it only stacks iwth the command /give name itemID 64
-
View User Profile
-
Send Message
Posted Aug 1, 2013@sumusikoo
Are you in Survival or Creative? How are you trying to stack the items? (Picking them up, spawning them with /item, etc)
-
View User Profile
-
Send Message
Posted Aug 1, 2013damn its not working can u try to get it to work on 1 of ur servers orsomething?
-
View User Profile
-
Send Message
Posted Aug 1, 2013@sumusikoo
The id's should be working and it is strange that they are not, but the names are incorrect, use the names from here.
-
View User Profile
-
Send Message
Posted Aug 1, 2013@haveric
MIN: -1 MAX: -1 2256: 64 2257: 64 2258: 64 2259: 64 2260: 64 2261: 64 2262: 64 2263: 64 2264: 64 2265: 64 2266: 64 2267: 64 13_DISC: 64 CAT_DISC: 64 BLOCKS_DISC: 64 CHIRP_DISC: 64 FAR_DISC: 64 MALL_DISC: 64 MELLOHI_DISC: 64 STAL_DISC: 64 STRAD_DISC: 64 WARD_DISC: 64 11_DISC: 64 WAIT_DISC: 64
Using value ID and names to make sure they work but they dont :s also tried with ID Values alone and they didnt work too.
I'm using 1.6.2
-
View User Profile
-
Send Message
Posted Aug 1, 2013@sumusikoo
Can you post your entire default items file that you were trying? Also, what version of CraftBukkit are you using?