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. :)
This is exactly the plugin that i am looking for, but there is one thing i don't understand. I want to have like 4-5 crates in spawn (Chests) Noob Crate, Super Crate etc. Then when they walk up to them and right click with the correct key. A inventory will open and they can take out their items that they got. Is that possible to do? If not, please make it possible in the next update.
EDIT:
Like this one, http://www.spigotmc.org/resources/cratekeys.1040/ With the full customization on everything.
@BurntOutMC
No idea, and I have no access to a spigot jar to test it.
Nice plugin, Does it work with spigot?
@nanay12
I have never tested it with Spigot nor am I able to due to the DMCA... Sorry :s
I have my own server and when i put the plugin in the plugins for it says this each time i start the server can u please tell me how to fix it?
[18:50:31 ERROR]: Could not load 'plugins/Lootbox_v1.4.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:150) [spigot.jar:git-Spigot-1517] at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [spigot.jar:git-Spigot-1517] at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugins(CraftServer.java:371) [spigot.jar:git-Spigot-1517] at net.minecraft.server.v1_7_R3.DedicatedServer.init(DedicatedServer.java:135) [spigot.jar:git-Spigot-1517] at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:457) [spigot.jar:git-Spigot-1517] at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1517] Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml ... 6 more
Managed to get off my fat A and finally update the neglected information page :)
@TheOatBaron
I...think the chance is still somehow...weird? One command that only has 4% chance was triggered 3 times in 10 tries, while the ones that has 40% chance was only triggered 4 times in the same 10 tries.
------- Edit: Please ignore this. I re-configured the config and it works fine now.@TheOatBaron
Sorry to hear that... I'm so glad that you still finished it. It works great!. Thank you!
@SmilingTrickster
Yep, sorry for the late reply. I fractured my finger and wasn't able to do anything with it for the past few days. Anyways, I fixed the Java on my end and have 1.4 deployed on j7. I just submitted the jar for approval. Here is a link for you early birds: <Link Withheld, use http://dev.bukkit.org/bukkit-plugins/lootbox/files/8-lootbox-v1-4/> Tell me how it goes!
@TheOatBaron
Any updates so far?
@TheOatBaron
Okay, thanks! But please tag me next time :D
Looks like it's a java 8 issue, I'll try to push out a j7 version today or tomorrow
@ManjotSohal
Nope, but you can use other plugins that trigger a set of command when the player interact with a chest or whatever trigger you want.
Is there anyway to place a crate down?
@TheOatBaron
I'm using 1.7.9 R0.2, the latest beta version of craftbukkit.
@TheOatBaron
Annnnd it says this:
http://pastebin.com/3khDG6At
@SmilingTrickster
I think this is a working model.
https://www.dropbox.com/s/6offt5xavhymso9/Lootbox%20v1.4.jar
If it isn't feel free to reply
@TheOatBaron
Yes, please. The bukkit staff have not been active for nearly a month. I think you really have to put a dropbox link here.
...And I'm an idiot. I uploaded a java 8 version of 1.4, now I have to upload a java 7 file and rewait for approval. Anyone interested in a dropbox file of it?
It's been 2 weeks - awaiting approval. It may never happen as for the bukkit/mojang mishap. If that is the case and there is an announcement I will share the dropbox link.