I need to make mobs (skeleton, zombies, etc.) not agro when player is in range. Any help would be appreciated. By non agro, like in creative mode where mobs don't notice you. Thanks, Hubeb
Code: @EventHandler public void onEntityTarget(EntityTargetEvent e){ if (e.getTarget() instanceof Player){ Player p = (Player) e.getTarget(); if (p.mayNotBeTargetted()){ e.setCancelled(true); } } }