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 19, 2013@Zilacon
Please add a ticket on github with all of the errors you are getting.
"It is rare".. How rare? Does it happen once a day, every week? What happens in the server log right before you get these errors? If you want me to be able to fix anything, I need to either be able to replicate the bug or understand what the problem is so I can fix it.
-
View User Profile
-
Send Message
Posted Feb 19, 2013@joannou1
I am running 50 plugins on my Spigot #540 (http://apocgaming.org) :)
@haveric
Can you please fix the "ItemPickupEvent & ItemClickEvent" errors on your plugin? It is rare but when it starts it seriously does not stop until i restart the server.
-
View User Profile
-
Send Message
Posted Feb 19, 2013Thanks. That would be an awesome feature in my opinion. I download adventure maps for my server and there are some that give items using command blocks and dispensers that don't work when copied over. I had only tried the /give so I didnt realize picking up items was working.
Everything's working great now wrt the picking up items. I'll watch for updates. Thanks for creating this plugin
-
View User Profile
-
Send Message
Posted Feb 18, 2013@roboblaze
Unfortunately, it does not override any commands to give items as of now. I do have that noted on github and hope to implement it at some point. The stacking should still work in the inventory and when picking up items though.
-
View User Profile
-
Send Message
Posted Feb 18, 2013I cant get this to work. it all installs correctly (i had to reboot a few times for the folder/files to be created), and I can use the in-game commands to work and set values in the file -DIRT: 99. but when i give myself an item - ex, dirt (/give me dirt 99) - it doesnt stack it.
Seems like a great idea - just cant get it to work. Used it with Op, without Op, with stackableitems.stack (vault/permisionsEX) set for my username, with group and user files. I'm not sure what I'm missing. Wanted to use this to fix some command block /give issues on my server.
Any ideas what to look at or where to go next?
-
View User Profile
-
Send Message
Posted Feb 18, 2013@joannou1
First of all, 39 plugins is not that excessive. I've seen far more in use with no problems. It depends on which plugins you are using though.
I don't normally test on Spigot though so you have two options:
1. Package up your server as it is (excluding world files) so that I could run it on my machine to test.
2. Try looking for conflicting plugins. First thing would be if you get any errors, please mention them. Next, take a look at inventory plugins and try removing some until it works, which from a quick look at your list would: PortableCrafting, Buycraft, VirtualChest, and ChestShop. I'm assuming you have a test server before you put them live on your main one, so you can try that there.
If it starts working, you've found the problem, if it doesn't, try it the other way with a vanilla server and StackableItems and add plugins until it stops working.
-
View User Profile
-
Send Message
Posted Feb 18, 2013@haveric
I am using Spigot #539 (http://ci.ecocitycraft.com/job/Spigot/539/)
And before you have a heart attack about the amount of plugins, I make sure they are all up to day every week, and individually test them out.
Plugins (39): PortableCrafting, WorldEdit, Towny, HeadGrabber, SimpleFly, VoteRewardFND, TagAPI, FastSoup, Buycraft, PluginManager, StarterKit, VIP-GOD, Vault, PermissionsEx, CombatTag, Questioner, NoJLMessages, WorldGuard, HeadDrops, SimpleWarnings, PayCommands, HeroicDeathPlus, BorderGuard, ChangeSilkTouch, iConomy, Register, RegionAutoFlag, EggCatcher, mcMMO, AutoAnnouncer, Mooglenet, Essentials, TownyChat, EssentialsSpawn, RandomPort, VanishNoPacket, VirtualChest, LWC, ChestShop
The stats of the server if you want them, 32gb memory, 128gb SSD, 1270 V2 @4.0 Ghz,
-
View User Profile
-
Send Message
Posted Feb 17, 2013@joannou1
What version of CraftBukkit are you running? What other plugins/mods are you using? What you are describing is not normal behavior, so I need as much information about your server as possible so that I can determine what is causing this.
-
View User Profile
-
Send Message
Posted Feb 17, 2013Hey Haveric, I installed this plugin just now to fix some issues with stacking potions and such.
The first complaint I got was how unbelievably laggy moving inventory items was. Shift clicking multiple things was impossible, you had to click the item 5 times to get it to move, and re-arranging items isn't possible without spending the rest of your life clicking the item multiple times.
I think you may need to readjust the code a bit to be a little more responsive in that regards.
The server tickrate at the time of testing was 20.0 TPS.
Thanks!
-
View User Profile
-
Send Message
Posted Feb 17, 2013@acap41
That's awesome, let me know if you find any other issues.
-
View User Profile
-
Send Message
Posted Feb 17, 2013Sorry I was never able to get back to you, but that newest dev build fixed all of the problems I reported (to the best of my knowledge). Thanks.
-
View User Profile
-
Send Message
Posted Feb 15, 2013@sabino1234
I'm not sure where you got that idea from, but stacking is done automatically. All you need to do is set up configuration files for the stack amounts. You can use defaultItems.yml to affect everyone or as I'm assuming you are trying to do, set up groupName.yml files to give people specific stack amounts based on their permission group.
-
View User Profile
-
Send Message
Posted Feb 15, 2013@haveric
Thanks, and i thought /stack is what groups the items together, when i use the permission, -stackableitems.stack with vault installed im supposed to allow that group to use the command and combine there items?
-
View User Profile
-
Send Message
Posted Feb 15, 2013@sabino1234
There is no /stack command. The permission group needs to be matched to a config file. Take a look at the "Custom configs per group/player section above".
-
View User Profile
-
Send Message
Posted Feb 15, 2013Hey, I have Vault installed on my server, when i try to use the permission to allow a certain group in GroupManager to use /stack it doesn't work, it keeps saying they dont have permission. Possible bug or am i doing something wrong?
-
View User Profile
-
Send Message
Posted Feb 15, 2013This error started showing up when I updated Vault earlier today. Its also showing up for two other plugins that use vault. I can't tell if its Vault, bPermissions or the individual plugins that are the problem.
Edit: This is solved by updating bPermissions to the latest dev builds
-
View User Profile
-
Send Message
Posted Feb 12, 2013@haveric
Sorry, I've been unable to get on the server and confirm the clicking one, but I'll try to get the steps and script to you this week. I have another glich to report, though.
Step 1: Hold a player's head in your hand (obtainable through HeadGrabber or other plugins) Step 2: Have someone drop another player's head at your feet. They will merge.
And as for the trading one: http://dev.bukkit.org/server-mods/shopkeepers/ I havent been able to thoroughly test this, but I will provide all the things that are as well as the things that could be involved.
I'll report back as I find more, or if you need more info.
-
View User Profile
-
Send Message
Posted Feb 11, 2013@acap41
Can you provide the autohotkey script used, the custom villager trading plugin and steps to reproducing the trading issue?
-
View User Profile
-
Send Message
Posted Feb 11, 2013@haveric
Hmm the players on my server have found a lot of dupe-related glitches that stopped when I disabled this plugin. I'm not sure if they're all caused by this alone, but I'll list them here:
Right clicking rapidly, generally with a gaming mouse or AutoHotKey script, on a single item in your inventory, will sometimes cause it to dupe (around a one in 8 chance).
While using a custom-villager-trading plugin, certain items are unobtainable but can be stolen by quickly shift-clicking then closing the inventory screen
I havent yet re-installed the plugin with the newest build you linked, but I'll do that later today.
-
View User Profile
-
Send Message
Posted Feb 10, 2013@acap41
Thanks, I am able to replicate it now. That is a strange bug and I'll see if I can figure out what's going on. I've added a github ticket here that you can follow: https://github.com/haveric/StackableItems/issues/64