Surprise Bags
Description
This plugin adds various treasures and surprise bags to your world. These special items will be dropped by naturally-spawned monsters such as Zombies and Spiders. When players obtain the surprise bags, they can open them by clicking the right mouse button while holding them. They will then get a random item and the bag will disappear.
The list of surprise bags is set in the configuration files of the plugin, as well as the list of items that the player can receive when opening each bag. The plugin comes with a predefined set of bags:
- Treasure
- Trick-or-treat Box (perfect for Halloween)
- Surprise Bag
- Unknown Book
- Wintersday Gift (perfect for Christmas)
Each such item has a different drop-rate. Please see the configuration files for more information.
For example, players who open an Unknown Book might get a sharpness I enchanted book or a different enchanted book. Trick-or-treat boxes might get the player a raw fish, a pumpkin pie or, rarely, a diamond helmet.
Commands
There is one main command and several sub-commands:
- /surprisebags version - Get the plugin's version.
- /surprisebags spawn <bag> [count] [player] - Give you or a player a bag by name.
- /surprisebags list - List of existing bags.
- /surprisebags edit <bag> - Edit the bag's contents.
- /surprisebags save <bag> - Save the bag's contents to the configuration file.
- /surprisebags addbag <bag-id> [name] [drop-chance] - Add a new bag
- /surprisebags removebag <bag-id> - remove a custom bag
- /surprisebags reload - Reload the configuration files.
Permissions
There are three permission settings:
- surprisebags.command - Allows you to use the SurpriseBags admin command (defaults to admins only).
- surprisebags.openbag - Allows you to open bags (defaults to everyone).
- surprisebags.edit - Allows you to edit or save the bags contents (defaults to admins only).
Configuration
You may add/remove surprise bags by using the in-game commands. You can change different settings by editing config.yml, which is in the plugin's folder after installation. Each bag has its own YAML file, where you can list the items that players will receive when opening the bag. The players will always receive exactly one item, so adding many items of the same type will increase the chance of receiving them, whereas items which appear only once will be rare. You may open the configuration files of any of the predefined bags (e.g. Trick-or-treat box) to see how these lists work.
You may change the general drop-rate of bags, as well as the specific drop-rate of each bag.
If you have WorldGuard installed, you may limit the drops to one region. The region ID is set on config.yml.
If you want a bag to drop from a specific list of mobs, you can add the "limit-mob" setting to the bag's yaml file. For example:
# # Limit Mobs # # Limit the drop of this bag to the listed mobs only. # limit-mob: - creeper - zombie
Note that this should be in the bag's file, not in config.yml (in other words, it is defined per bag).
-
View User Profile
-
Send Message
Posted Oct 24, 2013Any idea when the update for 1.7 will be out?
-
View User Profile
-
Send Message
Posted Oct 24, 2013Can you block Surprise Bags to drop from mobs spawned by a spawner? That would be an awesome addition.
-
View User Profile
-
Send Message
Posted Oct 22, 2013@JasonB1974
Hold the book in-game and type
Then reload the plugin. That should add the new enchanted book.
Thanks for comment.
-
View User Profile
-
Send Message
Posted Oct 22, 2013Hi, thanks for a great plugin. Can you tell me how to add a enchanted book? I have gone into the config and tried to add a unbreaking book to the list but when you receive that book in game it is a enchanted book with no enchants on it.
So basicaly I need the correct book id's to be able to add them as they seem to have specific names.
eg. OXYGEN = Respriation
THORNS = Thorns
but UNBREAKING = ?????
Cheers
-
View User Profile
-
Send Message
Posted Sep 26, 2013@eyalzh
im using mcpc+ and thats using spigot for mc 1.6.2
-
View User Profile
-
Send Message
Posted Sep 26, 2013@delsolsi213
Thanks. Looks like it might be version incompatibility issue. Next version of SurpriseBags will work with 1.6.4, that might solve the problem.
-
View User Profile
-
Send Message
Posted Sep 26, 2013@eyalzh
http://pastebin.com/94dcg6V7 here you go mate
-
View User Profile
-
Send Message
Posted Sep 25, 2013i want to add money bags as a drop random amounts of money.
-
View User Profile
-
Send Message
Posted Sep 24, 2013@delsolsi213
Can you pastebin the error from the server's log? That will be helpful.
-
View User Profile
-
Send Message
Posted Sep 24, 2013@eyalzh i've done that, but i get internal error adding them.
-
View User Profile
-
Send Message
Posted Sep 23, 2013@delsolsi213
If the modded item is based on lore, you can try adding it with the additem command, while holding the item.
/sbag additem <bag>
replace <bag> with the bag you want the item to be in (e.g. treasure). Then reload the plugin.
-
View User Profile
-
Send Message
Posted Sep 23, 2013@eyalzh
Could you add support for modded items? it would be awesome to hve this on my ftb server :D!
-
View User Profile
-
Send Message
Posted Sep 22, 2013Disabled in certain worlds would be great.
Thanks for this epic and much needed plugin for RPG servers!
-
View User Profile
-
Send Message
Posted Sep 22, 2013The plugin is great just wondering if you could make it so then you could get ingame currency say from iconomy or from essentials because it would help heaps because im thinking of a hand held money without the need for mods.
thanks in advance.
-
View User Profile
-
Send Message
Posted Sep 21, 2013M8 ive created a new SurspirseBag - here is pasteBin
-
View User Profile
-
Send Message
Posted Sep 21, 2013@iApplee
Not at the moment. Making it drop from players will make it totally farmable as people will grind each other willingly.
-
View User Profile
-
Send Message
Posted Sep 21, 2013@Bester111
Can you provide some error logs or anything like that? There might a conflict between the plugins.
-
View User Profile
-
Send Message
Posted Sep 20, 2013Is it possible to make it drop from players?
-
View User Profile
-
Send Message
Posted Sep 20, 2013Loved the plugin while it was activated. found a big prob so had to disable it on my server. ANY item that was spawned through Diablo Drops when clicked on would instantly boot me from the server. Had to disable plugin then go into my inventory and hit /clear. because i couldnt even select armor. If it can be fixed would love to have this on my server.
-
View User Profile
-
Send Message
Posted Sep 20, 2013I hate it when people have great plugins however their dev pages suck.... Add pictures, colors or maybe even a video! Make it fun and engaging :)