Wither and mobs

Discussion in 'Spigot Plugin Development' started by Jaffaaaa, Aug 11, 2018.

  1. In my plugin I have a mob where minions (zombies and skeletons) spawn from a wither to attack the player, however when they spawn as soon as they get hit by the wither they don't target me, and also sometimes the zombies just spawn and aren't hostile to the player.
    Any fix?
  2. Just check if it's a minion and if the target is you. If it isn't, cancel the target event.
  3. I did this:
    Code (Java):
    But I get nothing in chat.
  4. Why would it be death event? You are trying to stop the minions targetting the master right? If you're using death event it will only trigger when something dies.

    Alternative solution would be setting them to the same scoreboard team, tho I don't know how it's done through code