Solved Change zombie with nms

Discussion in 'Plugin Development' started by mike0631, Jun 22, 2013.

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

    mike0631

    Hello,,

    How do I change zombies with NMS code, I want them to more damage, be faster etc.
    Every tutorial I found was outdated.

    Anything helps at the moment.
     
  2. Offline

    TheTrixsta


    Ill let you know it will take some reflection, maybe codename_B can supply you with some more help?
     
  3. Offline

    mike0631

    That would be awesome.
     
  4. Offline

    TheTrixsta

    I actually think you don't need NMS code to do this, give me a sec
     
  5. Offline

    Alex5657

    You know, this can be done w/o nms. You can add a speed and strength potion effect to the zombie. This will provide similar results, but with less complex code

    Oh, and if you dont want to use the potion effects, you can just track the PlayerDamagedEvent and increase the damage. I cant think of any way to modify the speed though

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
  6. Offline

    TheTrixsta

    Last edited by a moderator: Jun 2, 2016
  7. Offline

    mike0631

  8. Offline

    TheTrixsta


    It still works in the same concept
     
  9. Offline

    ZeusAllMighty11

  10. Offline

    imotionzz

  11. Offline

    mike0631

    I dont want to use a plugin for this.

    I get,
    Code:
    ZombieMoveEvent cannot be resolved to a type
    How can I fix this?

    My code:
    Code:java
    1.  
    2. import org.bukkit.Location;
    3. import org.bukkit.entity.Zombie;
    4.  
    5. import net.minecraft.server.v1_5_R3.World;
    6.  
    7. public class BloodMoonEntityZombie extends net.minecraft.server.v1_5_R3.EntityZombie {
    8.  
    9. public BloodMoonEntityZombie(World world) {
    10. super(world);
    11. }
    12.  
    13. @Override
    14. public void l_() {
    15. Zombie zombie = (Zombie) this.getBukkitEntity();
    16.  
    17. Location from = new Location(zombie.getWorld(), this.lastX, this.lastY, this.lastZ, this.lastYaw, this.lastPitch);
    18. Location to = new Location(zombie.getWorld(), this.locX, this.locY, this.locZ, this.yaw, this.pitch);
    19.  
    20. ZombieMoveEvent event = new ZombieMoveEvent(zombie, from, to);
    21.  
    22. this.world.getServer().getPluginManager().callEvent(event);
    23.  
    24. if (event.isCancelled() && zombie.isDead() == false) {
    25. return;
    26. }
    27.  
    28. super.l_();
    29. }
    30.  
    31. }
    32.  


    Solved this by not using it!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
Thread Status:
Not open for further replies.

Share This Page