LootCrates
This project will be inactive and won't work for 1.8 servers until I finished the recoding.
Development Builds
Quote from the developer chengzi368:Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk!
Features
A simple plugin that allows you to open crates. Unlike SurpriseEggs, it allows you to use keys to open crates. Also, it allows players to uncrate in their own inventory without any command, and gives players only one item per crate, like TF2 and CS:GO.
- It also support random items from MythicDrops and CrackShot!
Videos
English(up to date):
https://www.youtube.com/watch?v=6u9txDUjI2Q
https://www.youtube.com/watch?v=MFC_k5ZVRQE
Portuguese(for v1.1.3 and older):
https://www.youtube.com/watch?v=_FVgtX_fxsI
(Thank shahiem99 Theekshana and AbsintoJ for making those videos!)
Pictures
(Move your mouse on the name of reward in broadcasts)
How to use
Open your inventory or workbench, then put your crates and keys into the crafting zone, and click the dirt on the result slot... It will turn to your reward instantly!
Commands
- /lc give <crate/key> <type> [amount] [player]
- /lc reload
Aliases: /lootcrates or /crates
Permissions
- LootCrates.give
- LootCrates.reload
Configuration
- Need documenters!
Auto-Updater
This plugin contains an auto-updater to check updates and notify you in order to make sure you are using the newest, not buggy version. However if you want to disable this feature for some reasons, you can set checkUpdate to false in plugins/LootCrates/config.yml.
Metrics
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Opting out of this service for this plugin can be done by editing plugins/LootCrates/config.yml and changing useMetrics to false.
TODO List
- Drop crates to online players randomly. (Maybe in v1.3.0)
Broadcast to online players after somebody opened a crate.(In v1.2.0)
Comment below to add your ideas here!
Donate
I am just a student who put a lot of time into this project and do my best on it.
If you love it, feel free to donate a little to my PayPal account:
Thank you, it is the best way to support the development and encourage me.
- @KevinEssence - $10
Known Problems
- None
Servers
- play.theluminious.com
Other Plugins
- SurpriseEggs - Another awesome crate plugin, but allows bigger inventory for every "eggs".
- BetterPositionTP - A better way to travel around the world(jk, but it is simple and useful).
- LootBox - An alternative, similar plugin. (It isnt my plugin however, just a suggestion :) )
The plugin is really buggy, the mythicdrops thing generates an item for each rank which means if i open 10 legendary crates it gives me 10 identical items of that rank legendary. You need to add error messages. Because if i don't use the command correctly it gives me internal error thing, and spams the console. Add translation to the plugin, and a custom lore on the crate, so we can explain what the player can get or how to use it or something else.
@highfaller
Maybe you can update your server jar? I cannot see any problem with plugins, the error said its a server problem. (Error while attemping to log your command usage)
EDIT: You can try:
1. give yourself the key
2. enchant it
see if it works.
@ChengZi368
This is the error I get when giving myself the enchanted crate key: http://pastebin.com/kPsi9tDy http://prntscr.com/48twj2
My config: http://pastebin.com/F0aZHzQB
@highfaller
Yeh, I will add the ability to place crates on the ground, in about v1.3.0?
Change name and add lore to crates/keys should work, you just have to keep the last line of lores be the same. Enchant it should work too, I dont know why it doesnt work for you, can you post the error here?
@JPDayz
@smokeymcjay
MythicDrops support is added, you can download the lastest dev build from my jenkins and test if it works. You have to config LootCrates like this:
- mythicdrops:* 1 # A random reward from MythicDrops.
- mythicdrops:common 1 # A random common reward from MythicDrops
:)
@ChengZi368
Hey there. Is there any chance that you could add the feature of just placing a crate chest somewhere (still having the different crate types) so if someone donates for a crate, they just get the key and can go to (for example) /warp crates and just right click, with the correct key, the correct chest and get the reward from that crate.
Also.. Could you possibly add the ability to change the names of crates/crate keys and the ability to remove/rename the lore and the ability to enchant the keys so they stand out in the inventory? I attempted to enchant the default key before and when you give yourself the key, it kicks you from the server saying 'Internal server error'.
Understandable if you refuse to add these features.
Thanks in advance. ;3
@JPDayz
I'll try that.
@ChengZi368
I think it's this.
@JPDayz
I am looking for API in MythicDrops, If there is any, I will add it.
Can you add support for MythicDrops items/gems?
@mektin2580
It can be quiet annoying and lag you server.
Can you add like random crate drops over the world, and the player right clicks the normal crate with the key, and it drops the item? same for the nolock one.
@versimo
It is implemented, isnt it? use "x:" to use the chance system.
@ChengZi368
Chance can be in whatever style you want, just it needs to be implemented :)
@versimo
That is possible. I am using that config style in my plugin SurpriseEggs2, However it could take some time to implement it into LootCrates.
About the enchantments, they should work tho, check if you are using caps and ench-names in the website I gave.
EDIT: But the chance.. it cannot be something like 0.01 for 1%, because there are many items in a crate, so it can only use weighted average numbers.
@smokeymcjay
I will check it out.
You should add support for MythicDrops
@ChengZi368
Could you make that every item had a different chance of spawning?
EDIT1: More echants and maybe chance of item amount? Like for ex: Gold Ore A: 1-64 That means you can get from 1 to 64 gold ores.
EDIT2: VERY messy and clumsy config. Practically impossible to give other enchants than Knockback or Silk Touch. You really need to fix it. This is how I imagine it: http://pastebin.com/sqjLqzQt
If anyone is experiencing problems while enabling this plugin, please try the lastest version in my jenkins server.
The fixed version is uploaded and waiting mods to approve it.
@skrubdalord
Confirmed. It will be fixed soon, use 1.2.3 ATM.
@fcc323
I'm also experiencing this issue, don't worry it will be fixed soon.
@fcc323
Any error appear in the console?