Lucky Items
Lucky Items
By mining lapis, diamond, iron, or emerald ore, you have a chance of receiving a prize. These prizes are now customizable.
This was a request by FlyingPig_ here: https:forums.bukkit.org/threads/superitems-luckyitems.241128/
Commands
/LI Reload - Reloads config file
Config
Example Config:
BroadCastFinds: true ##Sends a message to everyone on the server that a lucky item was found (false by default) Chances: Emerald: 100.0 Diamond: 100.0 Iron: 100.0 Gold: 100.0 Items: A LuckySword:' ##This line is mostly used to differentiate between the different things that can drop ##This line is also what shows up in the broadcast message if that is enabled Chance: 10.0 ##There is a 10% chance for this item to drop Amount: 1 ##It will drop one item Material: DIAMOND_SWORD ##The item will be a diamond sword. ##It will be easier to use item ids in the material section Data: 0 ##It will be set to the normal durability Enchantments: FIRE_ASPECT: 2 DAMAGE_ALL: 2 KNOCKBACK: 1 ##Like the material (if you're not using item id's), the names of the enchantments need to be exact, they are: ##Enchantments: ARROW_DAMAGE, ARROW_FIRE, ARROW_INFINITE, ARROW_KNOCKBACK, DAMAGE_ALL, DAMAGE_ARTHROPODS, DAMAGE_UNDEAD, DIG_SPEED, DURABILITY, FIRE_ASPECT, KNOCKBACK, LOOT_BONUS_BLOCKS, LOOT_BONUS_MOBS, LUCK, OXYGEN, PROTECTION_ENVIRONMENTAL, PROTECTION_EXPLOSIONS, PROTECTION_FALL, PROTECTION_FIRE, PROTECTION_PROJECTILE, SILK_TOUCH, THORNS, WATER_WORKER Lore: - This sword can be used - to kill mobs or people! ##This is pretty self explanatory, you can extend it as many lines as you want Name: LuckySword ##The name of the item A LuckyPick: Chance: 5.0 Amount: 1 Material: DIAMOND_PICKAXE Data: 0 Enchantments: DURABILITY: 1 LOOT_BONUS_BLOCKS: 2 DIG_SPEED: 1 Name: LuckyPick Some Gapples: Chance: 10.0 Amount: 2 Material: GOLDEN_APPLE Data: 0 Name: God Apples 9 Green Wool: Chance: 20.0 Amount: 9 Material: WOOL Data: 0 Stone: Chance: 0.0 Amount: 1 Material: 1 Data: 0
Videos
Enchantments
In the config, the enchantments need to match the names that bukkit gave for them. Here is a list of the enchantment names. Enchantments: ARROW_DAMAGE, ARROW_FIRE, ARROW_INFINITE, ARROW_KNOCKBACK, DAMAGE_ALL, DAMAGE_ARTHROPODS, DAMAGE_UNDEAD, DIG_SPEED, DURABILITY, FIRE_ASPECT, KNOCKBACK, LOOT_BONUS_BLOCKS, LOOT_BONUS_MOBS, LUCK, OXYGEN, PROTECTION_ENVIRONMENTAL, PROTECTION_EXPLOSIONS, PROTECTION_FALL, PROTECTION_FIRE, PROTECTION_PROJECTILE, SILK_TOUCH, THORNS, WATER_WORKER
Help
If you need any help, post a reply, and I'll try to help you as soon as I can. I finally figured out how to use the subscriptions.
Todo
None at the moment, I'm open to suggestions
@TheWolfEats
I'm sorry, I tagged you incorrectly on the last post.
@TheWolfEats Like I said before, I need your config.yml. I am pretty sure this is not a problem with my plugin, and I need your config to be sure. It would also be nice if you could give me the error.
When I add a prize it crashes the config please fix this problem.
@MnMaxon
Thanks so much man! Hope it helps people out :D
@spencerrecor
Thanks! I added it to the post.
Hey! I did a plugin review for it! https://www.youtube.com/watch?v=JGZU7uw3mPQ&feature=youtu.be
@TheWolfEats
Can you give me your config file?
Whenever I try to create a prize, I copy and paste the luckysword then edit it all. I'm trying to create a luckyaxe. But when I try to reload the plugin it says "An internal error occurred while attempting to perform this command." Please respond I need help.
@epicgamerdude54
I'm adding a new version today, I think it will have less lag. I can't really test lag on my server test server, though. It allows for you to customize drops, too. You will need a new config though, so you should delete the old one.
Seems like a Good plugin but it lags when a player breaks a ore
@ricoisdenaam
Thanks for the response! I'll try to add that soon, but it probably won't be done for 2 or 3 days.
I love the plugin! only one issue, it lags a lot. on my timings.txt: Plugin 16 BlockPlaceEvent (and sub-classes) Time: 15930457 Count: 9588 Avg: 1661 BlockExpEvent (and sub-classes) Time: 882049056150 Count: 17232 Avg: 51186690 Total time 882064986607 (882s) names.txt: 16 Lucky_Items v1.0
I would suggest to make a /li reload command instead of it auto reloads, its a good plugin tho! keep it up!
@redsoxfan95 I'm sorry I'm responding to you so late. I don't know if there is a way for me to get an email when someone comments on my plugins. I updated the plugin, it has the option to go lower than 1%, but the lowest it can go to is .1% There's an option called Out_of_1000, it makes each number out of 1000, so 1 would be .1%, 100 would be 10%, and 1000 would be 100%. I'm sorry, but I don't have time to add in what you asked for, right now. I'll try to add it in later, but it will probably have to be in about a month.
This seems like a useful plugin, but rather than having it set to only drop the items listed above, having the ability to set items and every detail about them (name, lore, enchantments, etc) inside the config would make it much better. Also, are you currently able to set the percentage of the item being dropped lower than 1? That way you could do 0.001% chance, 1/10000 chance basically.