游戏相关 已自动关闭

方块的minecraft:tags

坐牢***Lv.1 新手上路 发表于 2026-2-16 · 最后回复 2026-2-26 IP:广东省 774 9
19铁粒
我的自定义方块在最新版本26.10.23使用了官方要求的minecraft:tags组件代替tag:xxx,但是按照官方要求填写反而让方块不可使用了,这是其中一个方块
  1. {
  2.     "format_version": "1.26.10",
  3.     "minecraft:block": {
  4.         "description": {
  5.             "identifier": "chapter_1:netherite_crafting_table",
  6.             "menu_category": {
  7.                 "category": "items"
  8.             }
  9.         },
  10.         "components": {
  11.             "minecraft:tags": [
  12.                 "minecraft:is_pickaxe_item_destructible"
  13.             ],
  14.             "minecraft:material_instances": {
  15.                 "*": {
  16.                     "texture": "netherite_crafting_table_side",
  17.                     "render_method": "alpha_test"
  18.                 },
  19.                 "up": {
  20.                     "texture": "netherite_crafting_table_top",
  21.                     "render_method": "alpha_test"
  22.                 },
  23.                 "down": {
  24.                     "texture": "netherite_block",
  25.                     "render_method": "alpha_test"
  26.                 },
  27.                 "north": {
  28.                     "texture": "netherite_crafting_table_side",
  29.                     "render_method": "alpha_test"
  30.                 },
  31.                 "south": {
  32.                     "texture": "netherite_crafting_table_front",
  33.                     "render_method": "alpha_test"
  34.                 },
  35.                 "west": {
  36.                     "texture": "netherite_crafting_table_side",
  37.                     "render_method": "alpha_test"
  38.                 },
  39.                 "east": {
  40.                     "texture": "netherite_crafting_table_front",
  41.                     "render_method": "alpha_test"
  42.                 }
  43.             },
  44.             "minecraft:geometry": "minecraft:geometry.full_block",
  45.             "minecraft:flammable": false,
  46.             "minecraft:display_name": "下界合金合成台\n§7此物品可以合成紫水晶装备",
  47.             "minecraft:destructible_by_mining": {
  48.                 "seconds_to_destroy": 1.9
  49.             },
  50.             "minecraft:crafting_table": {
  51.                 "table_name": "合成",
  52.                 "crafting_tags": [
  53.                     "netherite_crafting_table"
  54.                 ]
  55.             },
  56.             "minecraft:destructible_by_explosion": {
  57.                 "explosion_resistance": 2.5
  58.             },
  59.             "minecraft:map_color": "#999999"
  60.         }
  61.     }
  62. }
复制代码

求解

回复 9 最早 最新 只看楼主
Saka***版主
2026-2-16 06:12:01 · 来自手机 IP:广东省
格式错误。

文档:minecraft:tags:{tags:[a,b,c,...]}
你写:minecraft:tags:[a,b,c,...]
↑仅作示例,没有关注语法。

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

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

Cy: https://learn.microsoft.com/zh-c ... nts-tags-properties
2# 2026-2-16 06:12:01 回复 收起回复
坐牢***楼主Lv.1 新手上路
2026-2-17 01:18:21 · 来自手机 IP:广东省
Sakarwei 发表于 2026-2-16 06:12
格式错误。

文档:minecraft:tags:{tags:[a,b,c,...]}

注意审题
“自定义方块”
你这个是自定义物品的语法
3# 2026-2-17 01:18:21 回复 收起回复
Saka***版主
2026-2-26 10:50:41 · 来自手机 IP:广东省
坐牢眼珠子 发表于 2026-2-26 04:53
在26.10.23为方块添加了这一项更新

我看了看,更新推文确实提及,但开发文档一点没写,实验性和稳定版都是。
你可以尝试获取原版行为包,找到方块看看有没有示例用法。
6# 2026-2-26 10:50:41 收起回复
坐牢眼珠子 2026-2-27 08:25 IP:广东省
回复 举报
哥们不懂可以不回答的,原版行为包找方块都出来,你不知道目前没有任何方块数据驱动吗
牢***版主
2026-2-26 12:26:25 IP:黑龙江省
是不是某个实验性玩法没开
7# 2026-2-26 12:26:25 收起回复
坐牢眼珠子 2026-2-27 08:24 IP:广东省
回复 举报
我习惯性全开,这其实是个bug,我反馈到bugs.mojang了,他们现在说已解决(旧版写法还能用)
您需要登录后才可以回帖 登录 | 立即注册
本版积分规则