Translations:Sneaking/17/zh: Difference between revisions

From Minecraft Parkour Wiki
Content added Content deleted
No edit summary
No edit summary
 
Line 2: Line 2:
}
}
//(从初始位置开始)检查 Z 轴方向上玩家下方地面的最远处
//(从初始位置开始)检查 Z 轴方向上玩家下方最远处的地面
while(dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(0,-1,dZ)).isEmpty())
while(dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(0,-1,dZ)).isEmpty())
{
{

Latest revision as of 07:36, 25 June 2022

Message definition (Sneaking)
dX_intended = dX;
       }
                
       //check for furthest ground under player in the Z axis (from initial position)
       while(dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(0,-1,dZ)).isEmpty())
       {
           if (dZ < increment && dZ >= -increment)
               dZ = 0.0D;
           else if (dZ > 0.0D)
               dZ -= increment;
           else
               dZ += increment;

dX_intended = dX;

       }
               
       //(从初始位置开始)检查 Z 轴方向上玩家下方最远处的地面
       while(dZ != 0.0D && getCollidingBoundingBoxes(this.boundingBox.offset(0,-1,dZ)).isEmpty())
       {
           if (dZ < increment && dZ >= -increment)
               dZ = 0.0D;
           else if (dZ > 0.0D)
               dZ -= increment;
           else
               dZ += increment;