Lootbox
12/17/15 - NOTE: A re-work in the process. A working version is currently privately available and is waiting on public release. Please note that, on the outside, it will be less dynamic than the current version and quite a bit buggier. Unfortunately, this does tend to happen with code re-writes. Please stay tuned as the project is turned over to BETA and updates will be released accordingly. More to come this following week...
12/29/15 The re-work is near completion! Expect a release on New Years' Eve
1/1/2016: Happy New Years! Enjoy the update.
Lootbox
About
Lootboxes, mystery crates, loot chests, loot boxes, loot crates, whatever you call them! Reward your players for finding them & their keys (configurable) for epic loot!
Lootbox is like opening a chest, but it's in your inventory! You can configure it so that you can have multiple lootboxes that may or may not require keys to open. When they are opened, they can execute commands from the console and/or give items to the player. This will probably be the best drop party gift you could give your players or one of the most desired quest items! The possibilities are endless!
Lootboxes are, by default, chests with a special name and lore. They can be opened either by themselves or by a key (tripwire hook) as determined by the config.yml. They can be used in the following and more: Quests, treasure chests, drop party items, trade, donations! But really, the possibilities are endless.
Youtube Tutorial
https://www.youtube.com/watch?v=uZrnOAiY6-I
Commands
- /lootbox help <admin> - Displays the in-game help page.
- /lootbox open - Have the lootbox in slot 1 and key in slot 2. Then use this command to open.
- /lootbox reload - Reloads the config.yml
- /lootbox give <username> <key/lootbox> <UUID of lootbox/key> - Gives a player a specified key/lootbox.
- /lootbox preview - Previews with a virtual inventory what is inside a lootbox.
- /lootbox info - See a list of keys/lootboxes that can be used on the key/lootbox in hand.
- /lootbox list <keys/lootboxes> <e> - Lists all keys/lootboxes on the server. Add an 'e' on the end to see an expanded list.
Nodes
- /lootbox help - lootbox.help
- /lootbox open - lootbox.open
- /lootbox help admin - lootbox.admin.help
- /lootbox reload - lootbox.admin.reload
- /lootbox give - lootbox.admin.give
- /lootbox preview - lootbox.preview
- /lootbox list <keys/lootboxes> <e> - lootbox.list
- /lootbox info - lootbox.info
Configuration
Example config.yml: http://pastebin.com/H0sZhuA3
EID List:
- Names are case-sensitive
The chat options should be self explanatory.
Suggested Plugins
- http://dev.bukkit.org/bukkit-plugins/otherdrops/ - Set a drop to the lootbox name and lore and now mobs can drop lootboxes! Remember, the lore and name are case-sensitive!
- http://dev.bukkit.org/bukkit-plugins/treasurechest/ - Put lootboxes in these stationary treasure chests for better rewards!
- http://dev.bukkit.org/bukkit-plugins/event/ - Host drop parties and events where you give away lootboxes!
- http://dev.bukkit.org/bukkit-plugins/quester/ - Give lootboxes to players for completing quests!
- http://dev.bukkit.org/bukkit-plugins/loot-crates/ - An alternative, similar plugin.
Final Notes
Make sure that players have enough room are online and have room in their inventory when using the /lootbox give command. If they aren't online it won't be given to them and if their inventory is full it will drop at their feet, prime time for others to steal it. Please notify me about suggestions or bugs through the comments/tickets! Any comments are welcomed. :)
Lootbox v1.3 just uploaded, awaiting approval!
Changes:
Boosted performance/major cleaning of scripts for easier editing. Fixed several bugs, including the [Lootbox] prefix missing in some instances, the lootbox preview not showing all items, and the infamous inventory glitches. I also added an optional max-items and min-items for lootboxes with chances. (Example: http://dev.bukkit.org/paste/10311/).
Happy 4th of July everyone!
@Shnitzalcraft
Could you please clarify 'chest linking'. I don't know what that is.
it would get rid of the in neccessary massive config format.
please create a "lootbox" to chest linking (for admins)
@zCamaroz
You could try it (it should), worst thing is that it doesn't work.
is it work on 1.6.4? or can you make one for 1.6.4 :C. Im running a modded server. Thanks you for read this.
Any suggestions for v1.3 before release? Current features are only bug fixes, code cleaning, and a max and min for the items a lootbox can give (because chances).
@paintball89
What do you mean? In the execute-commands?
commands based drops are not working.
Direct link for v1.21 - https://www.dropbox.com/s/wihse91hdddi88d/Lootbox%20v1.21.jar
IMPORTANT: v1.21 patches a bug with permissions, I'm sorry if you have been having trouble with it! :C I'll link a direct jar for anyone that needs it immediately.
Ok, I'm back. I'll begin work on it tomorrow afternoon (I need some break :P).
@Kenneth4655
That is already a feature, just keep adding them to the item and they will be on there :)
i.e. "- 267 1 16:2 17:4" would give 1 Iron Sword with Sharpness 2 Smite 4.
@Elitelupus
Hmmm.... That's an interesting idea and I get what you are saying. I'll look into a way to do that that allows both types of chance systems,
Hi , Great job . Can you also do how many items from one box is given like in config amount:1 So that one item in the item list you will get like dirt chance:90 and Diamond chance:10 you more than likely to get dirt than a diamond and you will only never get one not both
Thank's for making Great Plugin
Sorry guys, I am uploading v1.2 tonight as for I am leaving tomorrow morning, I couldn't find the time to add in the max and min values - sorry :c. Everything else mentioned is added though :).
@youwillnevergu3ssmyname
Lootbox v1.2 will be uploaded tomorrow (approved by Bukkit 1 week after upload), it will have all the features you need and more! See my post below yours for detail.
@Kaczy092
Could you paste your otherdrops-drops.yml on http://pastebin.com/ and post the link here? I don't want to include it in this plugin because it will make it needlessly heavy.
Hi I try this in Other-drops but It still didn't work. Maybe you can add this to your plugin? :P
@youwillnevergu3ssmyname
Unfortunately none of that is possible at the moment, I plan on it in v1.2 which will hopefully be done this month.
@TheOatBaron
Hi, I tried your plugin but I need some help, is it possible for only 1 of the items/money to be won? And I have a problem, when I have written '- eco give {PLAYERNAME} 250000 chance:25' It gives them the money every time, its quite annoying.
Thanks
v1.2 Feature Ideas:
I'll be gone for about ten days so this might not come out til the end of June/early July.