Minecraft Wiki

除另有声明,转载时均必须注明出处若簡繁轉換出錯,請以遊戲內為準请勇于扩充与修正内容有兴趣逛逛我们的微博沟通交流,欢迎到社区专页需要协助,请在告示板留言

了解更多

Minecraft Wiki
Advertisement
Dark Oak Sapling
此条目仍需完善。

你可以帮助我们扩充关于该主题的更多信息。

A hitbox defines the physical "boundaries" (or an approximation thereof) of a block or entity. Hitboxes are utilised in the calculations of collisions and targeting.

方块

碰撞箱

碰撞箱用于管理与实体的碰撞。

并非所有方块都具有碰撞箱,如告示牌火把没有碰撞箱。

轮廓箱

轮廓箱在看向指定方块时显示。当十字准星指向方块时,它将显示为轮廓线框。

互动箱

互动箱用于处理瞄准方块后的交互。当一个方块的互动箱被选中时,可以对其进行破坏、放置或其他必要交互。

其默认范围与轮廓箱相同。但仍有例外:[需要更多信息]

Block support shape[新增:JE 1.16]

Block support shape is mainly used to judge whether another attaching block (e.g. torches, doors, buttons, etc.) can be attached to it.

Its default is the same as the collision box. There are some exceptions:

  • Leaves have an empty block support shape.
  • The Block support shape of the snow layer is the same as its selection box.
  • Soul sand has a full block support shape.

实体

实体的判定箱总是一个严格的以正方形为底的长方体,无视实体的实际形状。

Boundary box

Entity boundary box can be viewed via the F3+B debug shortcut.

互动箱

互动箱用于处理瞄准实体后的交互。当一个实体的互动箱被选中时,可以对其进行攻击或其他必要交互。

历史

Java版
1.1317w47aThe outline boxess of anvils and hoppers now much more closely fit the model shape of these blocks.
The hitbox of brewing stands now takes into account the central rod as well.[1]
The outline boxes of fences is now correctly L-shaped, T-shaped or +-shaped when branching in perpendicular directions.[2]
Cactus now has a correct cuboid outline box.[3]
Blocks containing multiple vines now have better outline boxes.
Glass panes and iron bars have cleaner outline boxes when branching.
End portal frame outline boxes now properly account for the eye.
Piston and lily pad outline boxes were changed.
The collision box of walls has been made to be correctly concave.[4]
1.14?The outline boxes of beds now better matches the visual shape of the bed.
19w13aThe outline boxes of cauldrons now better fits the model, allowing for blocks beneath it to be targeted.[5]
Java版(即将到来)
1.1620w10aFire now has an outline box (alongside soul fire),[6] bringing it more in line with other blocks. Previously, fire had no outline box at all, and breaking it required targeting underlying blocks, which also allowed it to be put out in Creative mode when holding a sword or trident, which were programmed to not break blocks. It also prevented its block states from being read in the debug screen or modified via debug stick.
20w18aThe outline box of redstone wire has now been changed to much more closely the visual shape of the block. For example, redstone wire branching in different directions causes its outline box to itself branch in said directions,[7] mirroring the behavior of fences, glass panes, iron bars and walls, and, if travelling up the side of a block, the vertical portion of the dust can now also be targeted.[8]

你知道吗

  • Fluids do not have hitboxes, even in cases where they would behave like a block.[9]
  • The ender dragon is composed of nine distinct hitboxes.

参考

游戏内容

Advertisement