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.
@Newiezz
- command attributes_give_$player_1_percentage_speed:50_maxhealth:100 =0 1
Just awesome, needs a couple of attributes but it rocks, now I am wondering if is there anyway to make this items dropable by an EpicBoss mob?
@egordm
awesome yeh it works but the regeneration one doesn't .. it will show in the item but the effect doesn't work
@lilblue22
In upload a plugin wizard was no option for 1.6.4 so i posted it in a earlier version but this version is for 1.6.4 so you can use it on 1.6.4 server :)
@resitancedude
I dont think custom id will be possibe but you mayby can a let the sign run give command. I will may later add a buy attribute sign.
Can create cutom ID because we cant sell it whi chestshop
it seem you uploaded one for 1.6.2 and not 1.6.4 was that intentional or what
@DiamondsRmyBFF
Use the first version if you get an error in the config. The first doesnt use something in th econfig what fixes it for me :p
can you fix the plugin for 1.6.4? (dev build)?
@egordm
You should fix the inventory bugging items thing. It breaks my server's trade and is the only thing stopping me from using this.
Also, try to change "Max Health" on the lore to "Health", it's cleaner.
@Myaddons1234
I do think the knockback resis gets removed because you kingkits adds a lore name or other meta to the item so the attribute must be added at last. If its possible you can make the sign also run the attribute add command.
@britaniacraft the unacceptable character '�' is § you have to remove all those signs from your config
@DiamondsRmyBFF
i am testing the newest version it will be available soon with te fix sorry i am a bit late
I'm using kingkits and when i add the knockback resis on my leather body and create the kit and use the kit sign it doesn't register the knockback.
@britaniacraft
org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) [Erreur Java] in "", position 1195 [Erreur Java] org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed
your cfg is fucked up
it just keeps telling me attributes attribues
I have an error when loading plugin (didnt touched config file) :
[Erreur Java] ... 30 more [Erreur Java] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:53) [Erreur Java] at org.yaml.snakeyaml.Yaml.load(Yaml.java:399) [Erreur Java] at org.yaml.snakeyaml.reader.StreamReader.(StreamReader.java:50) [Erreur Java] at org.yaml.snakeyaml.reader.StreamReader.checkPrintable(StreamReader.java:70) [Erreur Java] in "", position 1195 [Erreur Java] Caused by: unacceptable character '�' (0xFFFD) special characters are not allowed [Erreur Java] at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) [Erreur Java] at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:419) [Erreur Java] at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:486) [Erreur Java] at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:226) [Erreur Java] at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:590) [Erreur Java] at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:30) [Erreur Java] at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) [Erreur Java] at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:116) [Erreur Java] at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296) [Erreur Java] at net.minecraft.server.v1_6_R2.Packet3Chat.handle(SourceFile:49) [Erreur Java] at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:837) [Erreur Java] at net.minecraft.server.v1_6_R2.PlayerConnection.chat(PlayerConnection.java:880) [Erreur Java] at net.minecraft.server.v1_6_R2.PlayerConnection.handleCommand(PlayerConnection.java:962) [Erreur Java] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.dispatchCommand(CraftServer.java:523) [Erreur Java] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:191) [Erreur Java] at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [Erreur Java] at org.bukkit.Bukkit.reload(Bukkit.java:275) [Erreur Java] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.reload(CraftServer.java:609) [Erreur Java] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264) [Erreur Java] at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugin(CraftServer.java:282) [Erreur Java] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) [Erreur Java] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) [Erreur Java] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) [Erreur Java] at me.egordm.simpleattributes.SimpleAttributes.onEnable(SimpleAttributes.java:27) [Erreur Java] at me.egordm.simpleattributes.SimpleAttributes.startUp(SimpleAttributes.java:39) [Erreur Java] at me.egordm.simpleattributes.SettingsManager.setup(SettingsManager.java:37) [Erreur Java] at org.bukkit.plugin.java.JavaPlugin.getConfig(JavaPlugin.java:111) [Erreur Java] at org.bukkit.plugin.java.JavaPlugin.reloadConfig(JavaPlugin.java:121) [Erreur Java] at org.bukkit.configuration.file.YamlConfiguration.loadConfiguration(YamlConfiguration.java:202) [Erreur Java] at org.bukkit.configuration.file.FileConfiguration.load(FileConfiguration.java:138) [Erreur Java] at org.bukkit.configuration.file.YamlConfiguration.loadFromString(YamlConfiguration.java:55) [Erreur Java] in "", position 1195 [Erreur Java] org.bukkit.configuration.InvalidConfigurationException: unacceptable character '�' (0xFFFD) special characters are not allowed
i think it would be cool if you could add critical chance, critical damage, life steal, and evation/dodge :)
@egordm
I also have this problem, I'm running Ubuntu. What happens is this : I change the config, I remove the bad characters. I start the server again, boom config file again updated and the bad characters are back.
Very annoying :p. But anyway nice plugin, maybe you can fix this soon(so no default preset, that would save me a lot of trouble) Going to use this, and looking forward for the coming 2 weeks!
@Necrominecraft29
@MARODEUR2
Very thanks guys the new version will be in 3weeks with a lot of cool features.
@egordm
I have gotten it to work :D thank you so much! Also you should add a command to change the effect of a potion, because I'd like to make a Zelda like map, using sethblings technique without using MCEdit, thanks. I'll be continuing to watch this plugin!
@egordm
some kind of Random Command would be nice, but a level system, too ;) But a random command is much easier to realise i think. If the random command would be linked with for example TreasureChest, a player could get Items with Random Attributes. That would create tons of new possibilities for a Server :)
@AntonDIGGA
You can decrease health by adding an negative maxhealth attribute