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. :)
@Nikk96
I don't do private plugins of an existing public plugin, sorry :(. I am looking into a Spigot MysteryCrates style setup, though. It's a premium plugin so if you actually do want to purchase it here is a link: http://www.spigotmc.org/resources/mysterycrates.557/
As a side note, updates will be a lot more delayed with school starting back up. Working 2 jobs takes up a lot of time and AP Calc with all my other core classes sucks up the remainder. I've had just over an hour of spare time this week. :c
That being said, I will still make an effort to push out updates but as of the next few weeks while everything settles down updates will be strained.
@TheOatBaron
Please make them physical chests!! with the option so they dont de-spawn! (i am willing to give you money to make this for me)
as long as you dont release it to the public,
@Roadhog360
They are items in your inventory not physical chests in the world - sorry :C
Tuturial? I have over 400 chests in a map that need this.
@DungeonMan10
Yeah, the execute-command feature is broken in 1.3, luckily 1.4 should be approved this week.
I don't know why your OtherDrops is doing that, mine works fine using your configuration. It may be that the word Chance is capitalized but I doubt it. Download the newest version and if that doesn't work try to contact someone on the OtherDrops page and see if they can help resolve your issue.
As for giving random lootboxes, try looking around for an announcer plugin that allows execution of commands and use the lootbox give command, or maybe Command blocks could work (I'm not very savy with those though :P)
Thank you so much. Another thing to note is the fact that I'd like to make this work with diablos drops. Loot Box almost works correctly now, the only problems are that other drops and it won't execute the command. Also, it attaches the name and lore together as a name instead of separate as shown in the picture here http://i.imgur.com/SBaTzu7.jpg And no matter what percentage I change it to, the zombies always drop the chest 100% of the time. Link to my other drops config file http://pastebin.com/5EH75Pzc Link to my Loot Box config file http://pastebin.com/6Gbh3qqk. I'm siding on you with creating your own mob drop plugin even though this one is very flexable. Another thing I'd love to do on my server is reward players with loot boxes or keys about every 30 minutes or so for playing on the server.
@DungeonMan10
If you could post your full config.yml to pastebin.com I will be able to answer this question for sure, but from what I can see right now is that you are giving them an item (276) in Common Crate, but are not assigning an amount. Change it to - 276 1. Also you spelled {PLAYERNAME} wrong :P. Lastly, you have to rename the permissions: in Common Key to permission: 'permissiongoeshere'.
Also, an example OtherDrops configuration (otherdrops-drops.yml) would look like the link I have pasted at the bottom of this post. All you have to do is drop a chest/key item with the EXACT name and lore as the lootbox, this is case and color sensitive!
There is a great example within the OtherDrops folder: /otherdrops/includes/overhaul-catballs.yml. Also, refer to this page for questions about name and lore: http://dev.bukkit.org/bukkit-plugins/otherdrops/pages/drops/
http://pastebin.com/n4KbhgGD
I'm thinking that I may just end up creating my own Mob Drops plugin some time this fall/winter, this one is just way too complex for the end-user.
How would I make Lootboxes work in association with otherdrops? Could you show an example config file? I also get this error shown on the left side of the picture. I'm using the config on the right. If anyone could help that would be great. http://imgur.com/mY36FMt
The coding side of 1.4 is all done! :D
I just have to do the documentation of it, updating the help, web page, etc. I will be uploading it tonight and hopefully it will be approved by early September. Sorry for the delay, I just got a third job and school is starting soon, so it's getting a little crazy :P
@TheOatBaron
Thanks :)
@Kaskadeking
Sorry for the late reply,
I did some in-depth work on your config and found not one, not two, but three bugs! :P
1) No items in a lootbox means that it cannot be opened.
2) Execute commands without a chance doesn't work properly.
3) Chances on executable commands are not properly set.
In addition there were a few config errors.
Unfortunately I cannot create a work around config for you because of the combination of bugs 2 and 3.
On the bright side, I will be releasing v1.4 on August 27th and I will provide you a direct link and a working config on that day, so you do not have to wait even longer for the Bukkit team to approve v1.4
Sorry for the inconvience,
TheOatBaron
Commands don't working for me. config.yml: http://pastebin.com/Ab6T7QCa
@LepercyXL
What are those slashes in there for? I have never seen that done before :P
Also, I see that you already have the lootbox give commands inside the config, is it working?
One last note, I noticed that you have the mob spawner in the Legendary Crate with a pound sign, does that give the proper spawner?
sure here is a link to teh paste bin
http://pastebin.com/embed_js.php?i=sf3i1aqJ
hope this helps the situation and i will tinker with it somemore
@LepercyXL
Yep, if you could post your Lootbox config.yml to pastebin.com I could help! All you have to do is give a player a chest with the exact name and lore as the lootbox would have, it is color and case-sensitive!
@crexture
Sorry for the late reply, that is not planned for the 1.4 update, but I do plan on adding stationary lootboxes at some point!
Im trying to make a "Special_Crate" for which contains other LootBoxes. Is that possible?
Here is what I have so far....
Special_Crate: color: '&e' lore: '&5A Special Crate!' requires-a-key: false permission: special broadcast-message: '{PLAYERNAME} &7has opened a &6Special Crate&7.' execute-commands: - lootbox give {PLAYERNAME} box Common Crate - lootbox give {PLAYERNAME} box Common Crate - lootbox give {PLAYERNAME} box Common Crate - lootbox give {PLAYERNAME} box Rare Crate - lootbox give {PLAYERNAME} box Rare Crate - lootbox give {PLAYERNAME} box Legendary Crate
Hi,
this is a very nice plugin! Is it possible that you could make it so we can place the crate down in a let's call it 'casino' room so players buy keys, and the key they buy they just go the casino -> to the crate -> right click the crate and recieve rewards instead of players having to have the lootbox in their hands.
Thank you, Crex
@Skylord_1023
Can you list the plugins you use?
@TheOatBaron
Sadly that did not work. Is there any other plugins that conflict with this one?
@Skylord_1023
Use v1.3 and try renaming the file to "Lootbox" if you haven't already.