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!
@blomman2
lol, alright, thanks :)
@Eniripsa96
nvm i had a athor plugin that makes arrow haha sorry
Btw nice plugin!!!!
@Eniripsa96
one of the arrows are dmg block the wither arrow.. And i want to remove it , how do i remove it ?
@hazel63574
@qwe26481592
Hmm, multi-world support wouldn't be too much of a problem. Just give me some time because I'm juggling a lot of projects.
@blomman2
I'm not quite sure what you mean by an arrow, could you elaborate? Sorry.
how do i remove a arrow from the list? dont find it,
It will be perfect if you add multiworld support. :)
Will the authors have no support for many of the world.
@Eniripsa96
It says "Caused by: java.lang.UnsupportedClassVersionError: com/rit/sucy/LegendaryWeapons." I will PM you a screen shot of where the error is occurring in the server command prompt log.
@SilentWalrus91
It wouldn't create a separate folder because it failed to load but the error should have a "Caused by: <some error>" about 2/3 the way down the stack trace. That would be more helpful because the generic "failed to load" doesn't say much. If you can find that error, that may be able to help me solve the problem.
@Eniripsa96
I'm running WorldEdit (a fairly common and unintrusive plugin to other mods so I've heard) and a Weeping Angels mod as well. I can take either out if need be, though I'd prefer not if there's no other option to make this work.
The error I get says: "[SEVERE] Could not load plugins\'LegendaryWeapons.jar' in folder 'plugins'." That's directly from the command prompt. I should note, if it helps any, that the jar files don't create a separate folder if they were supposed to.
@SilentWalrus91
What plugins are you using and what errors are you receiving?
PLEASE HELP!!! I put the LegendaryWeapons.jar file into my plugins folder within my bukkit server files. After attempting to run the server right after, the LegenaryWeapons.jar wasn't able to be loaded. I also tried the same thing with the EnchanementAPI.jar you have mentioned in description and the same error showed up in the server command prompt. I've been able to get several other mods to run just fine on my bukkit server and this is the first to give me problems. Any help would be greatly appreciated, as I REALLY want to get this mod working! It looks AWESOME and fairly easy to use once it works! Thanks!
@Touljo
you would do 0.5 for a 0.5% chance
Thanks a lot! Very nice :)
One last question. The drop chance... is it 0.5 or 0,5?
@Touljo http://jd.bukkit.org/rb/doxygen/d6/d0e/enumorg_1_1bukkit_1_1Material.html
Thank you for the answers. Do have a list of the item names?
like this:
- iron_sword
- diamond_sword
- bow
etc.
i can't find one and have to try every item :)
@Touljo
Question 1: Yes, decimal chances are possible. I use .getDouble so go ahead and use any decimal value
Question 2: Yes, the enchantments are stored as a list (the dashes represent this) and you can add as many enchantments as you want. If they all work together depends on the vanilla minecraft mechanics, but I believe they do
Question 3: Level 10 is supported. I'm not entirely sure if vanilla enchantments have additional benefits that high, but I think they do as knockback 10 sends things flying very quickly lol
This is a very cool plugin! And its easy to use. But here some questions:
Is it possible to set the drop chance to 0.1 or 7.5 or something like that?
Can i use 2 enchants of the same type on one item amd do they work?
(like protection_fire and protection_environmental)
Is an enchantment level of 10 really supported or ist just displayed?
Thanks for this plugin :)