Blocks: Difference between revisions
m (添加翻译) Tag: Reverted |
Tag: Undo |
||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<translate> |
<translate> |
||
A '''Block''' is a basic unit of structure occupying space in the world. |
|||
'''方块'''是占据世界空间的基本结构单位。 |
|||
'''碰撞箱'''是一个玩家无法穿过的固体空间,由一个或多个坐标轴方向上的长方体,即'''边界箱'''组成。实体同样拥有各自的边界箱,但处理方法与固体空间不同(除了[https://minecraft.gamepedia.com/Boat 船])。 |
|||
A '''Collision Box''' is a solid volume of space that the player is not meant to pass through, which consists of one or multiple '''Bounding Boxes''', which are axis-aligned cuboids. Entities have their own bounding box, but are not treated as solid space (except for [https://minecraft.gamepedia.com/Boat boats]). |
|||
* 不要与'''互动箱'''相混淆,互动箱指的是玩家可以互动的区域(攻击,挖掘,右键等)。 |
|||
* Not to confuse with a '''Hitbox''', which is a volume of space that a player can interact with (attack, mine, right-click...). |
|||
* 同样不要与'''模型'''相混淆,模型只是方块或实体在屏幕上显示的图形。 |
|||
* Also not to confuse with a '''Model''', which is simply the graphical representation of a block / entity on screen. |
|||
* 最后,一些方块拥有各自的“效果箱”,如液体,梯子,仙人掌,压力板等。它们拥有特殊的代码与应用。 |
|||
*Finally, some blocks have their own "effect box", such as fluids, ladders, cacti, pressure plates... All of which are coded and applied differently. |
|||
For example: a [https://minecraft.gamepedia.com/Button button] has no collision box, as the player can walk through one, but has a hitbox which the player can click on. |
|||
Another example: a [https://minecraft.gamepedia.com/Barrier barrier block] has overlapping bounding box and hitbox, but is hard-coded to have no model. |
|||
本页面列出了 1.8 版本中所有方块的碰撞箱与属性。 |
|||
This article lists the collision boxes and properties of all blocks in 1.8. |
|||
拥有特殊属性或没有碰撞箱的方块则提及于各自的页面。 |
|||
Blocks with particular properties and/or no collision boxes are presented on their own articles. |
|||
图像来源于 [https://blockbench.net/ Blockbench] 与 [https://minecraft.gamepedia.com/Minecraft_Wiki Minecraft wiki]。 |
|||
Images were taken with [https://blockbench.net/ Blockbench], or from the [https://minecraft.gamepedia.com/Minecraft_Wiki Minecraft wiki]. |
|||
'''资源:''' |
|||
'''Resources:''' |
|||
*[https://www.curseforge.com/minecraft/texture-packs/better-parkour-models/files/2333891 更好的跑酷模型],一个修改了模型的资源包,使其看上去更准确。 |
|||
*[https://discord.gg/fArwyXM 更好的跑酷模型+],基于更好的跑酷模型的更新,更正并添加了一些模型(由 Fuzzbearplush 制作)。 |
|||
*[https://www.curseforge.com/minecraft/texture-packs/truemodels 真实的模型],一个备用资源包,重新制作了模型使其看上去更准确且更自然。 |
|||
*[https://www.curseforge.com/minecraft/texture-packs/better-parkour-models/files/2333891 BetterParkourModels], a resource pack that modifies models to be slightly more accurate. |
|||
*[https://discord.gg/fArwyXM BetterParkourModels+], an faithful update to BPM that corrects and adds some models (made by Fuzzbearplush). |
|||
*[https://www.curseforge.com/minecraft/texture-packs/truemodels TrueModels], an alternative resource pack that reworks models to look accurate and natural. |
|||
== 简单碰撞箱 == |
|||
这些碰撞箱由单个边界箱组成。方块按长度,宽度,再到高度的顺序排列。 |
|||
== Simple Collision Boxes == |
|||
Collision boxes that consist of a single bounding box. Blocks are ordered by length, then width, then height. |
|||
{| class="wikitable" |
{| class="wikitable" |
||
!Block |
|||
!方块 |
|||
!Widths (b) |
|||
!宽度(b) |
|||
!Height (b) |
|||
!高度(b) |
|||
!Comments |
|||
!信息 |
|||
!Model |
|||
!模型 |
|||
|- |
|- |
||
|Wall (4-sided) |
|||
|石墙(4 面连接) |
|||
|1 × 1 |
|1 × 1 |
||
|1.5 |
|1.5 |
||
|Adjacent blocks must be solid, walls, or fencegates. |
|||
|相邻的方块必须是固体方块,石墙或栅栏门。 |
|||
|[[File:Wall 4-sided.png|center|frameless|102x102px|alt=]] |
|[[File:Wall 4-sided.png|center|frameless|102x102px|alt=]] |
||
|- |
|- |
||
|Default |
|||
|普通方块 |
|||
|1 × 1 |
|1 × 1 |
||
|1 |
|1 |
||
Line 54: | Line 58: | ||
|[[File:Block_default.png|alt=|center|frameless|107x107px]] |
|[[File:Block_default.png|alt=|center|frameless|107x107px]] |
||
|- |
|- |
||
|[[Special:MyLanguage/Soulsand|Soulsand]] |
|||
|[[灵魂沙]] |
|||
|1 × 1 |
|1 × 1 |
||
|0.875 |
|0.875 |
||
|Looks like a full block, but is actually 2 px lower. |
|||
|看上去像完整方块,但实际上矮 2 个像素。 |
|||
Slows down entities walking on top of it. |
|||
减缓其上方实体的行走速度。 |
|||
|[[File:Soulsand.png|alt=|center|frameless|107x107px]] |
|[[File:Soulsand.png|alt=|center|frameless|107x107px]] |
||
|- |
|- |
||
|End Portal Frame |
|||
|末地传送门框架 |
|||
|1 × 1 |
|1 × 1 |
||
|0.8125 |
|0.8125 |
||
Line 68: | Line 71: | ||
|[[File:End_Portal_Frame.png|alt=|center|frameless|100x100px]] |
|[[File:End_Portal_Frame.png|alt=|center|frameless|100x100px]] |
||
|- |
|- |
||
|Enchantment Table |
|||
|附魔台 |
|||
|1 × 1 |
|1 × 1 |
||
|0.75 |
|0.75 |
||
Line 74: | Line 77: | ||
|[[File:Enchantment_Table.png|alt=|center|frameless|100x100px]] |
|[[File:Enchantment_Table.png|alt=|center|frameless|100x100px]] |
||
|- |
|- |
||
|Bed block |
|||
|床方块 |
|||
|1 × 1 |
|1 × 1 |
||
|0.5625 |
|0.5625 |
||
|The bottom doesn't look tangible, but it actually is. |
|||
|底部看上去是空的,但实际有碰撞箱。 |
|||
|[[File:Bed.png|alt=|center|frameless|100x100px]] |
|[[File:Bed.png|alt=|center|frameless|100x100px]] |
||
|- |
|- |
||
|Slab |
|||
|台阶 |
|||
|1 × 1 |
|1 × 1 |
||
|0.5 |
|0.5 |
||
|Inversible. |
|||
|可上下翻转。 |
|||
|[[File:Block_Slab.png|alt=|center|frameless|100x100px]] |
|[[File:Block_Slab.png|alt=|center|frameless|100x100px]] |
||
|- |
|- |
||
|Daylight Sensor |
|||
|阳光传感器 |
|||
|1 × 1 |
|1 × 1 |
||
|0.375 |
|0.375 |
||
Line 92: | Line 95: | ||
|[[File:Daylight_Sensor.png|alt=|center|frameless|100x100px]] |
|[[File:Daylight_Sensor.png|alt=|center|frameless|100x100px]] |
||
|- |
|- |
||
|Trapdoor (horizontal) |
|||
|活板门(水平放置) |
|||
|1 × 1 |
|1 × 1 |
||
|0.1875 |
|0.1875 |
||
|Inversible. |
|||
|可上下翻转。 |
|||
Can be flipped to its vertical variant. |
|||
可以翻转到竖直方向。 |
|||
|[[File:Trapdoor.png|alt=|center|frameless|100x100px]] |
|[[File:Trapdoor.png|alt=|center|frameless|100x100px]] |
||
|- |
|- |
||
|Repeater |
|||
|红石中继器 |
|||
|1 × 1 |
|1 × 1 |
||
|0.125 |
|0.125 |
||
Line 106: | Line 108: | ||
|[[File:Repeater.png|alt=|center|frameless|100x100px]] |
|[[File:Repeater.png|alt=|center|frameless|100x100px]] |
||
|- |
|- |
||
|Carpet |
|||
|地毯 |
|||
|1 × 1 |
|1 × 1 |
||
|0.0625 |
|0.0625 |
||
Line 112: | Line 114: | ||
|[[File:Carpet.png|alt=|center|frameless|100x100px]] |
|[[File:Carpet.png|alt=|center|frameless|100x100px]] |
||
|- |
|- |
||
|Lily Pad |
|||
|睡莲 |
|||
|1 × 1 |
|1 × 1 |
||
|0.015625 |
|0.015625 |
||
|Is ¼ of a pixel in height. |
|||
|仅有 ¼ 个像素高。 |
|||
|[[File:Lily_Pad.png|alt=|center|frameless|100x100px]] |
|[[File:Lily_Pad.png|alt=|center|frameless|100x100px]] |
||
|- |
|- |
||
|Snow Layer |
|||
|雪 |
|||
|1 × 1 |
|1 × 1 |
||
|0 |
|0 |
||
Line 135: | Line 137: | ||
0.875 |
0.875 |
||
|Snow layers look 2 pixels higher than their real height. |
|||
|雪看上去比实际高度高 2 个像素。 |
|||
Despite having no height, a single layer of snow is tangible. |
|||
一层的雪虽然没有高度,但仍然有碰撞箱。 |
|||
|[[File:Snow.gif|center|frameless]] |
|[[File:Snow.gif|center|frameless]] |
||
|- |
|- |
||
|Wall (3-sided) |
|||
|石墙(3 面连接) |
|||
|1 × 0.75 |
|1 × 0.75 |
||
|1.5 |
|1.5 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
Adjacent blocks must be solid, walls, or fencegates. |
|||
相邻的方块必须是固体方块,石墙或栅栏门。 |
|||
|[[File:Wall 3-sided.png|center|frameless|102x102px|alt=]] |
|[[File:Wall 3-sided.png|center|frameless|102x102px|alt=]] |
||
|- |
|- |
||
|[[Hitbox Manipulation| |
|[[Special:MyLanguage/Hitbox Manipulation|Anvil]] |
||
|1 × 0.75 |
|1 × 0.75 |
||
|1 |
|1 |
||
|Centered. Orientable (2 variants). |
|||
|碰撞箱居中。可改变朝向(2 种变体)。 |
|||
Looks thinner than it actually is. |
|||
看上去比实际要窄。 |
|||
|[[File:Anvil.png|center|frameless|102x102px|alt=]] |
|[[File:Anvil.png|center|frameless|102x102px|alt=]] |
||
|- |
|- |
||
|Piston Base (Powered) |
|||
|活塞底座(激活状态) |
|||
|1 × 0.75 |
|1 × 0.75 |
||
|1 |
|1 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
|[[File:Piston Base Powered.png|center|frameless|102x102px|alt=]] |
|[[File:Piston Base Powered.png|center|frameless|102x102px|alt=]] |
||
|- |
|- |
||
|Wall (2-opposite) |
|||
|石墙(相对 2 面连接) |
|||
|1 × 0.375 |
|1 × 0.375 |
||
|1.5 |
|1.5 |
||
|Centered. Orientable (2 variants). |
|||
|碰撞箱居中。可改变朝向(2 种变体)。 |
|||
Adjacent blocks must be solid, walls, or fencegates. |
|||
Placing a block on top of it doesn't change its collision box, |
|||
相邻的方块必须是固体方块,石墙或栅栏门。 |
|||
despite its appearance being different. |
|||
在上方放置方块会改变它的外观,但碰撞箱不变。 |
|||
|[[File:Wall 2-opposite.png|center|frameless|91x91px|alt=]] |
|[[File:Wall 2-opposite.png|center|frameless|91x91px|alt=]] |
||
|- |
|- |
||
|Fence (2-opposite) |
|||
|栅栏(相对 2 面连接) |
|||
|1 × 0.25 |
|1 × 0.25 |
||
|1.5 |
|1.5 |
||
|Centered. Orientable (2 variants). |
|||
|碰撞箱居中。可改变朝向(2 种变体)。 |
|||
Adjacent blocks must be solid, fences, or fencegates. |
|||
相邻的方块必须是固体方块,栅栏或栅栏门。 |
|||
|[[File:Fence 2-opposite.png|center|frameless|90x90px|alt=]] |
|[[File:Fence 2-opposite.png|center|frameless|90x90px|alt=]] |
||
|- |
|- |
||
|Fencegate |
|||
|栅栏门 |
|||
|1 × 0.25 |
|1 × 0.25 |
||
|1.5 |
|1.5 |
||
|Centered. Orientable (2 variants). |
|||
|碰撞箱居中。可改变朝向(2 种变体)。 |
|||
Can be flipped to a variant with no collision box. |
|||
打开后没有碰撞箱。 |
|||
|[[File:Fencegate.png|center|frameless|82x82px|alt=]] |
|[[File:Fencegate.png|center|frameless|82x82px|alt=]] |
||
|- |
|- |
||
|Trapdoor (vertical) |
|||
|活板门(竖直放置) |
|||
|1 × 0.1875 |
|1 × 0.1875 |
||
|1 |
|1 |
||
|Orientable, Inversible (8 variants). |
|||
|可改变朝向,可上下翻转(8 种变体)。 |
|||
Can be flipped to its horizontal variant. |
|||
可以翻转到水平方向。 |
|||
|[[File:Trapdoor vertical.png|center|frameless|103x103px|alt=]] |
|[[File:Trapdoor vertical.png|center|frameless|103x103px|alt=]] |
||
|- |
|- |
||
|Door |
|||
|门 |
|||
|1 × 0.1875 |
|1 × 0.1875 |
||
|1 |
|1 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
Can be flipped to another variant. |
|||
可以翻转到另一个方向。 |
|||
|[[File:Door.png|center|frameless|103x103px|alt=]] |
|[[File:Door.png|center|frameless|103x103px|alt=]] |
||
|- |
|- |
||
|[[Ladders and Vines| |
|[[Special:MyLanguage/Ladders and Vines|Ladder]] |
||
|1 × 0.125 |
|1 × 0.125 |
||
|1 |
|1 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
Can be climbed by entities. |
|||
实体可以攀爬。 |
|||
|[[File:Ladder.png|center|frameless|107x107px]] |
|[[File:Ladder.png|center|frameless|107x107px]] |
||
|- |
|- |
||
|Pane (2-opposite) |
|||
|玻璃板(相对 2 面连接) |
|||
|1 × 0.125 |
|1 × 0.125 |
||
|1 |
|1 |
||
|Centered. Orientable (2 variants). |
|||
|碰撞箱居中。可改变朝向(2 种变体)。 |
|||
Adjacent blocks must be solid, or panes/bars. |
|||
相邻的方块必须是固体方块,玻璃板或铁栏杆。 |
|||
|[[File:Pane 2-opposite.png|center|frameless|107x107px]] |
|[[File:Pane 2-opposite.png|center|frameless|107x107px]] |
||
|- |
|- |
||
|[[Hitbox Manipulation| |
|[[Special:MyLanguage/Hitbox Manipulation|Chest (long)]] |
||
|0.9375 × 0.875 |
|0.9375 × 0.875 |
||
|0.875 |
|0.875 |
||
|Must be next to another chest. |
|||
|必须与另一个箱子相邻。 |
|||
|[[File:Chest long.png|center|frameless|103x103px]] |
|[[File:Chest long.png|center|frameless|103x103px]] |
||
|- |
|- |
||
|Dragon Egg |
|||
|龙蛋 |
|||
|0.875 × 0.875 |
|0.875 × 0.875 |
||
|1 |
|1 |
||
|Centered. |
|||
|碰撞箱居中。 |
|||
Looks drastically different from its collision box. |
|||
外观与碰撞箱差异很大。 |
|||
|[[File:Dragon Egg.png|center|frameless|95x95px]] |
|[[File:Dragon Egg.png|center|frameless|95x95px]] |
||
|- |
|- |
||
|Cactus |
|||
|仙人掌 |
|||
|0.875 × 0.875 |
|0.875 × 0.875 |
||
|0.9375 |
|0.9375 |
||
|Centered. |
|||
|碰撞箱居中。 |
|||
Hurts entities close to it. |
|||
靠近的实体会受到伤害。 |
|||
|[[File:Cactus.png|center|frameless|110x110px]] |
|[[File:Cactus.png|center|frameless|110x110px]] |
||
|- |
|- |
||
|Chest |
|||
|箱子 |
|||
|0.875 × 0.875 |
|0.875 × 0.875 |
||
|0.875 |
|0.875 |
||
|Centered. |
|||
|碰撞箱居中。 |
|||
|[[File:Chest.png|center|frameless|101x101px]] |
|[[File:Chest.png|center|frameless|101x101px]] |
||
|- |
|- |
||
|Cake |
|||
|蛋糕 |
|||
|0.875 × 0.875 |
|0.875 × 0.875 |
||
Line 261: | Line 255: | ||
0.875 × 0.125 |
0.875 × 0.125 |
||
|0.5 |
|0.5 |
||
|The full cake is centered. |
|||
|完整的蛋糕碰撞箱居中。 |
|||
Each bite takes away 0.125b from the West (-X) |
|||
每食用一次蛋糕都会在西侧(-X)减少 0.125b。 |
|||
|[[File:Cake.gif|center|frameless|100x100px]] |
|[[File:Cake.gif|center|frameless|100x100px]] |
||
|- |
|- |
||
|Wall (2-adjacent) |
|||
|石墙(相邻 2 面连接) |
|||
|0.75 × 0.75 |
|0.75 × 0.75 |
||
|1.5 |
|1.5 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
Adjacent blocks must be solid, walls, or fencegates. |
|||
相邻的方块必须是固体方块,石墙或栅栏门。 |
|||
|[[File:Wall 2-adjacent.png|center|frameless|102x102px|alt=]] |
|[[File:Wall 2-adjacent.png|center|frameless|102x102px|alt=]] |
||
|- |
|- |
||
|Wall (1-sided) |
|||
|石墙(1 面连接) |
|||
|0.75 × 0.5 |
|0.75 × 0.5 |
||
|1.5 |
|1.5 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
Adjacent block must be solid, a wall, or a fencegate. |
|||
相邻的方块必须是固体方块,石墙或栅栏门。 |
|||
|[[File:Wall 1-sided.png|center|frameless|102x102px|alt=]] |
|[[File:Wall 1-sided.png|center|frameless|102x102px|alt=]] |
||
|- |
|- |
||
|Fence (1-sided) |
|||
|栅栏(1 面连接) |
|||
|0.625 × 0.25 |
|0.625 × 0.25 |
||
|1.5 |
|1.5 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
Adjacent block must be solid, a fences, or a fencegate. |
|||
相邻的方块必须是固体方块,栅栏或栅栏门。 |
|||
|[[File:Fence 1-sided.png|center|frameless|97x97px|alt=]] |
|[[File:Fence 1-sided.png|center|frameless|97x97px|alt=]] |
||
|- |
|- |
||
|Wall (default) |
|||
|石墙(普通) |
|||
|0.5 × 0.5 |
|0.5 × 0.5 |
||
|1.5 |
|1.5 |
||
|Centered. |
|||
|碰撞箱居中。 |
|||
|[[File:Wall default.png|center|frameless|99x99px|alt=]] |
|[[File:Wall default.png|center|frameless|99x99px|alt=]] |
||
|- |
|- |
||
|Cocoa (big) |
|||
|可可豆(大) |
|||
|0.5 × 0.5 |
|0.5 × 0.5 |
||
| |
|''Low:'' 0.1875 |
||
''Top:'' 0.75 |
|||
顶部:0.75 |
|||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
1 pixel away from the wall it's attached to. |
|||
''Trivia:'' the top texture is only 7 pixels wide. |
|||
与连接到的墙壁之间有 1 个像素的距离。 |
|||
其他信息:顶部材质的宽度只有 7 个像素。 |
|||
|[[File:Cocoa big.png|center|frameless|84x84px|alt=]] |
|[[File:Cocoa big.png|center|frameless|84x84px|alt=]] |
||
|- |
|- |
||
|Head (walled) |
|||
|头颅(靠墙) |
|||
|0.5 × 0.5 |
|0.5 × 0.5 |
||
| |
|''Low:'' 0.25 |
||
''Top:'' 0.75 |
|||
顶部:0.75 |
|||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
|[[File:Head wall.png|center|frameless|100x100px]] |
|[[File:Head wall.png|center|frameless|100x100px]] |
||
|- |
|- |
||
|Head (default) |
|||
|头颅(普通) |
|||
|0.5 × 0.5 |
|0.5 × 0.5 |
||
|0.5 |
|0.5 |
||
|Centered. |
|||
|碰撞箱居中。 |
|||
A head can be placed diagonally (16 variants total), |
|||
but the collision box doesn't change. |
|||
头颅可以斜向放置(共 16 种变体), |
|||
但碰撞箱不变。 |
|||
|[[File:Head default.png|center|frameless|100x100px]] |
|[[File:Head default.png|center|frameless|100x100px]] |
||
|- |
|- |
||
|Pane (1-sided) |
|||
|玻璃板(1 面连接) |
|||
|0.5 × 0.125 |
|0.5 × 0.125 |
||
|1 |
|1 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
Appears 1 pixel longer than it really is. |
|||
Adjacent block must be solid, or a pane/bar. |
|||
看上去比实际要长 1 个像素。 |
|||
相邻的方块必须是固体方块,玻璃板或铁栏杆。 |
|||
|[[File:Pane 1-sided.png|center|frameless|85x85px|alt=]] |
|[[File:Pane 1-sided.png|center|frameless|85x85px|alt=]] |
||
|- |
|- |
||
|Cocoa (medium) |
|||
|可可豆(中) |
|||
|0.375 × 0.375 |
|0.375 × 0.375 |
||
| |
|''Low:'' 0.3125 |
||
''Top:'' 0.75 |
|||
顶部:0.75 |
|||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
1 pixel away from the wall it's attached to. |
|||
与连接到的墙壁之间有 1 个像素的距离。 |
|||
|[[File:Cocoa medium.png|center|frameless|74x74px|alt=]] |
|[[File:Cocoa medium.png|center|frameless|74x74px|alt=]] |
||
|- |
|- |
||
|Flowerpot |
|||
|花盆 |
|||
|0.375 × 0.375 |
|0.375 × 0.375 |
||
|0.375 |
|0.375 |
||
|Centered. |
|||
|碰撞箱居中。 |
|||
|[[File:Flowerpot.png|center|frameless|55x55px|alt=]] |
|[[File:Flowerpot.png|center|frameless|55x55px|alt=]] |
||
|- |
|- |
||
|Fence (default) |
|||
|栅栏(普通) |
|||
|0.25 × 0.25 |
|0.25 × 0.25 |
||
|1.5 |
|1.5 |
||
|Centered. |
|||
|碰撞箱居中。 |
|||
|[[File:Fence_default.png|alt=|center|frameless|90x90px]] |
|[[File:Fence_default.png|alt=|center|frameless|90x90px]] |
||
|- |
|- |
||
|Cocoa (small) |
|||
|可可豆(小) |
|||
|0.25 × 0.25 |
|0.25 × 0.25 |
||
| |
|''Low:'' 0.4375 |
||
''Top:'' 0.75 |
|||
顶部:0.75 |
|||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
1 pixel away from the wall it's attached to. |
|||
与连接到的墙壁之间有 1 个像素的距离。 |
|||
|[[File:Cocoa small.png|center|frameless|58x58px|alt=]] |
|[[File:Cocoa small.png|center|frameless|58x58px|alt=]] |
||
|} |
|} |
||
== 复合碰撞箱 == |
|||
这些碰撞箱由两个或多个边界箱组成。 |
|||
“空缺部分”指的是无碰撞箱的区域(这样列举边界箱更简便)。 |
|||
==Composite Collision Boxes== |
|||
Collision boxes that consist of two or more bounding boxes. |
|||
"''<s>Except</s>''" represents an intangible zone rather than a tangible one (simpler to describe that listing all bounding boxes) |
|||
{| class="wikitable" |
{| class="wikitable" |
||
!Block |
|||
!方块 |
|||
!Widths (b) |
|||
!宽度(b) |
|||
!Height (b) |
|||
!高度(b) |
|||
!Comments |
|||
!信息 |
|||
!Model |
|||
!模型 |
|||
|- |
|- |
||
|Stair (normal) |
|||
|楼梯(普通) |
|||
| |
|''Base:'' 1 × 1 |
||
''Top:'' 1 × 0.5 |
|||
| |
|''Base:'' 0.5 |
||
''Top:'' 1 |
|||
顶部:1 |
|||
|Orientable, Inversible (8 variants). |
|||
|可改变朝向,可上下翻转(8 种变体)。 |
|||
|[[File:Block_Stair_default.png|alt=|center|frameless|110x110px]] |
|[[File:Block_Stair_default.png|alt=|center|frameless|110x110px]] |
||
|- |
|- |
||
|Stair (outer) |
|||
|楼梯(外角) |
|||
| |
|''Base:'' 1 × 1 |
||
''Top:'' 0.5 × 0.5 |
|||
| |
|''Base:'' 0.5 |
||
''Top:'' 1 |
|||
顶部:1 |
|||
|Orientable, Inversible (8 variants). |
|||
|可改变朝向,可上下翻转(8 种变体)。 |
|||
Depends on adjacent stair blocks. |
|||
取决于相邻的楼梯方块。 |
|||
|[[File:Stair_outer.png|alt=|center|frameless|113x113px]] |
|[[File:Stair_outer.png|alt=|center|frameless|113x113px]] |
||
|- |
|- |
||
|Stair (inner) |
|||
|楼梯(内角) |
|||
| |
|''Base:'' 1 × 1 |
||
''<s>Except:</s>'' -0.5 × -0.5 |
|||
|''Base:'' 1 |
|||
|底座:1 |
|||
''<s>Except:</s>'' -0.5 |
|||
空缺部分:-0.5 |
|||
|Orientable, Inversible (8 variants). |
|||
|可改变朝向,可上下翻转(8 种变体)。 |
|||
Depends on adjacent stair blocks. |
|||
取决于相邻的楼梯方块。 |
|||
|[[File:Stair_inner.png|alt=|center|frameless|107x107px]] |
|[[File:Stair_inner.png|alt=|center|frameless|107x107px]] |
||
|- |
|- |
||
|End Portal Frame (eye) |
|||
|末地传送门框架(安置末影之眼) |
|||
| |
|''Base:'' 1 × 1 |
||
''Eye:'' 0.375 × 0.375 |
|||
| |
|''Base:'' 0.8125 |
||
''Eye:'' 1 |
|||
末影之眼:1 |
|||
|The eye looks bigger than it is. |
|||
|末影之眼看上去比实际上要大。 |
|||
(Appears 8 px in width, but is actually 6 px wide) |
|||
(看上去宽度为 8 个像素,实际只有 6 个像素) |
|||
|[[File:End_Portal_Frame_Eye.png|alt=|center|frameless|102x102px]] |
|[[File:End_Portal_Frame_Eye.png|alt=|center|frameless|102x102px]] |
||
|- |
|- |
||
|Hopper |
|||
|漏斗 |
|||
| |
|''Base:'' 1 × 1 |
||
''<s>Except:</s>'' -0.75 × -0.75 |
|||
|''Base:'' 1 |
|||
|底座:1 |
|||
''<s>Except:</s>'' -0.375 |
|||
|The bottom doesn't look tangible, but it actually is. |
|||
|底部看上去是空的,但实际有碰撞箱。 |
|||
The interior floor is 1 pixel lower than it looks. |
|||
内部的平面比看上去要低 1 个像素。 |
|||
|[[File:Hopper.png|center|frameless|101x101px]] |
|[[File:Hopper.png|center|frameless|101x101px]] |
||
|- |
|- |
||
|Cauldron |
|||
|炼药锅 |
|||
| |
|''Base:'' 1 × 1 |
||
''<s>Except:</s>'' -0.75 × -0.75 |
|||
|''Base:'' 1 |
|||
|底座:1 |
|||
''<s>Except:</s>'' -0.6875 |
|||
|The bottom doesn't look tangible, but it actually is. |
|||
|底部看上去是空的,但实际有碰撞箱。 |
|||
The interior floor is 1 pixel higher than it looks |
|||
内部的平面比看上去要高 1 个像素。 |
|||
|[[File:Cauldron.png|alt=|center|frameless|107x107px]] |
|[[File:Cauldron.png|alt=|center|frameless|107x107px]] |
||
|- |
|- |
||
|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. |
|||
|底座看上去与碰撞箱大为不同。 |
|||
|[[File:Brewing Stand.png|center|frameless|100x100px]] |
|[[File:Brewing Stand.png|center|frameless|100x100px]] |
||
|- |
|- |
||
|Piston Head (Vertical) |
|||
|活塞头(竖直方向) |
|||
| |
|''Head:'' 1 × 1 |
||
''Arm:'' 0.25 × 0.25 |
|||
| |
|''Head:'' 0.25 |
||
''Top:'' 1 |
|||
顶部:1 |
|||
|Centered. Inversible. |
|||
|碰撞箱居中。可上下翻转。 |
|||
The arm is shorter than it looks (model extended by 4px). |
|||
活塞臂实际比看上去短(模型加长了 4 个像素)。 |
|||
|[[File:Piston Head vertical.png|center|frameless|116x116px]] |
|[[File:Piston Head vertical.png|center|frameless|116x116px]] |
||
|- |
|- |
||
|Piston Head (N/S/E) |
|||
|活塞头(朝北或朝南或朝东) |
|||
| |
|''Head:'' 1 × 0.25 |
||
''Arm:'' 0.75 × 0.5 |
|||
|''Head:'' 1 |
|||
|活塞头:1 |
|||
''Arm-Low:'' 0.375 |
|||
活塞头底部:0.375 |
|||
''Arm-Top:'' 0.625 |
|||
活塞头顶部:0.625 |
|||
|Orientable (3 variants). [https://imgur.com/a/HVovakh Accurate model]. |
|||
|可改变朝向(3 种变体)。[https://sm.ms/image/HLFzi6G1UbTYhAO 更准确的模型]。 |
|||
The arm is wider than it looks (0.5m width). |
|||
活塞臂比看上去更宽(宽度为 0.5m)。 |
|||
The arm is shorter than it looks (model extended by 4px). |
|||
活塞臂实际比看上去短(模型加长了 4 个像素)。 |
|||
|[[File:Piston Head NSE.png|center|frameless|100x100px]] |
|[[File:Piston Head NSE.png|center|frameless|100x100px]] |
||
|- |
|- |
||
|Piston Head (West) |
|||
|活塞头(朝西) |
|||
| |
|''Head:'' 1 × 0.25 |
||
''Arm:'' 0.75 × 0.25 |
|||
|''Head:'' 1 |
|||
|活塞头:1 |
|||
''Arm-Low:'' 0.25 |
|||
活塞臂底部:0.25 |
|||
''Arm-Top:'' 0.75 |
|||
活塞臂顶部:0.75 |
|||
| |
|Bugged (fixed in 1.9). [https://imgur.com/a/IuDYtlg Accurate model]. |
||
The player can [https://youtu.be/p2iLWan60_g walk through a west extended piston]. |
|||
In 1.9, piston heads were changed to match their model. |
|||
1.9 版本中,活塞头经过了修改,与它们的模型更匹配。 |
|||
|[[File:Piston Head West.png|center|frameless|102x102px]] |
|[[File:Piston Head West.png|center|frameless|102x102px]] |
||
|- |
|- |
||
|Fence (4-sided) |
|||
|栅栏(4 面连接) |
|||
| |
|''Post:'' 0.25 × 0.25 |
||
''Sides:'' 0.375 × 0.25 |
|||
|1.5 |
|1.5 |
||
|Adjacent blocks must be solid, fences, or fencegates. |
|||
|相邻的方块必须是固体方块,栅栏或栅栏门。 |
|||
|[[File:Fence 4-sided.png|center|frameless|100x100px]] |
|[[File:Fence 4-sided.png|center|frameless|100x100px]] |
||
|- |
|- |
||
|Fence (3-sided) |
|||
|栅栏(3 面连接) |
|||
| |
|''Post:'' 0.25 × 0.25 |
||
''Sides:'' 0.375 × 0.25 |
|||
边沿:0.375 × 0.25 |
|||
|1.5 |
|1.5 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
Adjacent blocks must be solid, fences, or fencegates. |
|||
相邻的方块必须是固体方块,栅栏或栅栏门。 |
|||
|[[File:Fence 3-sided.png|center|frameless|101x101px]] |
|[[File:Fence 3-sided.png|center|frameless|101x101px]] |
||
|- |
|- |
||
|Fence (2-adjacent) |
|||
|栅栏(相邻 2 面连接) |
|||
| |
|''Post:'' 0.25 × 0.25 |
||
''Sides:'' 0.375 × 0.25 |
|||
边沿:0.375 × 0.25 |
|||
|1.5 |
|1.5 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
Adjacent blocks must be solid, fences, or fencegates. |
|||
相邻的方块必须是固体方块,栅栏或栅栏门。 |
|||
|[[File:Fence 2-adjacent.png|center|frameless|100x100px]] |
|[[File:Fence 2-adjacent.png|center|frameless|100x100px]] |
||
|- |
|- |
||
|Pane (Default / 4-sided) |
|||
|玻璃板(普通或 4 面连接) |
|||
| |
|''Sides:'' 0.5 × 0.125 |
||
|1 |
|1 |
||
|Adjacent blocks must be solid, or panes/bars. |
|||
|相邻的方块必须是固体方块,玻璃板或铁栏杆。 |
|||
|[[File:Pane default.png|center|frameless|90x90px]] |
|[[File:Pane default.png|center|frameless|90x90px]] |
||
|- |
|- |
||
|Pane (3-sided) |
|||
|玻璃板(3 面连接) |
|||
| |
|''Sides:'' 0.5 × 0.125 |
||
|1 |
|1 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
Adjacent blocks must be solid, or panes/bars. |
|||
相邻的方块必须是固体方块,玻璃板或铁栏杆。 |
|||
|[[File:Pane 3-sided.png|center|frameless|90x90px]] |
|[[File:Pane 3-sided.png|center|frameless|90x90px]] |
||
|- |
|- |
||
|Pane (2-adjacent) |
|||
|玻璃板(相邻 2 面连接) |
|||
| |
|''Sides:'' 0.5 × 0.125 |
||
|1 |
|1 |
||
|Orientable (4 variants). |
|||
|可改变朝向(4 种变体)。 |
|||
Adjacent blocks must be solid, or panes/bars. |
|||
相邻的方块必须是固体方块,玻璃板或铁栏杆。 |
|||
The exterior corner has a 1px wide opening |
|||
转角处有 1 个像素的开口 |
|||
(despite the model showing a clean 90° corner). |
|||
(尽管模型呈现的是一个完整的 90° 转角)。 |
|||
|[[File:Pane 2-adjacent.png|center|frameless|90x90px]] |
|[[File:Pane 2-adjacent.png|center|frameless|90x90px]] |
||
|}<br /> |
|}<br /> |
||
== 其他 == |
|||
==Other== |
|||
{| class="wikitable" |
{| class="wikitable" |
||
!Block |
|||
!方块 |
|||
!Widths (b) |
|||
!宽度(b) |
|||
!Height (b) |
|||
!高度(b) |
|||
!Comments |
|||
!信息 |
|||
!Model |
|||
!模型 |
|||
|- |
|- |
||
|Boat |
|||
|船 |
|||
|1.5 x 1.5 |
|1.5 x 1.5 |
||
|0.6 |
|0.6 |
||
|Entity. |
|||
|实体。 |
|||
|[[File:Boat.png|frameless|150x150px]] |
|[[File:Boat.png|frameless|150x150px]] |
||
|} |
|} |
Revision as of 07:45, 24 August 2021
A Block is a basic unit of structure occupying space in the world.
A Collision Box is a solid volume of space that the player is not meant to pass through, which consists of one or multiple Bounding Boxes, which are axis-aligned cuboids. Entities have their own bounding box, but are not treated as solid space (except for boats).
- Not to confuse with a Hitbox, which is a volume of space that a player can interact with (attack, mine, right-click...).
- Also not to confuse with a Model, which is simply the graphical representation of a block / entity on screen.
- Finally, some blocks have their own "effect box", such as fluids, ladders, cacti, pressure plates... All of which are coded and applied differently.
For example: a button has no collision box, as the player can walk through one, but has a hitbox which the player can click on.
Another example: a barrier block has overlapping bounding box and hitbox, but is hard-coded to have no model.
This article lists the collision boxes and properties of all blocks in 1.8.
Blocks with particular properties and/or no collision boxes are presented on their own articles.
Images were taken with Blockbench, or from the Minecraft wiki.
Resources:
- 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
Collision boxes that consist of a single bounding box. Blocks are ordered by length, then width, then height.
Block | Widths (b) | Height (b) | Comments | Model |
---|---|---|---|---|
Wall (4-sided) | 1 × 1 | 1.5 | Adjacent blocks must be solid, walls, or fencegates. | |
Default | 1 × 1 | 1 | ||
Soulsand | 1 × 1 | 0.875 | Looks like a full block, but is actually 2 px lower.
Slows down entities walking on top of it. |
|
End Portal Frame | 1 × 1 | 0.8125 | ||
Enchantment Table | 1 × 1 | 0.75 | ||
Bed block | 1 × 1 | 0.5625 | The bottom doesn't look tangible, but it actually is. | |
Slab | 1 × 1 | 0.5 | Inversible. | |
Daylight Sensor | 1 × 1 | 0.375 | ||
Trapdoor (horizontal) | 1 × 1 | 0.1875 | Inversible.
Can be flipped to its vertical variant. |
|
Repeater | 1 × 1 | 0.125 | ||
Carpet | 1 × 1 | 0.0625 | ||
Lily Pad | 1 × 1 | 0.015625 | Is ¼ of a pixel in height. | |
Snow Layer | 1 × 1 | 0
0.125 0.25 0.375 0.5 0.625 0.75 0.875 |
Snow layers look 2 pixels higher than their real height.
Despite having no height, a single layer of snow is tangible. |
|
Wall (3-sided) | 1 × 0.75 | 1.5 | Orientable (4 variants).
Adjacent blocks must be solid, walls, or fencegates. |
|
Anvil | 1 × 0.75 | 1 | Centered. Orientable (2 variants).
Looks thinner than it actually is. |
|
Piston Base (Powered) | 1 × 0.75 | 1 | Orientable (4 variants). | |
Wall (2-opposite) | 1 × 0.375 | 1.5 | Centered. Orientable (2 variants).
Adjacent blocks must be solid, walls, or fencegates. Placing a block on top of it doesn't change its collision box, despite its appearance being different. |
|
Fence (2-opposite) | 1 × 0.25 | 1.5 | Centered. Orientable (2 variants).
Adjacent blocks must be solid, fences, or fencegates. |
|
Fencegate | 1 × 0.25 | 1.5 | Centered. Orientable (2 variants).
Can be flipped to a variant with no collision box. |
|
Trapdoor (vertical) | 1 × 0.1875 | 1 | Orientable, Inversible (8 variants).
Can be flipped to its horizontal variant. |
|
Door | 1 × 0.1875 | 1 | Orientable (4 variants).
Can be flipped to another variant. |
|
Ladder | 1 × 0.125 | 1 | Orientable (4 variants).
Can be climbed by entities. |
|
Pane (2-opposite) | 1 × 0.125 | 1 | Centered. Orientable (2 variants).
Adjacent blocks must be solid, or panes/bars. |
|
Chest (long) | 0.9375 × 0.875 | 0.875 | Must be next to another chest. | |
Dragon Egg | 0.875 × 0.875 | 1 | Centered.
Looks drastically different from its collision box. |
|
Cactus | 0.875 × 0.875 | 0.9375 | Centered.
Hurts entities close to it. |
|
Chest | 0.875 × 0.875 | 0.875 | Centered. | |
Cake | 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
|
Base: 1
|
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
|
Base: 1
|
The bottom doesn't look tangible, but it actually is.
The interior floor is 1 pixel lower than it looks. |
|
Cauldron | Base: 1 × 1
|
Base: 1
|
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.
The player can walk through a west extended piston. 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. |