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. :)
No sirve "lootbox.open" que uso en su remplazo? ocupo un permiso para que los usuarios o miembros puedan abrir los lootboxes
How do I create a key with lootbox?
How do I give permission to a user to open lootbox, I try lootbox.open and it does not work help please
Pls support with 1.10
@TheOatBaron Please Reply I need your help
@TheOatBaron can you please help me I really need and I want this plugin. I have problems and I don't know what version should I use for my minecraft server 1.5.2. Please reply A.S.A.P Thanks!.
Hello @TheOatBaron What version of Lootbox can be compatible with my minecraft server v1.5.2 I really need this plugin Some server v1.5.2 can use this but I dont know what version can be complatible with my server. Thanks
Is this plugin compatible with 1.10 servers? I understand many plugins say that they are tested on 1.10 but very few actually work; so I'm very skeptical. Can anyone give me clarification?
Just curious.
I use multiple other plugins to generate custom items since it's not possible to add things to an item via an original command.
Is there a way that you can add pre-built items to the crate and configure their chance rates inside?
For example, one Plugin I use to control mobs has a GUI where it opens a chest interface and has items to tweak spawn rates, names etc.
hey owner plugin how to limit only one item when open lootbox ?? i'm setting sword 50% and sword +1 50% open lootbox both received ??
I will be making a 2.1 update shortly that should address these issues. With the two hands update, this will make it much easier to open up boxes!
@AKlarvanto
I'll look into this!
why the left hand to open lootbox click again erased in ver 2.0 Please give it back to normal as v1.4
It looks like Version 2.12b under Spigot 1.9 will not include correct eggs in the Lootbox. Eggs come out grey colored without ability to spawn the entity. In picture below, I have Wolf Egg in slot 0 and Pig Eggs in slot 1. Config.yml is here http://pastebin.com/vnZ4Q1mx
@TheOatBaron
Is it possible to put the boxes on the ground? Cause everytime i do that it diseapers. And i've seen on some servers where you can do that :)
Fantastic! This is the optimal format to post a plugin in! Suggested plugins, clean, nice layout. Also great plugin! Love it!
@Eremitss
1.5.2? As in the Minecraft version?
Please TheOatBaron make a version 1.5.2..
Hey everyone!
Thanks for the great responses. I've been looking through your responses and am trying to diagnose the issues.
@DerZocker97HD
Do you mean your lootboxes/keys disappeared? Bukkit has a weird glitch while dealing with YML files, always keep a backup copy stored somewhere else. Sorry man :/
@SuperGakusei
I looked at your previous config.yml and it does not include keys. Could you post an updated version? Also, make sure you are using the right command syntax, it has been updated since 1.4 i.e. /lootbox info <key/lootbox> has been compressed just into /lootbox info.
@AKlarvanto
I'll look into that error, glad it's working for you though :)
@flyinggoatman
Haha, didn't even think about that. I am planning on adding in the hands feature in 1.9 when you can use both hands.
Could you put a star* feature like permissions so one admin key could have access to all loot boxes? It can get bothersome checking when you forget. Also a way you can tell server owners when the plugin is updated would be much appreciated.
Thank's so much for this handy plugin.
have a wonderful day!
Edit, I also post forgot to ask if you're planning to add a right click feature so uses don't need to type the command every time? You'd select the lootbox so your character is holding it and then right click the mouse like you're placing it but it opens instead.
@TheOatBaron
YES! Thank you very much. I start creating reward box for one of the servers tonight.
EDIT: Everything is working to reward my voters. Thank you again. Maybe later you should add list of permissions to the main info page. Some other things to do would be add console command "/lootbox reload" and also create alias for "/lootbox". i made command "/lb" in spigot commands.yml and now players can run "/lb open". FYI, Some monster eggs like Chicken and Ocelot throw server error, no clue why. If I add "- 383:93 1 name:&7Chicken chance:40" to the list of items, plugin will fail. Other than that, great job!