方块

From Minecraft Parkour Wiki
Revision as of 13:00, 24 August 2021 by Pjx1314 (talk | contribs) (Created page with "0.875 × 0.75")
Other languages:

方块是占据世界空间的基本结构单位。


碰撞箱是一个玩家无法穿过的固体空间,由一个或多个坐标轴方向上的长方体,即边界箱组成。实体同样拥有各自的边界箱,但处理方法与固体空间不同(除了)。

  • 不要与判定箱相混淆,判定箱指的是玩家可以互动的区域(攻击,挖掘,右键等)。
  • 同样不要与模型相混淆,模型只是方块或实体在屏幕上显示的图形。
  • 最后,一些方块拥有各自的“效果箱”,如液体,梯子,仙人掌,压力板等。它们拥有特殊的代码与应用。


例如:按钮没有碰撞箱,因此玩家可以从中穿过。但它拥有可以被玩家点击的判定箱。

又例如:屏障方块拥有完全相同的边界箱与判定箱,但是在代码中被强制编写为不显示模型。



本页面列出了 1.8 版本中所有方块的碰撞箱与属性。

拥有特殊属性或没有碰撞箱的方块则提及于各自的页面。

图像来源于 BlockbenchMinecraft wiki


资源:

  • BetterParkourModels, a resource pack that modifies models to be slightly more accurate.
  • BetterParkourModels+, an faithful update to BPM that corrects and adds some models (made by Fuzzbearplush).
  • TrueModels, an alternative resource pack that reworks models to look accurate and natural.



Simple Collision Boxes

这些碰撞箱由单个边界箱组成。方块按长度,宽度,再到高度的顺序排列。

方块 宽度(b) 高度(b) 信息 模型
石墙(4 面连接) 1 × 1 1.5 相邻的方块必须是固体方块,石墙或栅栏门。
普通方块 1 × 1 1
灵魂沙 1 × 1 0.875 看上去像完整方块,但实际上矮 2 个像素。

减缓其上方实体的行走速度。

末地传送门框架 1 × 1 0.8125
附魔台 1 × 1 0.75
床方块 1 × 1 0.5625 底部看上去是空的,但实际有碰撞箱。
台阶 1 × 1 0.5 可上下翻转。
阳光传感器 1 × 1 0.375
活板门(水平放置) 1 × 1 0.1875 可上下翻转。

可以翻转到竖直方向。

红石中继器 1 × 1 0.125
地毯 1 × 1 0.0625
睡莲 1 × 1 0.015625 仅有 ¼ 个像素高。
1 × 1 0

0.125

0.25

0.375

0.5

0.625

0.75

0.875

雪看上去比实际高度高 2 个像素。

一层的雪虽然没有高度,但仍然有碰撞箱。

石墙(3 面连接) 1 × 0.75 1.5 可改变朝向(4 种变体)。

相邻的方块必须是固体方块,石墙或栅栏门。

铁砧 1 × 0.75 1 碰撞箱居中。可改变朝向(2 种变体)。

看上去比实际要窄。

活塞底座(激活状态) 1 × 0.75 1 可改变朝向(4 种变体)。
石墙(相对 2 面连接) 1 × 0.375 1.5 碰撞箱居中。可改变朝向(2 种变体)。

相邻的方块必须是固体方块,石墙或栅栏门。

在上方放置方块会改变它的外观,但碰撞箱不变。

在上方放置方块会改变它的外观,但碰撞箱不变。

栅栏(相对 2 面连接) 1 × 0.25 1.5 碰撞箱居中。可改变朝向(2 种变体)。

相邻的方块必须是固体方块,栅栏或栅栏门。

栅栏门 1 × 0.25 1.5 碰撞箱居中。可改变朝向(2 种变体)。

打开后没有碰撞箱。

活板门(竖直放置) 1 × 0.1875 1 可改变朝向,可上下翻转(8 种变体)。

可以翻转到水平方向。.

1 × 0.1875 1 可改变朝向(4 种变体)。

可以翻转到另一个方向。

梯子 1 × 0.125 1 可改变朝向(4 种变体)。

实体可以攀爬。

玻璃板(相对 2 面连接) 1 × 0.125 1 碰撞箱居中。可改变朝向(2 种变体)。

相邻的方块必须是固体方块,玻璃板或铁栏杆。

箱子(长) 0.9375 × 0.875 0.875 必须与另一个箱子相邻。
龙蛋 0.875 × 0.875 1 碰撞箱居中。

外观与碰撞箱差异很大。

仙人掌 0.875 × 0.875 0.9375 碰撞箱居中。

靠近的实体会受到伤害。

箱子 0.875 × 0.875 0.875 碰撞箱居中。
蛋糕 0.875 × 0.875

0.875 × 0.75

0.875 × 0.625

0.875 × 0.5

0.875 × 0.375

0.875 × 0.25

0.875 × 0.125

0.5 The full cake is centered.

Each bite takes away 0.125b from the West (-X)

Wall (2-adjacent) 0.75 × 0.75 1.5 Orientable (4 variants).

