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:
How would you make every item stack to the custom stack limit? I tested the plugin on just dirt and it worked perfectly. Would the config look like this if you were to make all items stack to 99?
This is what I would think:
Also, wonderful plugin!
In reply to 4194304_CurseForge:
You should be able to set MIN and MAX to 99 like this:
In reply to Ryan_plays_mediocrely:
Thank you for that! Also one thing I noticed is that in places like chests, items stacked over 64 display with the item count of 64 until interacted with, e.g dragging a stack around the chest interface, which I certainly don’t mind but is funny anyway
In reply to 4194304_CurseForge:
Unfortunately, that is a client side visual bug that I am not able to fix with a server side plugin.
In reply to Trianon_77:
Unfortunately the limit is set to 127 due to limitations of the game. Anything higher than that caused instability and duplication issues.
[Suggestion]
Is there a way to make this work with hoppers too?
F.e.:
Hopper facing a chest with a chest of (empty) buckets, the stacks are automatically stacked, without a player having to access the chest and stack them together.
Would be super dope!
In reply to pandafishie:
Unfortunately, the answer is no at this time. The hopper events within the api do not work the way they need to and caused item duplication the last time I used them.
In reply to Ryan_plays_mediocrely:
Okay thanks none the less <3
In 1.18 there are massive issues when in creative mode with inventory..
Stacks get reduced to one item when left-klicked!
(And doubled when rightklicked) Very strange!
Chests seem to be ok...
In reply to Jeppa_1:
The creative inventory is handled client side so unfortunately is not fixable by StackableItems.
cool plugin! i hope you will have enough inspiration and motivation to update for 1.18.1 :D goodluck have a nice day!
Sorry to trouble you. I can see that you've listed 1.17 support as "coming soon" on the Github page. Is there perhaps an ETA on this? I hasten to add, I'm not trying to rush you at all: I just so missing having this wonderful quality-of-life plugin on my new server.
In reply to anselhelm:
1.17 was a pretty minor change and the changes so far only affect buckets and cauldrons. If you're not overriding those, it should be pretty safe to use the latest version on 1.17. There's a couple more things that I'm looking to implement before release and I don't typically give ETAs for updates. With that said, if you run into any issues or want to watch for dev updates, please feel free to stop by the discord.
In reply to Ryan_plays_mediocrely:
Thank you kindly for the reply and your continued, amazing efforts with this plugin. It's genuinely fantastic ^_^
Super cool plugin! You can even set those values for furnaces, change the xp outcome from furnaces and much more! You can also add groups for items such as all sword types.
The plugin is working perfect for me on 1.16.4 and 1.16.5.
I would recommend to also add this plugin on spigot!
Can you have different permission levels?
What i want is to be able to make ONLY my VIP users be able to stack potions, but not the "default" users.
In reply to chxpx:
Yes, you can use the "group" level seen on the configuration page.
Can you disable which items are stackable?
In reply to maydayrains:
You can modify stack sizes up or down per material, world, inventory, and player.