手册:minecraft:armor

From Minecraft基岩版开发Wiki
数据驱动 物品 > minecraft:armor
minecraft:armor
附加包组件
组件所属
组件类型
1.16.100
加入版本
弃用版本
  • 假日创作者功能

minecraft:armor用于设置物品为盔甲

模式[edit]

object "minecraft:armor" : opt
{
    int "protection"
    enumerated_value "texture_type"<"none","leather","chain","iron","diamond","gold","elytra","turtle","netherite">
}

结构[edit]

  •  minecraft:armor:根对象。

枚举值[edit]

材料类型[edit]

描述
none 无。
leather 皮革质。
chain 锁链。
iron 铁质。
diamond 钻石质。
gold 金质。
elytra 鞘翅。
turtle 海龟壳。
netherite 下界合金质。

示例[edit]

"minecraft:armor": {
  "protection": 5,
  "texture_type": "chain"
}

历史[edit]

基岩版
1.16.1001.16.100.56加入了minecraft:armor
1.20.201.20.20.20弃用了minecraft:armor
将1.20.20及更高版本的JSON格式中的protection字段由minecraft:armor组件移动至minecraft:wearable
1.21.201.21.20.23随着假日创作者功能的移除,minecraft:armor已无法在更高版本应用。

漏洞[edit]

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