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. :)
I just uploaded Lootbox v1.1 (Hopefully will be approved this week). The big thing due to popular request - I added a chance per item feature!
Example (items section of a lootbox):
- 12 32 name:&6Special_Sand lore:&7Taken_From:|&4Common_Lootbox chance:50
- 268 1 16:2 34:4 name:&4Training_&7Sword
This would give you a 50% chance of getting special sand and a 100% chance of getting the Training sword. The chance most be an integer between 0 and 100!
Also, compatible with CB 1.7.9-R0.1 - I believe it is also compatible with 1.7.2.
@Kaczy092 The author of OtherDrops uses a weird format. The format for an item is:
<ItemName>@!<DisplayName>;<LoreLine1>;<LoreLine2>;<etc.>
So you would want:
CHEST@!MagicznaSkrzynka;&aMagicznaSkrzynka Aby ja otworzyc Musisz posiadac Klucz!
Here's what you would want for the section 'otherdrops' in the otherdrops-drops.yml: http://pastebin.com/tKThe5TF
Remember that the name that you put in is CASE & COLOR SENSITIVE, so write the name exactly how you see it with the color codes (Like &a &6 etc.).
I try Many times but It Didn't Work. Can you Write here how I must do it? Please :)
@Kaczy092
The item is a chest, not a lootbox. Try that.
I try this: ZOMBIE: - drop: lootbox name:MagicznaSkrzynka lore:&aMagicznaSkrzynka Aby ja otworzyc Musisz posiadac Klucz! chance: 100%
But it didn't work :(
That's really Best Plugin. I watch for this many weeks and I found! Maybe I Record TUT about it. :D
@Kaczy092
Use OtherDrops (http://dev.bukkit.org/bukkit-plugins/otherdrops/) and set one of the drops to a lootbox name & lore ;)
Hi, I have more ideas to this plugin. Maybe you can add Drop Chest/Keys for Kill Players/Mobs and while you fishing you can add drop only key will have maybe 10%.
@TheOatBaron
Thanks! I got it working correctly now.
Lootbox v1.0 has been approved! :D I will try to get out v1.1 with a lot of cool new features this week or next week, please make your suggestions! :)
@GooseGasm
No, but that reminds me about making a suggested plugins tab; you could integrate it with Treasure Chest and have it where the lootbox that requires the key is inside of the treasure chest. http://dev.bukkit.org/bukkit-plugins/treasurechest/
@TheOatBaron
is there a way to make a chest stationary and when you click with the key you lose the key but the chest stays and you get your items
@ChengZi368
I'm just going to use the Random from Java Util (http://www.youtube.com/watch?v=AhwIYAXPASw&feature=kp)
Oh sorry just saw your reply to same question; look forward to it then, thank you!
Where is the download for this?
@TheOatBaron
Meh how did you do that, can you post your code here please?
My math is so bad that I screwed my plugin's chance system up :(
@GooseGasm
It's waiting for approval from the Bukkit Staff, keep checking in every day or so, it should be approved and ready for download in 3 to 5 days.
@TheOatBaron
how to download?
@delsolsi213
Actually, this seems like a very important feature. Can confirm it will be in v1.1. I will be adding a chance option (0-100) to the 'items' section of each category, for example:
....
items:
- 262 16 name:&6Yellow_Arrows chance:30
- 262 16 name:&7Gray_Arrows chance:20
- 262 16 name:Normal_Arrows
So there is a 30% chance you will get yellow arrows, 20% chance you will get gray arrows, and 100% chance you will get normal arrows. If I did my path correctly, there is a 6% chance you will get everything and a 50% chance you will get only normal arrows. I don't like math, I probably screwed that up :P
Wow, didn't expect this to blow up as fast as it did, thanks for the suggestions guys :).
For those of you haven't seen, here's a laggy preview from about 2 weeks a go: https://www.youtube.com/watch?v=rhYwcGrZ60g
@delsolsi213
I'll look into this :)