Translations:Vertical Movement Formulas/18/zh

From Minecraft Parkour Wiki
Revision as of 15:18, 28 January 2022 by Pjx1314 (talk | contribs) (Created page with "protected void jump() { this.motionY = this.getJumpUpwardsMotion(); if (this.isPotionActive(Potion.jump)) { this.motionY += (this.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.1F; } this.isAirBorne = true; }")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

protected void jump() {

   this.motionY = this.getJumpUpwardsMotion();
   if (this.isPotionActive(Potion.jump))
   {
       this.motionY += (this.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.1F;
   }
   this.isAirBorne = true;

}