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.
@predawnia
There are some Mob plugins that do this, I think one is just called Mobs...
Can you make it so that we can configure all zombies to be fast in the config, instead of just spawning one?
Does this only affect that particular item? Is there a way to make it so that, say, all leather armour has the extra speed attribute?
@egordm
when comes the update for 1.7.2/1.7.4 cuz is like to use it again its a lot easyer than using mc edit or with that long new commands
@Crysillion
@BubladeHD
I am sorry i am being away for a while. The new update will be released soon(Next week)
Is this being updated for 1.7.2, or is it dead?
@Redstoner_Pro
it just doesn't add anything XD
@BubladeHD
What doesnt work about it. Im on 1.6.4 and using this with no issues.
@egordm
can you please update the plugin to 1.6.4 i want to add things to items but the latest build just won't work!
Does not work when I add attributes it says: Internal error when performing this command
Hello. Can you add command - list of attributes, reload config? Thanks.
hey egdorm,
How do I enable Update checking?
I see there is a comment: /attributes give <Player> <id> <amount> ... But can you add a name to that? And with that command someone let the console type it it says in the console: Only in-game players can use Simple Attributes commands can you change this?
Greet. Fadi Thanks.
@egordm
can you please let it work with 1.6.4 PLS?
Sorry for my bad english but.... When server are reboot item lost all of is damage and retake the normal damage.... I use craftbook for create new craft and it work perfecly but when server crash or reboot the item retake is normal domage
egdorm,
No, no errors in the console it just said that in-game. Thanks.
Greet. Fadi
@OoFadi
Oke am going to fix it today and post a newer version. But are there any errors in the console?
egdorm,
I don't know hat this means but every time I type a command it says: /attributes attributes.
Greet Fadi
Hey egdorm,
That other problem is fixed :) thank you
I use in my server MyCommands and want to give out the console a preset to a player. But there is no command like: /attributes <name> preset <presetname>. That other people (like the console) can give other people a preset. I hope you can add it. (I want to set my server online in a week, I hope you can make something like that, the hoster of my server is waiting for the server. If you can do that in that little time, I will thank you so much :)
Greet Fadi
Sorry for my bad english but.... When i reload or after a lot of time, item retake his damage...... i dont know why :( i sel sword to people but they lost all and damage stay to 7