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.
Please add a maxhealth function wich DEcreses the maxhealth. I want to make a RPG world where you have 3 hearts in de beginning. Something like "-14"
@Necrominecraft29
Yes i am sorry the color codes are not yet supported you can add them in config with§ But not all servers can read these symbols to fix the error you need to delete all those§ From the config.
I get this error when trying to use the 1.4 version org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed in "<string>", position 1195 at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138) at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:202) at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:121) at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111) at me.egordm.simpleattributes.SettingsManager.setup(SettingsManager.java:37) at me.egordm.simpleattributes.SimpleAttributes.startUp(SimpleAttributes.java:39) at me.egordm.simpleattributes.SimpleAttributes.onEnable(SimpleAttributes.java:27) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_6_R2.MinecraftServer.l(MinecraftServer.java:313) at net.minecraft.server.v1_6_R2.MinecraftServer.f(MinecraftServer.java:290) at net.minecraft.server.v1_6_R2.MinecraftServer.a(MinecraftServer.java:250) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:151) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed in "<string>", position 1195 at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70) at org.yaml.snakeyaml.reader.StreamReader.<init>(StreamReader.java:50) at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) ... 18 more 15:53:07 [INFO] [SimpleAttributes] Loading config and items... 15:53:07 [SEVERE] Error occurred while enabling SimpleAttributes v1.4 (Is it up to date?) java.lang.NullPointerException at me.egordm.simpleattributes.SettingsManager.setup(SettingsManager.java:53) at me.egordm.simpleattributes.SimpleAttributes.startUp(SimpleAttributes.java:39) at me.egordm.simpleattributes.SimpleAttributes.onEnable(SimpleAttributes.java:27) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_6_R2.MinecraftServer.l(MinecraftServer.java:313) at net.minecraft.server.v1_6_R2.MinecraftServer.f(MinecraftServer.java:290) at net.minecraft.server.v1_6_R2.MinecraftServer.a(MinecraftServer.java:250) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:151) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) 15:53:07 [INFO] [Essentials] Enabling Essentials v2.11.1 15:53:08 [INFO] Essentials: Using config file enhanced permissions. 15:53:08 [INFO] Permissions listed in as player-commands will be given to all users. 15:53:08 [INFO] [EssentialsChat] Enabling EssentialsChat v2.11.1 15:53:08 [INFO] [EssentialsProtect] Enabling EssentialsProtect v2.11.1 15:53:08 [INFO] [EssentialsSpawn] Enabling EssentialsSpawn v2.11.1 15:53:08 [INFO] [EssentialsAntiBuild] Enabling EssentialsAntiBuild v2.11.1 15:53:08 [INFO] Server permissions file permissions.yml is empty, ignoring it 15:53:08 [INFO] Done (6.719s)! For help, type "help" or "?"
attributes
15:53:21 [INFO] /attributes attributes
attributes attributes
15:53:27 [INFO] /attributes attributes
@MARODEUR2
Do you mean a command to add random attributes or something like weapon levels?
@biscuit96
Yes thanks i am busy with adding more own attributes to this plugin i will add more crit damage chance to it but the new version will be in like 2weeks or something benauwen i am now on vacantion :)
Hi, great Plugin. Is there a way to add random Attributes to an item? For example with a command? I would like to give players the possibilitie to "upgrade" their item with random attributes, so that they need some kind of farming items and having a little bit luck to get the best items with good attributes.. Hope you understand what i mean :) I dont just want to create some items in the config which they can get, some kind of randomization would be nice :) Is this possible? :/
Hi, great plugin so far, good job! I would really like to see critical hit damage and chance added, as we are looking to swap from LoreAttributes to this as the former isn't being updated anymore. Is there a chance this can be added?
@Necrominecraft29
Oh oke i will send you a list with attributes but command to add slowness to your chestplate is /att add percentage speed:-50 it makes you 50% slower :p
You need a list of EVERY attribute in this plugin I can't even add slowness to my chestplate... its really complicated and i'd like a list
@Necrominecraft29
Sure look at plugin post under Item Attributes or Mob Attributes. @theFlaxbeard
As james said try version 1.4 :)
Can i get a list of what attributes i can add?
very nice.
@theFlaxbeard have you tried v1.4?
http://dev.bukkit.org/bukkit-plugins/simpleattributes/files/4-simple-attributes-v1-4/
Hi, when I start this plugin on the newest recommended build (0.1), I get this error:
13:51:14 [SEVERE] Could not load 'plugins\SimpleAttributes.jar' in folder 'plugi ns' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError : me/egordm/simpleattributes/SimpleAttributes : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager. java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager .java:230) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.ja va:239) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:21 7) at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56) at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11 ) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.jav a:106) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java :391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5 82) Caused by: java.lang.UnsupportedClassVersionError: me/egordm/simpleattributes/Si mpleAttributes : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader .java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:53) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:173) ... 9 more
@WanderingSoulofTime
Its not approved yet. you need to wait a while sorry.
how do i get version 1.4?
@delsolsi213
Eew if you have this symbol in config."§" Delete it it seems your server cant read it
@egordm
i get this error 2013-08-11 05:08:44 [SEVERE] Cannot load configuration from stream org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed in "<string>", position 1195 im using version 1.4
@WanderingSoulofTime
Wait i just looked into my code and it is totaly correct. But the new + % and x system is new in v1.4 which is still waiting for approval. I already changed the plugin description too early.
@egordm
Alright thanks, and it's okay :P it's a rather cool plugin.
@WanderingSoulofTime
Oh i see it wasnt a error i just messed up my commands. I will fix it today. I am sorry my fault :p