坐牢眼珠子 发表于 2026-2-16 02:46:24

方块的minecraft:tags

我的自定义方块在最新版本26.10.23使用了官方要求的minecraft:tags组件代替tag:xxx,但是按照官方要求填写反而让方块不可使用了,这是其中一个方块{
    "format_version": "1.26.10",
    "minecraft:block": {
      "description": {
            "identifier": "chapter_1:netherite_crafting_table",
            "menu_category": {
                "category": "items"
            }
      },
      "components": {
            "minecraft:tags": [
                "minecraft:is_pickaxe_item_destructible"
            ],
            "minecraft:material_instances": {
                "*": {
                  "texture": "netherite_crafting_table_side",
                  "render_method": "alpha_test"
                },
                "up": {
                  "texture": "netherite_crafting_table_top",
                  "render_method": "alpha_test"
                },
                "down": {
                  "texture": "netherite_block",
                  "render_method": "alpha_test"
                },
                "north": {
                  "texture": "netherite_crafting_table_side",
                  "render_method": "alpha_test"
                },
                "south": {
                  "texture": "netherite_crafting_table_front",
                  "render_method": "alpha_test"
                },
                "west": {
                  "texture": "netherite_crafting_table_side",
                  "render_method": "alpha_test"
                },
                "east": {
                  "texture": "netherite_crafting_table_front",
                  "render_method": "alpha_test"
                }
            },
            "minecraft:geometry": "minecraft:geometry.full_block",
            "minecraft:flammable": false,
            "minecraft:display_name": "下界合金合成台\n§7此物品可以合成紫水晶装备",
            "minecraft:destructible_by_mining": {
                "seconds_to_destroy": 1.9
            },
            "minecraft:crafting_table": {
                "table_name": "合成",
                "crafting_tags": [
                  "netherite_crafting_table"
                ]
            },
            "minecraft:destructible_by_explosion": {
                "explosion_resistance": 2.5
            },
            "minecraft:map_color": "#999999"
      }
    }
}
求解

Sakarwei 发表于 2026-2-16 06:12:01

格式错误。

文档:minecraft:tags:{tags:}
你写:minecraft:tags:
↑仅作示例,没有关注语法。

目前我看到的是这样的,没有实验,只看了文档。

其它建议:开启设置→创作者→日志输出,发现出错后回到设置创作者,查看日志,看看具体报错信息。

Cy: https://learn.microsoft.com/zh-cn/minecraft/creator/reference/content/itemreference/examples/itemcomponents/minecraft_tags?view=minecraft-bedrock-stable#item-components-tags-properties

坐牢眼珠子 发表于 2026-2-17 01:18:21

Sakarwei 发表于 2026-2-16 06:12
格式错误。

文档:minecraft:tags:{tags:}


注意审题
“自定义方块”
你这个是自定义物品的语法

Sakarwei 发表于 2026-2-22 04:34:50

方块没有minecraft:tags属性。

Cy:
https://learn.microsoft.com/zh-cn/minecraft/creator/reference/content/blockreference/examples/blockcomponents/blockcomponentslist?view=minecraft-bedrock-stable

坐牢眼珠子 发表于 2026-2-26 04:53:29

Sakarwei 发表于 2026-2-22 04:34
方块没有minecraft:tags属性。

Cy:


在26.10.23为方块添加了这一项更新

Sakarwei 发表于 2026-2-26 10:50:41

坐牢眼珠子 发表于 2026-2-26 04:53
在26.10.23为方块添加了这一项更新

我看了看,更新推文确实提及,但开发文档一点没写,实验性和稳定版都是。
你可以尝试获取原版行为包,找到方块看看有没有示例用法。

牢冥王 发表于 2026-2-26 12:26:25

是不是某个实验性玩法没开
页: [1]
查看完整版本: 方块的minecraft:tags