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.
@DiamondsRmyBFF
Yes i will add more attributtes soon but you also already in the newest version can use attributes "regen" and lifesteal.
@DiamondsRmyBFF
Do you get any errors mayby in startup?
Can you add like other attributes to go along with these ones like:
Damage Resistance Poison Resistance Level Requirement
How come whenever I try to add attributes to anything I get a message that says attrbutes but nothing ever happens
@resitancedude
Thank you :)
@egordm
That the best plugin i never seen ^^
@BubladeHD
Yes i am very sorry i forgot to change the command usage its changed in 1.6.4 i will change it now idk what command are you using but i will change the usage now :).
@OoFadi
Thank you this is enough to solve the problem.
@egordm
i did but the only thing is Attack damage doesn't work then the plugin adds 0 attack damage
egordm, This are all the lines in the console: 11:32:12 [INFO] O_o_Fadi_o_O issued server command: /attributes preset SuperSwor d 11:32:12 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'attr ibutes' in plugin SimpleAttributes v1.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:19 2) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServe r.java:523) at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerCon nection.java:954) at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.j ava:872) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java :829) at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49) at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296 ) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java :116) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:3 0) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:5 90) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:2 26) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:4 86) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java :419) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5 82) Caused by: java.lang.NoClassDefFoundError: net/minecraft/server/v1_6_R3/NBTBase at me.egordm.simpleattributes.custom.ItemHandler.PresetCreate(ItemHandle r.java:47) at me.egordm.simpleattributes.commands.CommandPreset.onCommand(CommandPr eset.java:38) at me.egordm.simpleattributes.CommandHandler.onCommand(CommandHandler.ja va:103) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ... 15 more Caused by: java.lang.ClassNotFoundException: net.minecraft.server.v1_6_R3.NBTBas e at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader .java:70) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 19 more
Egordm,
There are more lines, I don't have access to my pc now but I will post it in 3 hours.
Greet. Fadi
@OoFadi
Thank you i will fix it. But is this whole error or are there more lines if yes could you send me a it? :)
@resitancedude
Yes i will add them :)
@resitancedude
Making new item ids in bukkit is impossible without mods only overwrite them. But i am busy with a own shop plugin. But what you can do is make shops that execute /att give command.
@egordm
Can you add
- Strength
- Armor
- Stamina
- Haste
- Critical strike
- Hit
- Agility
-----> ITS FOOR ARMOR <------
@egordm
When you want to sell the item whit ChestShop we cant sell its..... can you make personnal id ?
And add thing for the armor like world of warcraft
Hey egordm,
I downloaded your plugin but when i want to use a comment it says this: in game: An internal error occurred while attempting to perform this command console: org.bukkit.command.CommandException: Unhandled exception executing command 'attributes' in plugin SimpleAttributes v1.0
Do you know what is wrong? Are there some plugins where this plugin can't work with?
I hope you can help.
Greet. Fadi
@resitancedude
Tell me what does it do and I will add it:)
Can you add resilience ?
@BubladeHD
Download the last version it Works on 1.6.4 :)
can you please let it work for 1.6.4 some things work some things doesn't like adding damage it wil just remove it
@lilblue22
Can you please send me the error log because i didnt had this error before and i will fix it :).
@egordm
This has randomly been removing the stats from player weapons from in chests and shopkeepers.. and it also spams the chat with error messages relating to the stats that had been lost.. so strange..