Adjacent blocks must be solid, walls, or fencegates.

Wall (1-sided) 0.75 × 0.5 1.5 Orientable (4 variants).

Adjacent block must be solid, a wall, or a fencegate.

Fence (1-sided) 0.625 × 0.25 1.5 Orientable (4 variants).

Adjacent block must be solid, a fences, or a fencegate.

Wall (default) 0.5 × 0.5 1.5 Centered.
Cocoa (big) 0.5 × 0.5 Low: 0.1875

Top: 0.75

Orientable (4 variants).

1 pixel away from the wall it's attached to.

Trivia: the top texture is only 7 pixels wide.

Head (walled) 0.5 × 0.5 Low: 0.25

Top: 0.75

Orientable (4 variants).
Head (default) 0.5 × 0.5 0.5 Centered.

A head can be placed diagonally (16 variants total),

but the collision box doesn't change.

Pane (1-sided) 0.5 × 0.125 1 Orientable (4 variants).

Appears 1 pixel longer than it really is.

Adjacent block must be solid, or a pane/bar.

Cocoa (medium) 0.375 × 0.375 Low: 0.3125

Top: 0.75

Orientable (4 variants).

1 pixel away from the wall it's attached to.

Flowerpot 0.375 × 0.375 0.375 Centered.
Fence (default) 0.25 × 0.25 1.5 Centered.
Cocoa (small) 0.25 × 0.25 Low: 0.4375

Top: 0.75

Orientable (4 variants).

1 pixel away from the wall it's attached to.



Composite Collision Boxes

Collision boxes that consist of two or more bounding boxes.

"Except" represents an intangible zone rather than a tangible one (simpler to describe that listing all bounding boxes)

Block Widths (b) Height (b) Comments Model
Stair (normal) Base: 1 × 1

Top: 1 × 0.5

Base: 0.5

Top: 1

Orientable, Inversible (8 variants).
Stair (outer) Base: 1 × 1

Top: 0.5 × 0.5

Base: 0.5

Top: 1

Orientable, Inversible (8 variants).

Depends on adjacent stair blocks.

Stair (inner) Base: 1 × 1

Except: -0.5 × -0.5

Base: 1

Except: -0.5

Orientable, Inversible (8 variants).

Depends on adjacent stair blocks.

End Portal Frame (eye) Base: 1 × 1

Eye: 0.375 × 0.375

Base: 0.8125

Eye: 1

The eye looks bigger than it is.

(Appears 8 px in width, but is actually 6 px wide)

Hopper Base: 1 × 1

Except: -0.75 × -0.75

Base: 1

Except: -0.375

The bottom doesn't look tangible, but it actually is.

The interior floor is 1 pixel lower than it looks.

Cauldron Base: 1 × 1

Except: -0.75 × -0.75

Base: 1

Except: -0.6875

The bottom doesn't look tangible, but it actually is.

The interior floor is 1 pixel higher than it looks

Brewing Stand Base: 1 × 1

Rod: 0.125 × 0.125

Base: 0.125

Rod: 0.875

The base looks very different from its bounding box.
Piston Head (Vertical) Head: 1 × 1

Arm: 0.25 × 0.25

Head: 0.25

Top: 1

Centered. Inversible.

The arm is shorter than it looks (model extended by 4px).

Piston Head (N/S/E) Head: 1 × 0.25

Arm: 0.75 × 0.5

Head: 1

Arm-Low: 0.375

Arm-Top: 0.625

Orientable (3 variants). Accurate model.

The arm is wider than it looks (0.5m width).

The arm is shorter than it looks (model extended by 4px).

Piston Head (West) Head: 1 × 0.25

Arm: 0.75 × 0.25

Head: 1

Arm-Low: 0.25

Arm-Top: 0.75

Bugged (fixed in 1.9). Accurate model.

In 1.9, piston heads were changed to match their model.

Fence (4-sided) Post: 0.25 × 0.25

Sides: 0.375 × 0.25

1.5 Adjacent blocks must be solid, fences, or fencegates.
Fence (3-sided) Post: 0.25 × 0.25

Sides: 0.375 × 0.25

1.5 Orientable (4 variants).

Adjacent blocks must be solid, fences, or fencegates.

Fence (2-adjacent) Post: 0.25 × 0.25

Sides: 0.375 × 0.25

1.5 Orientable (4 variants).

Adjacent blocks must be solid, fences, or fencegates.

Pane (Default / 4-sided) Sides: 0.5 × 0.125 1 Adjacent blocks must be solid, or panes/bars.
Pane (3-sided) Sides: 0.5 × 0.125 1 Orientable (4 variants).

Adjacent blocks must be solid, or panes/bars.

Pane (2-adjacent) Sides: 0.5 × 0.125 1 Orientable (4 variants).

Adjacent blocks must be solid, or panes/bars.

The exterior corner has a 1px wide opening

(despite the model showing a clean 90° corner).



Other

Block Widths (b) Height (b) Comments Model
Boat 1.5 x 1.5 0.6 Entity.