SimpleAttributes
Description
This is my first plugin for Bukkit and the goal of this plugin is to allow players add attributes to items and mobs in minecraft 1.6.2. Beacause the Official Bukkit API to add attributes is not yet released this plugin uses CraftBukkit code to add attributes.
Features
- Compatable with CraftBukkit 1.6.2
- Possibility to add all known attributes to every item
- Possibility to spawn in items with attributes
- Possibility give a player with a command items with attributes
- Spawn mobs with custom attributes
- Add attributes with a percentage value
Installation
- Download SimpleAttributes.jar
- Put SimpleAttributes.jar into your plugins folder
- Reload / Start your server
Configuration
Commands
Permissions
Usage
Using this plugin is very easy. Here are some examples how to use the commands.
Command Examples
- /attributes add +damage:20 +knockback:1 This command adds "+20 Attack Damage" and "+1 KnockBack Resistance" attributes to your item in Hand whitch allow you to deal 20 damage with that item and have no knockback.
- /attributes custom 276 1 +damage:8 %maxhealth:100 This commands gives you one Diamond Sword with "+8 Attack Damage" and "+100% Health" attributes whitch allow you to deal 8 damage with this Diamond Sword and if you hold it in hand you have 100% more health.
- /attributes give Notch 276 1 %speed:50 +maxhealth:100 This commands gives player Notch a Diamond Sword with "+50% Speed" and "+100 Health" attributes whitch allow Noth if he is holding this Diamond Sword in hand run 50% faster and have twice as mutch health.
- /attributes mob zombie 1 speed:0.5 This commands spawns a zombie with running speed as fast as a baby zombie.
Operations
- ADD - This makes an attribute add a value.
- PERCENTAGE - This makes an attribute add a percentage value.
- MULTI - This makes an attribute multiplies the value with the percentage.
MobAttributes
Some of the attributes may not work for all mobs.
- speed - Makes a mob faster.
- maxhealth - Increases MaxHealth of the mob.
- followrange - Increases the follow rage of a mob. ( Example: Zombie will see a villager in a bigger radius.)
- damage - Increases the damage that the mob will deal.
- knockback - Increases the knockback resistance of a mob. (1 = full resistance)
ItemAttributes
Some of the attributes may not work for all mobs.
- speed - Makes you faster with this item.
- maxhealth - Increases your maxhealth when you are using/holding the item.
- damage - Increases the damage that you will deal with this item.
- knockback - Increases you knockback resistance. (1 = full resistance)
- defence - Increases your damage resistance
- regen - Increases health regeneration In /att custom command you need to add + or % or x to change the operation.
Contact
If you have ideas or suggestions you can contact me via my email [email protected]
Special Thanks
Special thanks to AmShaegar http://dev.bukkit.org/profiles/AmShaegar13/
Upcoming Features
- Add a option to edit duration of a potion.
@egordm
Here. The issues is shown in this short video i made.
@WanderingSoulofTime
Can you please send me the error? I will fix it
trying to use your attribute:
/attributes custom 276 1 add +damage:8 %maxhealth:100
gets me a 2 attributes error.
Trying to do this with most attributes results in errors.
Exactly what I'm looking for. Thanks man!
@delsolsi213
I added some own attributes witch work the same. They are new in 1.2 of the plugin Defence and Regen
Can you maybe add the same attributes as the plugin lore attributes :3, it hasnt being updated in so long and the devs have not answered any questions or repplied >.<
@johnharthwick
Yes thats a great idea I will make better commands in next version.
Can you change the commands to something else? E.G.
ITEMS: /attributes add [attribute]:[+/-][number][percentage sign if needed] [attribute]:[+/-][number]etc.. This adds attributes to the item in your hand.
/attributes set [attribute]:[+/-][number][percentage sign if needed] [attribute]:[+/-][number]etc... This overrides the current attributes in your hand, with the new ones from the command.
/attributes give [player] [ID] [amount] [attribute]:[+/-][number][percentage sign if needed] Gives a player an item with the set attributes.
MOBS: /attributes mob [mobtype] [number of mobs to spawn] [attribute]:[+/-][number][percentage sign if needed]
Well, I hope you can find a fix for that before long, because right now I can't really use the plugin.
@Nebuli2
Yes it is thats a known issue :p
It would seem to be working all right again. Though, it seems like when an item is moved from one inventory to another, its attributes reset. This may also be the problem with attributes resetting when switching to and from creative.
@Nebuli2
Oh may i have the server log please?
@Nebuli2
Creative mode clears all attributes its a bug yes. But in Survival mode it does not remove attributes as i know.
It looks like attributes on armor reset when you equip them, so that's a bit of a major problem. :\
@Beacon75
What's wrong if can you send me the error?
Can't Get it to work For some reason or another
@jack588 No I dont think so because this plugin uses new Minecraft 1.6 Item Attributes and not Lores like in LoreAttributes. You can add a description like "This item increases your health by 10" and then add attribute to it /simpleattributes add add maxhealth:10 But this plugin uses original minecraft attributes.
can i use it with rpg-items ? i mean this plugin can read what i wrote on rpgitems item's description.. (like lore attributes)
/rpgitems name description add +500 Health
sexy plugin im going to use it on my server.
@1on122
Yes it has some bugs because it uses CraftBukkit code i will try to fix it. And it has a bug when you are in creative the attributes of items will be deleted. I will also add some features in next version like lore editing.