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:
@grinch843
Well thanks to the way minecraft is coded, I more or less have to override any other plugin's functionality that deals with inventory, which sucks, but will mean that this plugin becomes even more powerful. I'll try to add the sort, and have plans for my own /item command as well.
Thanks for trying it out and let me know how well it works for you or if you have any questions or problems.
Haveric
@haveric
+1 for adding the ability to sort. The only other sorting plugin I've seen is SortStack, but that requires spout and right now I'am running a very small server just for 4 people so I'am trying to keep things simple....
Thanks, Grinch843...
@Kickasher
Shift click will come back, I just had some issues with it and haven't had enough time to fix them yet. I was hoping I could pass off the sorting to other plugins or mods by letting them know the max values, but I may end up doing my own sort. I'm not really sure yet
@haveric
thx it works
also can u make it so we can sort our inventories and chests with a command because other plugins dont stack the itiems properly (this would make up for the loss of shift click)
@Kickasher
You should not need Vault and this is an issue with the latest versions. Here is a test version, which should have it fixed: https://github.com/haveric/StackableItems/tree/master/versions/test
Let me know if that fixes the issue or if there are any other problems with it.
this error happens after updateing from 0.7.5 to 0.8 or 0.8.1
2012-05-21 11:05:24 [SEVERE] Error occurred while enabling StackableItems v0.8 (Is it up to date?) java.lang.NoClassDefFoundError: net/milkbowl/vault/permission/Permission at haveric.stackableItems.SIItems.loadGroupItemFiles(SIItems.java:83) at haveric.stackableItems.SIItems.reload(SIItems.java:77) at haveric.stackableItems.SIItems.init(SIItems.java:51) at haveric.stackableItems.StackableItems.onEnable(StackableItems.java:32) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:256) at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:238) at net.minecraft.server.MinecraftServer.t(MinecraftServer.java:372) at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:359) at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:188) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:423) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.ClassNotFoundException: net.milkbowl.vault.permission.Permission at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 14 more
i think its because i dont have vault (i really dont want vault since i run a private server with my friends and we are all ops so we dont want and permissions)
Very cool Plugin, good idea. I like it :D
@Tpma4life
Have you tried either reloading the server or using the "/stackableitems reload" command? If that still doesn't work, let me know what plugins you are using and what version of CraftBukkit you are using.
@haveric
Would I have to put a group or something in the groups.yml for it to work? I left groups.yml blank and tried this and it doesn't allow me to stack.
@Tpma4life
The plugin uses the default bukkit Materials which you can find here: http://jd.bukkit.org/apidocs/org/bukkit/Material.html
Therefore you can use: sign: 20 and it should work.
When I try putting it as such:
ALL ITEMS MAX: 64
Signs: 20
I added these lines to the "defaultitems.yml" file.
It doesn't seem to allow me to stack more then one sign in a row. I left the groups.yml empty if that matters, seeing as how I don't know how to create custom groups.
@TobalJackson
This is somewhat fixed in the test versions on github. Chests will work properly, but I had to set a limit on the max amount to be 127 for now. I did this because of saving issues where stacks would not be kept when you logged in as well as 127 being the largest number that will display correctly in the inventory. Larger amounts will come back; I just need to handle saving/loading them properly so items aren't lost.
I've been using this plugin for a while, but haven't extended the stackability of anything to higher than 64 before. I just upped the limit for redstone to 256, and it appears to function fine when stacking in my inventory, but when I try stacking past 64 within a chest window, the number of a resulting stack never increases past 64. The quantity doesn't save either, the extra redstone past 64 dropped onto the stack is destroyed. Is this a known bug? I've managed to reproduce it on a brand new server with only this plugin enabled.
@DoubleZ
This plugin works for all items. The only one that I can think of that might get broken is stacks of milk. Otherwise, all items work.
hi, do this plugin works for potions?
@piousminion
So I was just looking into adding a reload command when I realized that it would be nearly useless. Changing defaultItems.yml or a custom group.yml or player.yml will work just fine without restarting the server. The only thing that doesn't work is the config.yml file which only contains the virtual items feature which is still in an incomplete state.
If for some reason you cannot replicate this, let me know. As of now though, there is no need for the command.
@Adrenalineq
Please give me more information than that. What is the build number of CraftBukkit? Can you upload your defaultItems.yml? Are you using Vault and have you set the permission? What other plugins/mods are you using?
@VagueFate
Thanks, I really hope I can figure out how to get shift-clicking working properly.
What do you mean by larger stacks going into my inventory through furnace?
Awesome plugin! Just that shift-clicking and larger stacks going into my inventory (through furnace) is killin' meh. Goodluck on the ToDo/Ideas list! ^^