Solved Mob.setHealth() not setting the health of a mob correctly

Discussion in 'Spigot Plugin Development' started by TrexCrusher, Jul 31, 2020.

  1. Ok, I solved it. The reason it is dying is because apparently zombie piglins die due to instant health. Giving the instant health effect at such a high number instantly kills it. Thank You For all the Help!
     
    • Funny Funny x 1
  2. Aww, and I had prepared a test server and implemented your setup to see if it worked over here.
    Glad you found your problem! Good luck!
    [​IMG]
     
    • Useful Useful x 1
  3. Haha well cheers mate, turns out it was just the Minecraft mechanic and not the code. Thanks Alot!
     
    • Friendly Friendly x 1