开启辅助访问     
收藏本站

站内搜索

搜索

Minecraft(我的世界)苦力怕论坛

[游戏相关] 方块的minecraft:tags

 发表于 2026-2-16 02:46:24 来自手机|显示全部楼层|阅读模式 IP:广东省
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. }
复制代码

求解

苦力怕论坛,感谢有您~
 发表于 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回复收起回复
苦力怕论坛,感谢有您~
回复

使用道具举报

 楼主|  发表于 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回复收起回复
苦力怕论坛,感谢有您~
回复

使用道具举报

 发表于 2026-2-22 04:34:50 来自手机|显示全部楼层 IP:广东省
方块没有minecraft:tags属性。

Cy:
https://learn.microsoft.com/zh-c ... raft-bedrock-stable
4#2026-2-22 04:34:50回复收起回复
苦力怕论坛,感谢有您~
回复

使用道具举报

 楼主|  发表于 2026-2-26 04:53:29 来自手机|显示全部楼层 IP:广东省
Sakarwei 发表于 2026-2-22 04:34
方块没有minecraft:tags属性。

Cy:

在26.10.23为方块添加了这一项更新
5#2026-2-26 04:53:29回复收起回复
苦力怕论坛,感谢有您~
回复

使用道具举报

 发表于 2026-2-26 10:50:41 来自手机|显示全部楼层 IP:广东省
坐牢眼珠子 发表于 2026-2-26 04:53
在26.10.23为方块添加了这一项更新

我看了看,更新推文确实提及,但开发文档一点没写,实验性和稳定版都是。
你可以尝试获取原版行为包,找到方块看看有没有示例用法。
6#2026-2-26 10:50:41回复收起回复
苦力怕论坛,感谢有您~
回复

使用道具举报

 发表于 2026-2-26 12:26:25|显示全部楼层 IP:黑龙江省
是不是某个实验性玩法没开
7#2026-2-26 12:26:25回复收起回复
苦力怕论坛,感谢有您~
回复

使用道具举报

本版积分规则

本站
关于我们
联系我们
坛史纲要
官方
哔哩哔哩
技术博客
下载
网易版
安卓版
JAVA
反馈
意见建议
教程中心
更多
捐助本站
QQ群
QQ群

QQ群

访问手机版

访问手机版

手机版|小黑屋|系统状态|klpbbs.com

| 由 木韩网络 提供支持 | GMT+8, 2026-6-17 04:37

声明:本站与Mojang以及微软公司没有从属关系

Powered by Discuz! X3.4