- Баллы
- 76
- Имя в Minecraft
- OJIEKCAHDP
Почему дракон не поворачивает голову?
версия 1.8.8
пробовал выставлять Direction вместо Yaw, Pitch, всё так же смотрит куда смотрел
версия 1.8.8
Код:
EnderDragon enderDragon = player.getWorld().spawn(player.getLocation(), EnderDragon.class);
enderDragon.setPassenger(player);
Bukkit.getScheduler().runTaskTimer(main.getInstance(), () ->{
enderDragon.setVelocity(player.getEyeLocation().getDirection().multiply(0.2));
enderDragon.getEyeLocation().setPitch(player.getEyeLocation().getPitch());
enderDragon.getEyeLocation().setYaw(player.getEyeLocation().getYaw());
}, 0, 1);