iT邦幫忙

2025 iThome 鐵人賽

DAY 21
0

昨天已經把ruby armor註冊好了,今天要來加上它的材質,首先要在models/item內添加4個json檔案,內容是物品在手上、背包裡呈現的結果。

  "parent": "item/generated",
  "textures": {
    "layer0": "rubymod:item/ruby_helmet"
  }
}```
再來要到textures/item內放上png圖片
![https://ithelp.ithome.com.tw/upload/images/20251005/201694069voz2iKl9f.png](https://ithelp.ithome.com.tw/upload/images/20251005/201694069voz2iKl9f.png)

最後是最重要的一步,要新增一個textures/models/armor的資料夾,裡面放上ruby armor的3d材質![https://ithelp.ithome.com.tw/upload/images/20251005/20169406mhTueQCO6x.png](https://ithelp.ithome.com.tw/upload/images/20251005/20169406mhTueQCO6x.png)
這樣裝備穿在身上時才會正常顯示。
![https://ithelp.ithome.com.tw/upload/images/20251005/20169406Brclo6X1ye.png](https://ithelp.ithome.com.tw/upload/images/20251005/20169406Brclo6X1ye.png)![https://ithelp.ithome.com.tw/upload/images/20251005/20169406DVx1y574eF.png](https://ithelp.ithome.com.tw/upload/images/20251005/20169406DVx1y574eF.png)

上一篇
D20:加入裝備
系列文
Minecraft:使用AI工具來創造我的世界吧!21
圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言