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:
Hey,
I was wondering how I could make it so that Red, Orange, White, and Pink Tulips, as well as Oxeye Daisies, only stack to 1 everywhere in my server. :D
Thank you :)
Sorry for the late replies everyone, been sidetracked by other projects and am just getting back into development again.
@ralphhogaboom
You probably want to disable chests like this:
By setting the MAX value as you are, you're actually saying that all items in a chest can stack to AT MOST 64, which doesn't do anything unless you have larger stack sizes.
@Jeppa_12
Can you send me your server setup? (everything except worlds, zipped up and pm it to me from dropbox or some other storage site)
I can see if I can replicate it from that and if something is conflicting between plugins. Also, can you try to get a video of the duplication happening, so that I can verify I am replicating it in the same manner as you are?
@Justintime4you
It is able to stack potions. What is the configuration that you are trying that isn't working?
wish it was able to stack potions /:
*Bump*
I can recreate dupe bug ... Works best with weapons and armor ...
Spigot 1.7.9 R0.2
Just pick any weapon or armor that is stackable from inventory, drop it back into inv and press escape right after. just 2 or 3 tries ...
Thank you so much, this is what I was looking for!
You rock! -Bayside308
How do you make water / lava buckets stack up to 16 for example? What part of code do I need then?
@CashVillain - I'm not able to recreate the dupe bug, either. Spigot version git-Spigot-dbe012b-63e28b1 (MC: 1.8.3) (Implementing API version 1.8.3-R0.1-SNAPSHOT).
I'm having trouble getting the items.yml config to work. What I'm trying to do is limit all stacks to 16 in each players inventory, for all worlds.
But I'd like chests to still function normally. It seems StackableItems treats chests + inventory the same way.
http://pastebin.com/QxVEjy0y
Any suggestions? Thanks.
@haveric : Yes, it's not fake-items ! I'll do some tests if any other plugin forces this...
@Jeppa_12
The closest I can get to this is a fake item being left on the cursor that when placed and clicked on disappears. Are you sure you are getting items duplicated and not temporary fake items?
@CashVillan
Any chance you could get a video of the issue happening? Only other option would be sending me your spigot jar and your plugins folder and I can test the exact setup you have. What is the exact number and type of items you are testing in each slot with that configuration?
I found another duplication-issue... Open a chest, take an item that is affected by this mod from that chest, hold it over an inventory slot , drop it in the slot and press escape right after this (nearly at the same time) Now you have one item in your inventory and one that got dropped to groud...
@haveric
There anyway I can replicate it for you? Perhaps you have teamspeak or skype? If so let me know, would really like to get this issue sorted out, thanks!
@CashVillan
I'm afraid I can't replicate your issue. The items end up stacking together almost immediately, but there is no duplication.
@haveric
The only thing I've changed is the items.yml which is below: http://pastebin.com/nLDDYJ7w
@CashVillan
There are a lot of configurations possible and they may each work differently. What are the specific config settings you are using to test this?
@haveric
Well when I first tried I had other plugins installed, I once concluded to try this just on a server with just your plugin. Problem still persisted. You can use any item, as long as that item is in the StackableItems Config. My version is http://gyazo.com/304405cc6b5d670f0c14d4ea09168a27 (Dont think this makes any difference).
@CashVillan
What version of Bukkit/Spigot are you using? What does your configuration look like? What are the exact items you are using when you test this? Is StackableItems the only plugin or mod installed? Once I have this information, I can test it tonight.
@haveric
Hey man! I've found a very serious bug with your plugin, you can dupe any item. Basically all you have to do is put one item in your 9 slot in your hot bar and one item in your 8 slot in your hot bar. You then place a chest, place your cursor in one of the chest GUI slots. After than you began to spam click 8 and 9 on your keyboard at the same time, be sure your pressing them at the same time. Do this as fast as you can, it begins the multiply the item. I've tested to make sure its your plugin and it is. Would be appreciated to have this fixxed ASAP, really love having your plugin on my server! :)
@DoD2301
The current hopper events are unreliable, which leads to item duplication if you try to manipulate items inside of it. If that ever gets fixed, then perhaps I can re-implement hopper support.