Created
June 20, 2023 02:07
-
-
Save MWHunter/f6096b05dd665d98a034ef1d005adc4a to your computer and use it in GitHub Desktop.
camel jumping code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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