Translations:Slime Block/10/en

From Minecraft Parkour Wiki

//called at the end of Entity.moveEntity(), after the previous method public void onEntityCollidedWithBlock(Entity e) {

   if (Math.abs(e.motionY) < 0.1D && !e.isSneaking())
   {
       double mult = 0.4 + Math.abs(e.motionY)*0.2;
       e.motionX *= mult;
       e.motionZ *= mult;
   }

} </syntaxhighlight>