LegendaryWeapons
LegendaryWeapons allows you to set up new item drops from monsters, critters, or players. You can choose what the item is, its display name, enchantments, description, the mobs that drop it, and the chance of it dropping. Despite what the name suggests, you don't have to just do weapons. You can add armor and miscellaneous items as well.
Creating a weapon
- Open up the config file after adding the mod to your server
- Add a new weapon with a unique key (examples in the config use weaponX, where X is a unique number)
- Add a weapon-name (what you want to call it)
- Add a description (lines of text to show with the weapon)
- Add what mobs drop it
- Add the chance of it dropping (this can be decimal values such as 0.1 or 21.3)
- Add the item-name (the name of the item that it is based off of such as iron_sword)
- Add any enchantments you want (in the format EnchantmentName,Level)
- Save the config
- Reload the server
- The weapon should now be able to be dropped from the mobs you specified
EnchantmentAPI
With version 1.1, LegendaryWeapons is now compatible with my other mod EnchantmentAPI. While just adding EnchantmentAPI doesn't change anything, any enchantment that is made using the API can be used in this plugin! Simply use the custom enchantment name instead of a vanilla name and you can have weapons dropping with custom enchantments!
- For a pack of various enchantments, visit EnchantmentPack
Valid Values
For a list of valid values for enchantments, monster names, and color codes, go here
For a list of valid item names, view the list here
For a list of valid effect names, view the list here
Commands
/wgive [player] <item-key>
If you don't provide a player, it gives it to yours# elf.
Note: the key is not the weapon name but what you used at the root of the weapon (e.g. the default weapons use weapon1 - weapon10 for their keys). Why did I use keys instead of names? because you can reuse a name but not a key.
Permissions
weapons.give - permission for the wgive command
Troubleshooting
- Problems with enchantment names/levels will display in your command prompt if there are any
- If a mob isn't dropping an item, try setting the chance to 100 and testing it. If it still isn't, the name is likely not what it needs to be (View the list of valid mob names)
- A color isn't working? Make sure you use a lowercase 'c' for the color code
Example Configuration
http:dev.bukkit.org/bukkit-plugins/legendaryweapons/pages/example-configuration/
Comments
Feel free to leave comments about what you think could be added/improved so I can make the plugin better!
@SINFUL11
I could possibly add a random option if i get around to it. I have a lot on my to-do list though so i don't know when I'll get around to it.
is there a way you can do random enchants with enchantmentapi and this plugin along with random drops? Thanks for your answers :)
@thequestingbeast
If I get around to it, sure.
@TomAllMighty
I could possibly add quantity when I have time. Also, you are correct with it working the same.
@nhaggmark
Drop rates are loaded and used as doubles, so they can be quite precise. You should be able to use essentially any double value. Also, the randomization works where a random is rolled between 0 and 100 (Math.random() * 100) and for each applicable weapon, it adds their chance to a counter (starting at 0) and if it reaches higher than the random number, it drops the item. With this, only one item can be dropped but multiple items on the same mob will stack their chances additively for getting an item.
@amonfv
The other two were more for exploits, but is there a reason for disabling all of the rest of the mobs? My thoughts are that the plugin is here for the drops from those mobs you want disabled. There could be a use the other way around though so I'm curious as to what you would use it for.
@Newiezz
I'm unfamiliar with those, but if I have spare time I may look into it.
Suggestion: support pre-dyed items
@nhaggmark
The plugin info above states it supports decimals such as 0.1.
I havent yet tested 0.01 but im sure it would work the exact same.
Love this plugin so far! Having a lot of fun adding sets of custom weapon drops and building faux-lore within the quotes. The kids on my server seem to really enjoy it.
One question that I have pertains to drop rates. How precise can it go with the rates? I've noticed that no matter how low I set the drop rates, I still feel like I see more drops than I probably ought to. So far I have about 50 custom weapons in my config file, but even with the rates well sub 1.0% I still see drops every couple of mobs. I have weapons that I literally almost never want to see dropped, so I was wondering if a rate number like .01 % or lower is supported.
Thanks!
Nick
ty for this mod got it working great on my server i only have 1 suggestion
you have options to enable/disable mob eggs and spawners to have a chance of droping the items and chance you can add enable/disable for world mob drops (mobs that naturally spawn on map)
I do not use mobs on my server, is there anyway to be dropped by epicboss?
@Eniripsa96
Works well, Is there a feature that allows multiple of the same item to drop, e.g. two potions rather than 1. Thanks
@TomAllMighty
It's in v1.5
@Eniripsa96
Sweet, sooner the better (when ever you get a chance and the time is right)!
@TomAllMighty
Damage values aren't supported at the moment, so that's why that wouldn't work. I can add that however :)
@ifliplaw
I'm busy so they will come slowly, but over time I certainly will!
Awesine plugin! Keep adding more features please!
@Eniripsa96 What about legendary Potions, e.g. 373:16421 for a splash potion of healing. These items can't be found or created and I wanted to make a way to find them via, e.g. creepers.
Tried putting in potion:16421 and 373:16421 but no results. Not even with /wgive key
@Eniripsa96
Cheers, works well. Any more planned features?
@TomAllMighty
I can add that, sure
@Th3Z0n3
It should be fine in 1.6.2. Try deleting the folder after stopping your server and have it create a fresh directory. It should save a file with about 10 default weapons.
@mo4200
It should work in 1.6.2 as it doesn't use CB or nms code.
@TheD4n
It has been on my to-do list but I've been exceptionally busy.
@thequestingbeast
Will likely be added soon
Works fine on 1.6.2 for me at least.
Anyway, I would like a way to /give or spawn an item for e.g. giveaways
Where anf how can i create a weapon. The config is empty and there are no commands. Or is it corrupted in 1.6.2?
Think you can update to 1.6.2 soon?
Can you add per world support?