Translations:Slime Block/10/zh

    From Minecraft Parkour Wiki

    //在 Entity.moveEntity() 结束时,上一个方法之后调用 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>