if (this.boostedEntity != null)
{
if (this.boostedEntity.isElytraFlying())
{
double d0 = 1.5D;
double d1 = 0.1D;
double defaultSpeed = 1.5;
double boostedSpeed = defaultSpeed; // тут можно еще сделать элитра бустер aka super firework
AttackAura attackAura = Client.moduleManager.getAttackAura();
if (attackAura.isEnabled() && attackAura.getTarget() != null && Client.moduleManager.getMovementFix().isEnabled() && boostedEntity instanceof ClientPlayerEntity) {
Vector3d vector3d = this.getVectorForRotation(attackAura.rotate.y, attackAura.rotate.x);
Vector3d vector3d1 = this.boostedEntity.getMotion();
this.boostedEntity.setMotion(vector3d1.add(vector3d.x * 0.1D + (vector3d.x * boostedSpeed - vector3d1.x) * 0.5D, vector3d.y * 0.1D + (vector3d.y * boostedSpeed - vector3d1.y) * boostedSpeed, vector3d.z * 0.1D + (vector3d.z * boostedSpeed - vector3d1.z) * 0.5D));
} else {
Vector3d vector3d = this.boostedEntity.getLookVec();
Vector3d vector3d1 = this.boostedEntity.getMotion();
this.boostedEntity.setMotion(vector3d1.add(vector3d.x * 0.1D + (vector3d.x * boostedSpeed - vector3d1.x) * 0.5D, vector3d.y * 0.1D + (vector3d.y * boostedSpeed - vector3d1.y) * 0.5D, vector3d.z * 0.1D + (vector3d.z * boostedSpeed - vector3d1.z) * 0.5D));
}
}
this.setPosition(this.boostedEntity.getPosX(), this.boostedEntity.getPosY(), this.boostedEntity.getPosZ());
this.setMotion(this.boostedEntity.getMotion());
}