Skip to content

Instantly share code, notes, and snippets.

@MWHunter
Created June 20, 2023 02:07
Show Gist options
  • Save MWHunter/f6096b05dd665d98a034ef1d005adc4a to your computer and use it in GitHub Desktop.
Save MWHunter/f6096b05dd665d98a034ef1d005adc4a to your computer and use it in GitHub Desktop.
camel jumping code
protected void executeRidersJump(float p_251967_, Vec3 p_275627_) {
double d0 = this.getAttributeValue(Attributes.JUMP_STRENGTH) * (double)this.getBlockJumpFactor() + (double)this.getJumpBoostPower();
this.addDeltaMovement(this.getLookAngle().multiply(1.0D, 0.0D, 1.0D).normalize().scale((double)(22.2222F * p_251967_) * this.getAttributeValue(Attributes.MOVEMENT_SPEED) * (double)this.getBlockSpeedFactor()).add(0.0D, (double)(1.4285F * p_251967_) * d0, 0.0D));
this.dashCooldown = 55;
this.setDashing(true);
this.hasImpulse = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment