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:
@shaliquinn
@shaliquinn
it may help if you use a hastebin/pastebin link and include your entire config for items and groups to better check for conflicts
Quick ? - Prolly my end...
But I hava an isue with my players being only able to get one wood plank from a log, this is the plugin causing it... - this is my items list.... I didnt mess with anyting in the config that should effect this.. did I do somehting wrong? O.o -- Still great plugin!
allWorlds:
default:
MIN: -1
MAX: -1
player: {}
group:
testGroup:
MIN: -1
MAX: -1
inventory:
chest:
MIN: -1
MAX: -1
testWorld:
default:
MIN: -1
MAX: -1
coolwhip,creative,marketplace,market,kitpvp,pvp:
default:
snow_ball: 32
arrow: 64
bucket: 32
'326': 16
'327': 16
'2256': 32
'2265': 32
'329': 64
'344': 64
'403': 16
'417': 32
'418': 32
'419': 32
'261': 64
'355': 16
'373:0': 1
'373': 1
'373:16': 1
'373:32': 1
373:64: 1
373:8193: 64
373:16471: 64
also it keeps auto removing 'from around' the item id's thoughts on this? (i hate being noob lol)
@haveric
Though so after failing too many times at trying this myself. Thanks for making that thought definite :)
And thanks for this plug-in, it's a wonderful piece of work!
@zathrus_writer
Unfortunately, that is a bug with the client, so there is nothing I can do at this time.
Hi,
I was wondering whether it would be possible to implement the stacked item to show correct number on it when put into a chest? Right now, it shows 64, although it gets back to what it should be once picked up from that chest.
Thanks!
@RPQ123
You are free to promote the plugin anywhere you like. You are not allowed to 'transfer' it whatever that would mean.
@TheWant3dUn1corn
Unfortunately, max stacks are capped at 127 due to the client not understanding stacks above that correctly and causing duplication issues.
Hello,i like this plugin very much!
I want to let more people know!
I'd like to transfer to the MCBBS (Chinese BBS about minecraft)
OK? :)
Thanks !
(((my english is not very good ,sorry)))
@haveric
Just wondering, does this plugin allow for stacking beyond 64? For example, if you have a form of currency with an in-game item and the currency is quite common so it takes a lot of room in your inventory when it only stacks to 64.. Can we make the top stacking amount for an item say, 512?
I know you can achieve this with Essentials, but you can only change it for spawning items in via essentials. What if you went /gems withdraw (amount) and it didn't use Essentials?
@CommodoreAlpha
It's possible that method didn't exist yet in your server version. On the assumption that you can't update, I can take a look and try to make it more compatible for older builds.
I haven't really tested this plugin yet (so it's just sitting around on my server), but whenever I mess around with inventory slots from other mods (i.e. messing with the inventory of an Alloyer from Metallurgy 4), I get this error.
As of now, since I'm not really using it, I don't know if the error interferes with the plugin itself, but I do know as of now that it's somewhat spammy.
@SeylanDiacraft
I can't affect how other plugins give their items so no I cannot implement other plugins. They'd have to interface with StackableItems instead.
The picking up issue has been known for a while now. Bukkit doesn't send pickup events when your inventory is full so I have no easy way to detect the item pickup.
Can you add support for "[Mystery Crate] Crate Reloaded" ? When I use the command to give a player 5 Keys (enchanted Golden Hoes), they are not stack in his inventory. I have activate in the config the id of golden hoes. But they will be only stack in inventory if I doupple click one of them. Also I can't take a key from the ground if my inv is full even if i have the items once in my inv.
I hope you understand me, sry for my bad English.
_Seylan_
@haveric
Oh. Well, that's fine then.It's not too big an issue. Just me trying to be lazy, lol. But other than that, everything works. Thanks for the response. :)
@slayermarth101
Unfortunately due to a bug in the current Bukkit API, there were item duplication issues when I tried implementing hoppers. Until there is a way to interface with hoppers that actually works, they will stay disabled.
Is there a way I can make hoppers transfer items and stack them automatically? For instance, I have then transfering potions from brewing stands to chests, but they put them in the chest 1 by 1. Then I have to double click a potion for it to group them. I'm looking to have them transfer and automatically stack the potions. Same with autostacking the water bottles to 6 in brewing stands rather than one.
@haveric
Works like a charm <3 Thank you!!!
@Gnusterftw
Yes actually, there is another option for disabling certain inventories. Change your inventory section to this:
@haveric
I'v tried that possible fix, but unfortunately it didn't work, is there a way to fix that in any other way ? :| I'm worried that my player base would use this as an exploit :(
This is my current config: http://pastebin.com/MjXQ7uTs
@Gnusterftw
Can you pastebin your configuration? The following should be enough to make it work:
but you might be overriding it with your config.
Edit: Currently Groups override inventories unfortunately. One thing that might work is trying to set your specific world to have:
as that might override the allworlds settings.