SHARE
TWEET

Untitled

a guest Jan 22nd, 2020 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (this.action == MovementController.Action.MOVE_TO && !this.seal.getNavigator().noPath()) {
  2.                double d0 = this.posX - this.seal.func_226277_ct_();
  3.                double d1 = this.posY - this.seal.func_226278_cu_();
  4.                double d2 = this.posZ - this.seal.func_226281_cx_();
  5.                double d3 = (double)MathHelper.sqrt(d0 * d0 + d1 * d1 + d2 * d2);
  6.                d1 = d1 / d3;
  7.                float f = (float)(MathHelper.atan2(d2, d0) * (double)(180F / (float)Math.PI)) - 90.0F;
  8.                this.seal.rotationYaw = this.limitAngle(this.seal.rotationYaw, f, 90.0F);
  9.                this.seal.renderYawOffset = this.seal.rotationYaw;
  10.                float f1 = (float)(this.speed * this.seal.getAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).getValue());
  11.                this.seal.setAIMoveSpeed(MathHelper.lerp(0.125F, this.seal.getAIMoveSpeed(), f1));
  12.                this.seal.setMotion(this.seal.getMotion().add(0.0D, (double)this.seal.getAIMoveSpeed() * d1 * 0.1D, 0.0D));
  13.            
  14.            }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top