Ceiling Hover/zh: Difference between revisions

From Minecraft Parkour Wiki
Content added Content deleted
(Created page with "让我们回顾一下1.8125bc天花板悬停设置的步骤: #在1.8125bc下跳跃会与玩家下方0.2米的方块发生垂直碰撞(在地面) #如果方块是黏液方块...")
(Created page with "'''注意:'''这个小故障只会发生几Ticks,但是通过跳跃提升,持续的时间会更长。天花板悬停可以随时通过潜行中断。")
Line 65: Line 65:




'''注意:'''这个小故障只会发生几Ticks,但是通过跳跃提升,持续的时间会更长。天花板悬停可以随时通过潜行中断。
<div lang="en" dir="ltr" class="mw-content-ltr">
'''Note:''' This glitch happens for a few ticks, but with Jump Boost it would take longer. Ceiling hover can be interrupted at any time by sneaking.
</div>





Revision as of 11:44, 26 August 2021

Other languages:
在 1.8 中,這是唯一可用於執行天懸停的設置 (1.8125bc 下面有史萊姆)

Ceiling Hover is a glitch that makes the player "hover" between a ceiling and a bouncy block (slime, or beds since 1.12). It can be performed by jumping under a ceiling such that the block 2.001b below the ceiling has bouncing properties.




解釋

每當玩家與一個方塊(地板或天花板)垂直碰撞時,遊戲將應用碰撞物理。

對於幾乎每個方塊,這只是意味著將玩家的垂直速度設置為 0。

/* in class Block */
public void onVerticalCollision(Entity entityIn)
{
    entityIn.motionY = 0.0D;
}


但有一個例外:粘液塊(和 1.12+ 中的床)。

/* in class BlockSlime */
public void onVerticalCollision(Entity entityIn)
{
    if (entityIn.isSneaking())
        super.onVerticalCollision(entityIn);
    else if (entityIn.motionY < 0.0D)
        entityIn.motionY = -entityIn.motionY;
}


  • 如果玩家正在潛行,它將被視為常規碰撞(垂直移動設置為0)
  • 否則,它將檢查玩家的速度是否為負,然後將其反轉。


請注意,如果玩家以某種方式以正速度移動(而不是潛行),則不會發生任何事情。

事實上,這正是這個故障發生的情況。


當遊戲檢測到垂直碰撞時,它會考慮在玩家位置下0.2米的方塊應用碰撞物理(就算是天花板碰撞……)


讓我們回顧一下1.8125bc天花板懸停設置的步驟:

  1. 在1.8125bc下跳躍會與玩家下方0.2米的方塊發生垂直碰撞(在地面)
  2. 如果方塊是黏液方塊,那麼垂直速度不會設置為0,玩家仍然懸掛在天花板下。
  3. 重複步驟(2),直到玩家的垂直速度由於重力而變為負值。


注意:這個小故障只會發生幾Ticks,但是通過跳躍提升,持續的時間會更長。天花板懸停可以隨時通過潛行中斷。



Consequences

This glitch is pretty insignificant: it isn't game-breaking in any way, and requires very specific setups to be made use of.