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 Feb 10, 2013@haveric
Here are the steps I use to reproduce it. It's not the only way, but it's the one I used to test it when my players reported a dupe: 1) Acquire two sticks and three ingots, for an iron pickaxe 2) In a crafting table arrange the items as if you were to craft the pickaxe 3) Right click on the middle ingot and place it back in your inventory 4) Shift click the now-empty output slot 5) Collect duped ingots and sticks.
Sorry for being so vague about it, I just assumed you had already known about this since in the previous versions shift-clicking the output was disabled. I'll re-install this on my test server and see if I can get a vid of it.
-
View User Profile
-
Send Message
Posted Feb 10, 2013@acap41
Can you try to explain this a little better? Clicking on an empty crafting table output has no effect for me.
-
View User Profile
-
Send Message
Posted Feb 10, 2013@marubal21
I haven't found a good way to do it yet, so for now, it isn't happening.
@Zilacon
I don't test against spigot, so I am going to need some more information. Can you send me a zip of the StackableItems plugin folder and is there a specific item that this is happening with?
-
View User Profile
-
Send Message
Posted Feb 10, 2013In the 1.4.2 version, you could not shift-click an empty item in the crafting table output slot. In the 1.4.7 version this is not disabled anymore. So there is a huge duplication glitch. Please fix this ASAP.
-
View User Profile
-
Send Message
Posted Feb 10, 2013Getting this error on my server:
I am running Spigot Build # 512 1.4.7
-
View User Profile
-
Send Message
Posted Feb 1, 2013Thank for the update, still no luck with exp gain from furnaces when shift+right clicking, huh?
-
View User Profile
-
Send Message
Posted Jan 30, 2013@y1985
Thanks, I've added this to the bugtracker: https://github.com/haveric/StackableItems/issues/63
-
View User Profile
-
Send Message
Posted Jan 28, 2013Huge major exploit: you can put any item in charater equip slot. Please fix this.
-
View User Profile
-
Send Message
Posted Jan 27, 2013@haveric
Yea ok you're right. Well I guess maybe those will be added.
So thanks for your help and keep it up with your plugins. :)
-
View User Profile
-
Send Message
Posted Jan 27, 2013@ShoRyuuga
Yes, it will only show up to 64, even though there are more in that stack. Also, the reason the max is capped at 127 is because anything higher and two things happen: 1. In the main inventory, the stacks show up as single blocks and it becomes near impossible to tell how many are in a stack. 2. Minecraft may not save the amount, causing item loss
Hopefully in the future these issues can be fixed, but as of right now, it isn't practical to allow higher amounts.
Edit: note though that bukkit currently has a bug that if you put stacks larger than 64 into an anvil, you will lose anything above 64.
-
View User Profile
-
Send Message
Posted Jan 27, 2013Okey so it's normal that in the chest there are only stacks of 64 available ?
Well then it works i guess fine despite of that little flicker.
-
View User Profile
-
Send Message
Posted Jan 27, 2013@ShoRyuuga
That is just the way the Minecraft client handles it, which means I have no control over it. I'm going to look over which containers handle it which way and possibly file a bug report on Minecraft's bug tracker.
-
View User Profile
-
Send Message
Posted Jan 27, 2013Well i added the file and the folder and now there is no error anymore.
I edited the .yml files as you suggested:
Min: 127 Max: 127
I guess 127 is maximum in general ?
Now the only problem left is, that in the chest you still see 64 and in the inventory 127, but when you want to put it back into the chest, we have a complete lost of the 127 and instead it shows the 64 Stack. Still when grabbing the 64 stack and put it back into the inventory it shows the 127.
Weird.
-
View User Profile
-
Send Message
Posted Jan 27, 2013@ShoRyuuga
You can try, but there is probably something else that is causing the problem that won't be fixed by doing that.
-
View User Profile
-
Send Message
Posted Jan 27, 2013@haveric
Yes Vault is "installed".
So should i create the folder and the file or wouldn't that solve the missing file problem ?
About the min max: I will try that, it seems I completely misunderstood that part.
Thanks so far. :)
-
View User Profile
-
Send Message
Posted Jan 27, 2013@ShoRyuuga
I'll preface this by saying that my documentation right now is not great, and once I get to a point where things aren't going to be changing a lot, I'll definitely be working to improve that.
If it's not creating files on startup, I'm pretty sure that means there is a plugin conflict or perhaps you are missing Vault? What other plugins are you running?
The MIN and MAX do not work like you are trying to use them. It's basically the opposite. You want to set the minimum that any stack will go to. Max is for setting the maximum amount that any stack will go to. (Min brings all stack amounts up, max brings all stack amounts down)
The list folders are used for shift clicking in the furnace and you should only need to edit the custom fuels if I've missed something from an update or you have another plugin that uses something else as a fuel. These are here because there is no way to get a fuel list from bucket currently.
-
View User Profile
-
Send Message
Posted Jan 27, 2013Hi,
first of all, very nice idea and I hope you stick to it for a long time. ;)
I don't know why but for some reason this plugin doesn't work for me.
My cb server is up to date. There are no errors in the logs despite of these when i use /si reload:
16:01:38 [SEVERE] java.io.FileNotFoundException: plugins/StackableItems/data/furnaces.yml (Datei oder Verzeichnis nicht gefunden) <= which means file or folder not found and yea there is no such folder data and the file furnaces.yml 16:01:38 [SEVERE] at java.io.FileInputStream.open(Native Method) 16:01:38 [SEVERE] at java.io.FileInputStream.<init>(FileInputStream.java:138) 16:01:38 [SEVERE] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:105) 16:01:38 [SEVERE] at haveric.stackableItems.Config.reload(Config.java:62) 16:01:38 [SEVERE] at haveric.stackableItems.Commands.onCommand(Commands.java:57) 16:01:38 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 16:01:38 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186) 16:01:38 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.CraftServer.dispatchCommand(CraftServer.java:514) 16:01:38 [SEVERE] at org.bukkit.craftbukkit.v1_4_R1.CraftServer.dispatchServerCommand(CraftServer.java:506) 16:01:38 [SEVERE] at net.minecraft.server.v1_4_R1.DedicatedServer.al(DedicatedServer.java:260) 16:01:38 [SEVERE] at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:225) 16:01:38 [SEVERE] at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) 16:01:38 [SEVERE] at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) 16:01:38 [SEVERE] at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) 16:01:38 [INFO] [StackableItems] Configuration files reloaded.
There are severeal things which occur: When i want to stack items with and without using SHIFT, either in my inventory or my chest, the items start to flicker in that moment and they don't stack. I'm not sure if that's right, but here are my configs:
chestItems.yml:
MIN: 1 MAX: 127 ( I guess anything above 127 won't work ?)
defaultItems.yml:
MIN: 1 MAX: 127 ( I guess anything above 127 won't work ?)
groups.yml is empty, so everybody can stack.
options.yml:
Virtual_Items: false Use_Stack_Amounts_In_Furnace: true Use_Stack_Amounts_In_Trading: true Use_Stack_Amounts_In_Crafting: true Use_Stack_Amounts_In_Brewing: true Use_Stack_Amounts_In_Anvil: true Use_Stack_Amounts_In_Beacon: true Debug: false Furnace_Amount: -1
There is another folder named "lists" which you didn't mention in your Guide, containing customFuels.txt and defaultFuels.txt
OK that's it, I hope i gave you enough informations so you can get an idea of my problem.
Greetings.
Sho Ryuuga
-
View User Profile
-
Send Message
Posted Jan 27, 2013@Zarkiel7
The configuration files use Bukkit Material Names. If you look there, mushroom soup is: MUSHROOM_SOUP and potions are: POTION. You then just need to add these to say defaultItems.yml if you want to affect everybody. For example, if you wanted mushroom soup to stack to 100, and potions to stack to 15, you would add this to defaultItems.yml:
Note that the case doesn't matter for these, just as long as you have it spelled exactly like the Bukkit Material name.
If that's all you want to do, you can ignore min and max, as they are meant to override everything. Also, if you really don't material names for some reason (or perhaps find this easier), you can use the id as well. If you look those up, example here, you will get 282 for mushroom soup and 373 for potions. You can then do the same thing as before in defaultItems.yml:
If you want this to work in chests, just do the same to chestItems.yml
After changing any of the StackableItems files, you just need to run the '/si reload' command in-game and it should then work. Also, check out the options page to set whether different containers are using these stack amounts or their defaults.
Let me know if you need any more help.
-
View User Profile
-
Send Message
Posted Jan 27, 2013To be honest, i have gone thru the configuration page u guys have, but cant figure out how to make mushroom soup and potions stack. Mind helping me out?
-
View User Profile
-
Send Message
Posted Jan 27, 2013Finally i waited for stackable potions so much.