How can I change a mob's speed and damage ?

Discussion in 'Plugin Development' started by nolivenopain, Mar 26, 2013.

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

    nolivenopain

    Hello,I just recently started playing around with java and experimenting stuff by making small bukkit plugins.I really want to mess around with a mob's setting so I am asking is there a way to change their speed or maybe even more?
     
  2. Offline

    Scyntrus

    NMS entities have a protected movement speed variable. I think in 1.5.1 its obfuscated to be "bI". To change it you'll have to use reflection.

    Damage is set via a function, so the only way to change this is to create your own entity and override this function. Currently it's "public int c(Entity entity)". If you don't already know how to do class inheritance I suggest you look up a tutorial.
     
  3. Offline

    DeMaggo

    You can actually edit most of this stuff, catching and modifying damage events and adding PotionEffectType.SPEED to mobs.
     
Thread Status:
Not open for further replies.

Share This Page