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:
Is it possible, that the Items stack in chests or hoppers automaticaly? This Plugin is very good but it is unsuitable for hopper-based itemsorter. :(
@ShaneHD
Thanks, that was an oversight on my part and should be fairly straightforward to fix.
When I shift+Q to drop out stacks, it shifts between hotbar & inventory instead of dropping the items...
@DirtHunter
What permission plugin are you using and what do your permissions look like? Feel free to PM me if you don't want them public.
@haveric
Not really sure what I am doing wrong. I would like my overlord ranks to be able to stack potions to 64. It says "You don't have permission."
I'm trying to limit bottles etc inside the stand ... And yes, "brewing" did it !! ;) Thanks!
@Jeppa_12
Try using "brewing_stand_item" instead. I believe "brewing_stand" is the block material.
Edit: Wait, are you trying to limit the number of brewing stands held or the items inside of the brewing stand?
Edit2: If you mean items inside of a brewing stand, try "brewing" instead.
How to limit a brewing stand ? Doing it with 'default' works , but using "brewing_stand" under 'inventory' doesn't ...
@sk8doe
Look up the data value for the potions you want here: http://minecraft.gamepedia.com/Potion Then use the item id of 373 for potions with that data value like this:
That should affect fire resistance level 1 and instant health 1. If you want the level 2's, extended or splash ones, you'll have to add them.
Hi I was just wondering how you can stack specific potions like allowing fire resistance to stack to 8 and allowing instant health to stack to 2.
@Zeemis
Have you tried using <4386 0: 100>
Since all meta's are default as 0. I know this works with LWC, havn't had a chance to test it with this.
Custom Item's item codes unfortunately do not work. :/
This is what I've got in my items.yml
allWorlds:
default:
4386: 100
4387: 100
4388: 100
4389: 100
@Zeemis
For custom items, you will most likely have to use item codes as the server won't recognize those strings as actual items. It may depend on what you are using to create the custom items though.
To use item codes, you just use "id: amount" or "id data: amount". Here's an example:
I may be doing this wrong, or missing it; however, this is defaulting to 64 still.
allWorlds:
default:
customnpcs_npccoinbronze: 100
customnpcs_npccoiniron: 100
customnpcs_npccoingold: 100
customnpcs_npccoindiamond: 100
Is it because it's a custom item?
Also, do item codes such as (example, 4467:2) work?
Nice plugin! Thanks
@Zeemis
It sets the stack size of any item to any amount you want (up to 127).
It also does extra things such as allowing you to shift click items into inventories
@WhosHenry
That's the drawback of trying to change item stacking behavior server side and not matching 100% vanilla stacking. I am limited by how well the Bukkit API works in canceling events.
You have seemed to fix the shift clicking into the next available slot in the hot bar, but sometimes it takes a second to actually display it in the hot bar, can be a bit misleading and cause players to blame the lag on the server.
Is there no way this can be fixed? For example it pops back and forth between the slot you're wanting it to go to by shift clicking.
I may not be fully understanding what exactly this mod does. Does it allow for an item stack to be 100 or higher instead of 64?
@WhosHenry
See the github ticket you created. This should also be fixed in the next release. I just need to test the changes some more to make sure everything is working as it should.
@haveric
Great thanks, also when players in survival shift click stacks of items in their inventory it goes to the right side of their inventory not the first slot in the hot bar? Any idea if there's a fix or if this indeed a bug?
Is there a way in the config that I can have this plugin ignore all groups other than the ones that I set up? Or does it effect all groups but just actually lets the groups stated in the configs to stack items?
Update: Made a video for you explaining, I am shift clicking with every click - http://youtu.be/YwlfhA9Sng4
This is only affecting players in Survival Mode.