1. Wiki
  2. /物品
  3. /minecraft:icon

minecraft:icon

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:icon。Get GodCraft

概览

minecraft:icon 是一个物品组件:写在自定义物品的 components 对象中。 选择物品在物品栏、快捷栏和其他菜单中显示的图片。

字段

字段类型默认值说明
texturesobject无图标的纹理名称,来自资源包中的 item_texture.json。"default" 是主图标;其他键可以设置盔甲纹饰或打开的收纳袋等图片。

示例

写在 BP/items/<name>.json 的 components 对象中(值为默认值或占位值):

BP/items/<name>.json
{
  "minecraft:icon": {
    "textures": {}
  }
}

物品: 行为包

We use cookies to improve your experience and analyse site traffic. Learn more