I’m creating a Minecraft mod using Forge 1.20.1, and I want to display high-resolution weapon models made in Blender. I’m exporting the models as .obj with .mtl and a corresponding .json model file, similar to how “Weapons of Miracle (WoM)” handles weapons.



However, no matter what I try, the texture always appears as the default missing-texture pattern (black and purple squares). This suggests that the .mtl or texture is not being read correctly, but I can’t figure out what I’m doing wrong.



Blockbench works fine, but I need higher resolution than Blockbench is designed for, so I’m trying to load the model directly from OBJ instead.



If anyone knows:



How OBJ/MTL textures must be referenced in JSON



Any working examples or loaders that support OBJ models in recent Forge versions



Common mistakes that cause textures not to load



I would really appreciate advice. Thanks in advance.

Voir le contenu lié