Files
netease-modsdk-wiki/docs/wiki/blocks/block-shapes.md
2025-03-20 11:52:46 +08:00

131 lines
4.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: 方块形状
category: 文档
mentions:
- SirLich
- yanasakana
- MedicalJewel105
- aexer0e
- Luthorius
- Fabrimat
- TheItsNameless
- QuazChick
---
# 方块形状
<!--@include: @/wiki/bedrock-wiki-mirror.md-->
:::warning 已弃用
方块形状功能已不再受官方支持,且无法应用于自定义方块,但仍可作用于原版方块。
:::
方块形状本质上是硬编码于原版游戏中的几何模型,这意味着它们的存在不依赖于可见建模文件。
## 应用方式
在资源包的`blocks.json`文件中,通过方块对象的`"blockshape"`子项进行定义。具体示例如下:
::: code-group
```json [RP/blocks.json]
"wiki:invisible_aluminium_ore": {
"blockshape": "invisible",
"sound": "stone",
"textures": "invisible_aluminium_ore"
}
```
:::
## 已知方块形状列表
| 标识符 | 方块形状名称 |
| --- | ------------------------- |
| -1 | invisible不可见 |
| 0 | block普通方块 |
| 1 | cross_texture交叉纹理 |
| 2 | torch火把 |
| 3 | fire火焰 |
| 4 | water水体 |
| 5 | red_dust红石粉 |
| 6 | rows行排列 |
| 7 | door |
| 8 | ladder梯子 |
| 9 | rail轨道 |
| 10 | stairs阶梯 |
| 11 | fence栅栏 |
| 12 | lever拉杆 |
| 13 | cactus仙人掌 |
| 14 | bed |
| 15 | diode二极管 |
| 18 | iron_fence铁栏杆 |
| 19 | stem茎干 |
| 20 | vine藤蔓 |
| 21 | fence_gate栅栏门 |
| 22 | chest箱子 |
| 23 | lilypad睡莲 |
| 25 | brewing_stand炼药台 |
| 26 | portal_frame传送门框架 |
| 28 | cocoa可可豆 |
| 31 | tree树木 |
| 32 | cobblestone_wall圆石墙 |
| 40 | double_plant双层植物 |
| 42 | flower_pot花盆 |
| 43 | anvil铁砧 |
| 44 | dragon_egg龙蛋 |
| 48 | structure_void结构空位 |
| 67 | block_half半砖 |
| 68 | top_snow顶层雪 |
| 69 | tripwire绊线 |
| 70 | tripwire_hook绊线钩 |
| 71 | cauldron炼药锅 |
| 72 | repeater中继器 |
| 73 | comparator比较器 |
| 74 | hopper漏斗 |
| 75 | slime_block粘液块 |
| 76 | piston活塞 |
| 77 | beacon信标 |
| 78 | chorus_plant紫颂植物 |
| 79 | chorus_flower紫颂花 |
| 80 | end_portal末地传送门 |
| 81 | end_rod末地烛 |
| 83 | skull头颅 |
| 84 | facing_block朝向方块 |
| 85 | command_block命令方块 |
| 86 | terracotta陶瓦 |
| 87 | double_side_fence双面栅栏 |
| 88 | frame物品展示框 |
| 89 | shulker_box潜影盒 |
| 90 | doublesided_cross_texture双面交叉纹理 |
| 91 | doublesided_double_plant双面双层植物 |
| 92 | doublesided_rows双面行排列 |
| 93 | element_block元素方块 |
| 94 | chemistry_table化学工作台|
| 96 | coral_fan珊瑚扇 |
| 97 | seagrass海草 |
| 98 | kelp海带 |
| 99 | trapdoor活板门 |
| 100 | sea_pickle海泡菜 |
| 101 | conduit潮涌核心 |
| 102 | turtle_egg海龟蛋 |
| 105 | bubble_column气泡柱 |
| 106 | barrier屏障 |
| 107 | sign告示牌 |
| 108 | bamboo竹子 |
| 109 | bamboo_sapling竹笋 |
| 110 | scaffolding脚手架 |
| 111 | grindstone砂轮 |
| 112 | bell |
| 113 | lantern灯笼 |
| 114 | campfire营火 |
| 115 | lectern讲台 |
| 116 | sweet_berry_bush甜浆果丛|
| 117 | cartography_table制图台 |
| 119 | stonecutter_block切石机 |
| 123 | chain锁链 |
| 126 | sculk_sensor侦测器 |
| 133 | azalea杜鹃花丛 |
| 133 | flowering_azalea盛开的杜鹃花丛 |
| 134 | glow_frame荧光物品展示框|
| 135 | glow_lichen发光地衣 |
[原作者致谢](https://gist.github.com/toka7290/3bef704d2f57c775bb9ac84443a6df1c)