How can I increase damage with a certain item?

Discussion in 'Plugin Development' started by Joe12o, Aug 15, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Joe12o

    I am new to developing server plugins, and I usually stick to SSP mods, but I decided to start trying server mods. So, I'm trying to make a plugin that increases damage dealt with a certain item like a stick or something, but I don't know if this is possible without modifying the client too so if there isn't a way to make the item do more damage then how could I make it so when someone gets hit with the item it subtracts a certain amount of health? This plugin will not be released by the way because it's really a bit pointless =P
     
  2. Offline

    Joe12o

  3. Take a look at some basic tutorials. Try to understand what events are for. In a bukkit plugin, you aren't modifying the items/blocks themselves, but you just say "when someone gets damaged, and the attacker has xxx in his hand, set the damage to yyy".

    Hint:
    onEntityDamage
     
Thread Status:
Not open for further replies.

Share This Page