Solved Spawn MOB that cant be moved

Discussion in 'Spigot Plugin Development' started by Spraxs, Jul 28, 2018.

  1. I am currently working on a boss. The boss is made with NMS. The only problem is that I don't know how to make it so the boss cannot be pushed by a player and cannot get knockbacked by attacks. I tried .setAI(false); but if I do that the boss can't get damaged and that is an problem. Anyone got any idea what I can do to solve this? Oowh and my Pathfinders still need to work properly.
  2. RandomHashTags


    1. Set the entity's collidable method to false
    2. Upon EntityDamageByEntityEvent, set the velocity of the damaged entity, in this case the boss, to zero.
    • Informative Informative x 1
  3. Thank u very much!
    • Informative Informative x 1