From c51b5bb73c75e38a4d081e7af7fbff40e69b7dd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8A=E5=AE=98=E6=B1=90?= <78731793+ShangguanXi@users.noreply.github.com> Date: Sun, 28 Dec 2025 18:53:54 +0800 Subject: [PATCH] =?UTF-8?q?Update=201-JSON=E7=BB=84=E4=BB=B6.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../15-自定义游戏内容/2-自定义方块/1-JSON组件.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mcguide/20-玩法开发/15-自定义游戏内容/2-自定义方块/1-JSON组件.md b/mcguide/20-玩法开发/15-自定义游戏内容/2-自定义方块/1-JSON组件.md index 59dbbc5..f6ef45e 100644 --- a/mcguide/20-玩法开发/15-自定义游戏内容/2-自定义方块/1-JSON组件.md +++ b/mcguide/20-玩法开发/15-自定义游戏内容/2-自定义方块/1-JSON组件.md @@ -38,7 +38,8 @@ time: 分钟 | ----------------------- | ---- | ------ | ------------------------------------------------------------ | | identifier | str | | 包括命名空间及物品名。需要全局唯一。建议使用mod名称作为命名空间 | | register_to_create_menu | bool | false | 是否注册到创造栏 | -| category | str | Nature | 注册到创造栏的分类,可选的值有:
Construction
Nature
Equipment
Items | +| category | str | Nature | 注册到创造栏的分类,可选的值有:
Construction
Nature
Equipment
Items
None | +| base_block | str | | 继承的特殊方块类型,可选的值有:
mob_spawner 自定义刷怪箱
portal 自定义传送门
custom_crop_block 自定义农作物
custom_heavy_block 自定义重力方块
liquid 自定义静态流体方块
flowing_liquid 自定义动态流体方块
netease_container 自定义容器 | ## components @@ -121,7 +122,7 @@ time: 分钟 ### minecraft:destructible_by_explosion -可用于控制挖掘所需的时间。该值的含义与[官方wiki](https://minecraft-zh.gamepedia.com/%E6%8C%96%E6%8E%98#.E6.96.B9.E5.9D.97.E7.A1.AC.E5.BA.A6)的“硬度”一致 +可用于控制爆炸抗性。原版方块的爆炸抗性见[官方wiki](https://minecraft-zh.gamepedia.com/%E7%88%86%E7%82%B8#.E7.88.86.E7.82.B8.E6.8A.97.E6.80.A7) - 如果设置为 `true`,方块会采用默认的爆炸抗性。 - 如果设置为 `false`,方块将不可被爆炸破坏。 @@ -212,6 +213,7 @@ time: 分钟 | value | bool | | 必须设置,用于设置无法摆放在水源和流水方块中 | - 可以在方块的loottable中设置被水流摧毁后的掉落物 +- 当**base_block**字段为**custom_crop_block**的时候,会自动注册此组件,无需再次注册。 @@ -330,9 +332,9 @@ time: 分钟 主要用于[多面向](./2-功能.md#duomianxiang)的功能 -| 键 | 类型 | 默认值 | 解释 | -| ---- | ------ | ------ | ----------------------------------------------------- | -| type | string | | direction:四面向方块facing_direction:六面向方块 | +| 键 | 类型 | 默认值 | 解释 | +| ---- | ------ | ------ | --------------------------------------------------- | +| type | string | | direction:四面向方块,facing_direction:六面向方块 |