手册:minecraft:can_destroy_in_creative

From Minecraft基岩版开发Wiki
数据驱动 物品 > minecraft:can_destroy_in_creative
minecraft:can_destroy_in_creative
附加包组件
组件所属
组件类型
1.20.10
加入版本

minecraft:can_destroy_in_creative用于设置玩家在创造模式能否使用该物品破坏方块。

模式[edit]

bool "minecraft:can_destroy_in_creative" : opt

结构[edit]

  •  minecraft:can_destroy_in_creative:根对象。
    •  value:设置玩家在创造模式能使用该物品否破坏方块。默认值为true

或可以指定为简化写法:

  •  minecraft:can_destroy_in_creative:设置玩家在创造模式能使用该物品否破坏方块。默认值为true

示例[edit]

"minecraft:can_destroy_in_creative": false
"minecraft:can_destroy_in_creative": {
    "value": false
}

历史[edit]

基岩版
1.16.1001.16.100.56加入了minecraft:can_destroy_in_creative
1.20.101.20.10.23minecraft:can_destroy_in_creative移出实验性玩法。

参考[edit]

有关minecraft:can_destroy_in_creative组件的用法,可以查阅微软文档

漏洞[edit]

关于minecraft:can_destroy_in_creative的漏洞在国际版中由漏洞追踪器维护,请在此报告漏洞。