OptiFine的CIT模型, 簡單打造華麗武器造型, 卻有隱藏的麻煩...
語言選擇
En
🅳🅸🅰🆁🆈
Stinking parasites! Try my javelin made of cake!

由OptiFine引領潮流的CIT模型 [Custom Item Texture(自訂物品紋理)], 用簡單的關鍵字就能讓原版樸實的道具變出多種花樣
在各大模型創作者的努力下, 甚至普通的材質包就能媲美一個模組!!

但是有個嚴肅的問題, 為什麼分配給其他模組的CIT模型會沒效果呢? 我很確認填寫的物品ID是正確的, 明明給原版道具都是有效的?
其實錯的不是你, 而是這個世界... 扯遠了, 是Minecraft世界

經過我幾天的研究, 模組的物品竟是進入地圖才正式讀取!!
這意味著在最初載入遊戲到主選單階段前, 就已經讀取完畢的資源包, 雖然看到你填寫的物品ID(來自其他模組物品)
但是實際上根本找不到該物品!!

這就是為何總是只有原版物品能正常套用CIT材質, 模組物品是無效的
因為當你隨便進入一張地圖, Minecraft才會載入模組道具, 此時你使用F3+T, 或者重新套用資源包, 資源包就能找到你的CIT模組道具

為驗證此事情的正確性, 我進入遊戲後沒有開啟任何地圖, 直接重新套用資源包多次
之後才進入地圖, 並確認模組的道具依然沒套用CIT材質, 只有進入地圖後, 重新套用資源包, 才能給模組道具套用CIT材質


我試著與AI合作寫了幾個模組, 僅有開啟遊戲首次進入地圖時, 自動進行F3+T 操作的模組, 成功解決CIT模組物品的問題
但奇怪的是, 重新啟動Minecraft後就出現崩潰錯誤, 因為該研究實際幫助不大, 最終項目停止了

CIT models, popularized by OptiFine as Custom Item Texture, can use simple keywords to give vanilla items a wide variety of appearances.
Thanks to the efforts of many model creators, even a normal resource pack can now rival a full mod.

But there was a serious problem: why did CIT models assigned to other mods not work? I was sure the item IDs were correct, and they worked fine for vanilla items.

The problem was not with the setup — it was with the Minecraft world itself.

After several days of research, I found that modded items are only properly loaded after entering a world. This means that before reaching the title screen from startup, the resource pack has already been loaded. It can see the item IDs you entered, but it cannot actually find those modded items.

This is why CIT textures always work on vanilla items, but not on modded items.
When you enter any world, Minecraft finally loads the modded items. At that point, if you press F3+T or reapply the resource pack, it can then find the CIT modded items correctly.

To verify this, I launched the game and reapplied the resource pack several times without opening any world. After that, I entered a world and confirmed that the modded items still did not use the CIT textures. Only after entering the world and reapplying the resource pack did the modded items receive their CIT textures.

I also tried working with AI to write a few mods. In the end, only the mod that automatically performed F3+T the first time the player entered a world successfully solved the CIT modded item issue.
However, it later caused a crash after restarting Minecraft. Since the research was not very practical, the project was eventually discontinued.




噢! 對了!
Better Survival mod 的標槍使用了原始的物品模型, 這確保物品的投擲角度正確.
所以再怎麼修改物品的"display"數值也毫無意義, 只能試著把物品原始模型旋轉45度...

這對已經使用一個旋轉角度的模型來說, 太糟糕了! 因為目前的版本, 每個方塊只支援一個選轉角度!

Oh! By the Way!
The javelins in the Better Survival mod use the original item model, which ensures the correct throwing angle.
So modifying the item's "display" value is pointless; the only solution is to try rotating the original item model by 45 degrees...
This is terrible for a model that already uses a single rotation angle! Because in the current version, each block only supports one rotation angle!

2026.05.23 研究紀錄 by McNaoxia






紀錄我使用的模組






留言