ManaBags
What is ManaBags?
ManaBags is a plugin that gives users the ability to expand on their inventory permanently with Magic Bags and Upgrades! With the power of Spout, each bag is crafted with new items and resources! Oh and a portable Crafting Table!
How does it work?
Each player has 4 Bag Slots. Each slot able to be accessed through the keys NUM 1, NUM 2, NUM 3, NUM 4. These keys are configurable!
When a player crafts a Mana Bag and uses it, it is put into the first free slot. Each Mana Bag grants one Single Chest worth of inventory space on key press and is safe from death drops.
When a player Crafts and uses a Diamond Weave Upgrade the first Slot with a Mana Bag is upgraded to a Diamond Weave Bag, granting that slot the space of a Double Chest!
Mana Chambers are double chests in 1 block that are capable of being stacked. They are impervious to explosions and Ender Dragons and look awesome! They even work with LWC!
Diamond Workbenches can be opened with Numpad 0 after they have been equipped!
Any admin wishing to enable separate bags for a specific world only needs to put the world name in the ManaBags/world.yml file. Each listed world will have a separate inventory for the players bag, not separate bag slots.
Waiting on new release? Current Recommended Version: v1.4.9
Don't wait for this to be approved every time its updated, go here!
What are the recipes?
Custom recipes?
YES! Enable them in the config. The examples show you how they should be setup. ID-DATA for each item!
To see what the info on an item is, hold it in hand and use /whatisthis in game!
API?
YES! And the API is SIMPLE. Seriously can't mess this one up guys! The API also grants full NPC support!
Call,
ManaBagsAPI api = ManaBags.getManaBagsAPI();
then just do api.<whatever you need here>. It is non-static so your IDE can auto-complete. (Ease of use).
Features
- 4 Slots per user
- Portable Crafting Table
- Drop on Death Support CAN LAG
- Rich API
- Multiworld
- Auto Pickup
- New type of Chests!
- NPC Support
- Permission Support
- Command-less
- New craftable items!
- Hard Mode Option
- Customizable Textures
- Customizable Sound Effects
- Hooks into xAuth
- Hooks into UltimateArena
- Disable any slot
- Disable any upgrade
- Disable Portable Crafting Table
- Customizable keys
- Persistent, Enchantment/Death/Custom Item friendly!
Requires
- Spoutcraft
- SpoutPlugin
Optional
- Vault for Permissions
- xAuth
- UltimateArena
- LWC
Permissions
Easy
- manabags.user.*
- manabags.admin
Hard
- manabags.user.slot.1
- manabags.user.slot.2
- manabags.user.slot.3
- manabags.user.slot.4
- manabags.user.diamondworkbench
- manabags.user.nodrop.slot.1
- manabags.user.nodrop.slot.2
- manabags.user.nodrop.slot.3
- manabags.user.nodrop.slot.4
- manabags.user.upgrade.1
- manabags.user.upgrade.2
- manabags.user.upgrade.3
- manabags.user.upgrade.4
- manabags.user.manabench
- manabags.special.bag.1 - Auto-gives bag for this slot (ONCE GIVEN, CAN NOT BE TAKEN REGARDLESS OF PERMISSIONS!)
- manabags.special.bag.2 - Auto-gives bag for this slot (ONCE GIVEN, CAN NOT BE TAKEN REGARDLESS OF PERMISSIONS!)
- manabags.special.bag.3 - Auto-gives bag for this slot (ONCE GIVEN, CAN NOT BE TAKEN REGARDLESS OF PERMISSIONS!)
- manabags.special.bag.4 - Auto-gives bag for this slot (ONCE GIVEN, CAN NOT BE TAKEN REGARDLESS OF PERMISSIONS!)
- manabags.special.upgrade.1 - Auto-gives bag for this slot (ONCE GIVEN, CAN NOT BE TAKEN REGARDLESS OF PERMISSIONS!)
- manabags.special.upgrade.2 - Auto-gives bag for this slot (ONCE GIVEN, CAN NOT BE TAKEN REGARDLESS OF PERMISSIONS!)
- manabags.special.upgrade.3 - Auto-gives bag for this slot (ONCE GIVEN, CAN NOT BE TAKEN REGARDLESS OF PERMISSIONS!)
- manabags.special.upgrade.4 - Auto-gives bag for this slot (ONCE GIVEN, CAN NOT BE TAKEN REGARDLESS OF PERMISSIONS!)
- manabags.special.diamondworkbench - Auto-gives bag for this slot (ONCE GIVEN, CAN NOT BE TAKEN REGARDLESS OF PERMISSIONS!)
- manabags.admin
Commands
- /whatisthis - Tells you the id and data of the item you are holding
- /givebag playername - Give a bag to a player if they have room\
- /givebench playername - Give a diamond workbench to a player if they have room
- /givebagupgrade playername - Give a bag upgrade to a player if they have room
Special Thanks
Thanks to the GiftPost team for the modifications on the VirtualChest source and thanks to whoever originally made that source to begin with!
Want to help?
If you wish to support this plugin and my future endeavors please use the donate button at the top of the page. Every cent helps!
Not as good as manabags, but here is an alt for anyone waiting for a update.
http://dev.bukkit.org/server-mods/backpack/
I updated spout and now I have this error with manabags...they wont open here is the error they shoot off.
http://pastebin.com/zP21vEEa
Y U NO UPDATE UR PLUGIN!!!!?
There is some new inventory event or something and for example logblock is updated to the newer way and now has issues with manabags. Is there a chance that someone can look into this?
Can you make a Mobarena Support ? If you open a mana-bag in the mobarena you can glitch items from the mobarena -.-
@Pasukaru0
No idea, not getting any errors, permissions are just ignored, goes straight to defaults which is user and OP. Thats the only problem im getting. Not too big of an issue atm though.
@Atspulgs
What exactly is your problem?
Anyone using this with PEX? im having trouble with this plugin using PEX.
@TheEliteFour
Hi there, i modified the pickup-algorithm because i didnt really like how it adds items to the bags/inventory. I hope you don't mind.
It adds the item in this order:
Also: I added the pickup-animation and sound that were missing.
Here's the code in case you want to use it: https://dl.dropbox.com/u/34053693/Bukkit%20Plugins/ManaBags/ManaBagMod.zip
To everyone else: If you want to use this modification, do the following steps:
In case you spot a bug, email me: Pasukaru (at) hotmail (dot) de
great plugin! :D little request: can you add support for AuthDB and MobArena plugins? you can be in arena using manabags for pick supply with you, and you can access manabags before you log in with AuthDB :(
Anyway to completely disable bags in certain worlds?
@TheEliteFour
Haha good enough for me! I wasn't really complaining about anything... Just was bringing things to your attention that would have been nice to change IF POSSIBLE. Since it's all out of the question while keeping the plugin lightweight, I have nothing else to say! :P
Thanks for staying on top of a great plugin. Keep up the good work! :)
Sorry guys. I have been out of commission due to real life issues.
As for the item pickup and sounds. There is nothing I can really do. Any more proccessing and it is going to be crazy laggy because I have to circumvent the default minecraft pickup and issue another system just as large and lengthy. As for sound, its because there is no proper way to do what I am doing.
As for shop plugins, they have to support me. I include a nice large API for it.
The whole open their inventory first thing sounds like a minecraft/spoutcraft bug. I really have no such mandates on other inventory screens in my code.
The whole disappearing thing sounds like a once in a life time glitch, havnt seen it my self..
One more simple bug (hope you're just busy and I hear back from you soon)...
Upon logging in, the player must first open their normal inventory with "e" before they can open any mana bags. Simple glitch that hopefully has a simple fix. Thanks! :)
More bugs..
Sometimes, picking up things go into the mana bag instead of the player's normal, unfilled inventory. Even if there is an incomplete stack of something in the user's main inventory, it seems it would rather start a new stack in the mana bag. Also, using the /clearinventory command does not clear the mana bags.. this could be potentially annoying if I need to make sure people don't sneak stuff by me if I clear their inventory.
Every once in a while, a player on my server will not be able to open his mana bag. Nothing pops up at all, not even "No pouch in slot #," or whatever the message is. Those players have the correct permission nodes, it says they have the right type in their manabags>bags>user file, and the plugin works fine for other players on at that same moment with the same everything.
Lastly, (not sure if it's possible), but if you could make this compatible with shop plugins, that would be great.. In general, I mean doing a shop sell command, it does not read/sell the items in the Mana Bags.
Thanks for the plugin and I hope the previous problem was not too much of a burden, but here's a new to-do list! :P
EDIT: Oh and there are no picking up sounds for things going into your mana bags. Also, one item got picked up and disappeared completely from all inventory and mana bag slots... not sure if reproducible, as it only happened once.
@ThaReaperGuy
Are you op and/or have the permission node '*'?
Pretty sure that is caused by a few of the nodes (listed above) that auto-give the mana bags and mana bag upgrades. If you want to remove those, just go into ManaBags>Bags>User> and edit the types to 0 (for none) or 1 (for single chest size). If you do this though, you MIGHT not be able to add a new bag upgrade from crafting one. Not completely sure though, as I haven't tried.
Hope that helps!
Hi,
I'm having an issue where the mana bags are automatically assigned to me?
I run the plugin & I have 4 double mana bags already created for me. Why is it doing this & how do I change it?
Running -
Craftbukkit: craftbukkit-1.2.5-R1.0
SpoutCraft: Build 1412 - 1.2.5
SpoutPlugin: Build 1100 - CB 1.2.5-R1.0
ManaBags-v1.4.9 for CB 1.2.5-R1.2
Config: http://pastebin.com/D00C6JiB
- I'm guessing its the version of ManaBags as it's for 1.2.5-R1.2 however thats a development build which messes with my SpoutEssentials and such.
Thanks!
@TheEliteFour
Don't think it's the config, as I've messed around with it to try and get it to work. I tried leaving it at default, tried changing it up, but here is what I have it at now (just hand editing player's extra pouch in the bags folder currently)
http://pastie.org/3917496
Thanks for the quick reply and desire to fix! Love it when devs are on top of feedback. :)
EDIT: I noticed you updated right about the time you responded to my post. You didn't mention anything about this problem in the change log, so it wasn't included. Correct?
@Chaznuts
Actually throw me a copy of your config file so I can debug this a little further.
@Chaznuts
Shutting the craftable off might be an issue but I am looking into this now.