概览
minecraft:icon 是一个物品组件:写在自定义物品的 components 对象中。 选择物品在物品栏、快捷栏和其他菜单中显示的图片。
字段
| 字段 | 类型 | 默认值 | 说明 |
|---|---|---|---|
textures | object | 无 | 图标的纹理名称,来自资源包中的 item_texture.json。"default" 是主图标;其他键可以设置盔甲纹饰或打开的收纳袋等图片。 |
示例
写在 BP/items/<name>.json 的 components 对象中(值为默认值或占位值):
BP/items/<name>.json
{
"minecraft:icon": {
"textures": {}
}
}