Stop mob targetting

Discussion in 'Spigot Plugin Development' started by micrlink, Jun 14, 2015.

  1. How can I stop natural spawning mobs from attacking others.

    Example: Wolf and Sheep / Ocelot at chickens
     
  2. Better option is NMS.
     
  3. I'd love to know how that is better than simply cancelling the event in the specific circumstances that he provided.
     
    • Agree Agree x 1
  4. Your easiest option is to just cancel the EntityTargetEvent, I wouldn't mess with NMS for this.
     
    • Agree Agree x 1
  5. Because NMS has alot more possibilities and it will causes less lag because the event won't even be called.