[Fabric 1.21] Custom Item renders as Black/Purple square (Missing Model), even with correct path
Hi everyone, I'm new to modding and I've been stuck on this issue for a while.
I created a simple custom item (safety\_gloves). The item registers correctly (I can give it to myself via /give command), but it always renders as the black and purple missing texture square, regardless of what I do.
My Setup:
• Loader: Fabric (1.21)
• Mod ID: luckymining
The Issue:
The game seems to completely ignore my models/item/safety\_gloves.json file.
Even if I change the JSON content to point to a vanilla texture (e.g., minecraft:item/apple), it STILL shows the black square.
File Structure (checked multiple times):
src/main/resources/assets/luckymining/models/item/safety\_gloves.json
src/main/resources/assets/luckymining/textures/item/safety\_gloves.png
What I have tried so far:
1. Verified fabric.mod.json: The ID is set to "id": "luckymining".
2. Verified Java registration: ResourceLocation uses luckymining.
3. Ran gradle clean and Rebuild Project in IntelliJ multiple times.
4. Invalidated IntelliJ Caches.
5. Re-created the entire project from scratch.
6. Checked file extensions (it is .json, not .json.txt).
No specific errors about "missing model" appear in the logs unless I press F3+T, but the path looks correct.
Does anyone have any idea why the game might not be reading the model file at all?
Screenshots of my folder structure are attached. Thanks in advance!
I created a simple custom item (safety\_gloves). The item registers correctly (I can give it to myself via /give command), but it always renders as the black and purple missing texture square, regardless of what I do.
My Setup:
• Loader: Fabric (1.21)
• Mod ID: luckymining
The Issue:
The game seems to completely ignore my models/item/safety\_gloves.json file.
Even if I change the JSON content to point to a vanilla texture (e.g., minecraft:item/apple), it STILL shows the black square.
File Structure (checked multiple times):
src/main/resources/assets/luckymining/models/item/safety\_gloves.json
src/main/resources/assets/luckymining/textures/item/safety\_gloves.png
What I have tried so far:
1. Verified fabric.mod.json: The ID is set to "id": "luckymining".
2. Verified Java registration: ResourceLocation uses luckymining.
3. Ran gradle clean and Rebuild Project in IntelliJ multiple times.
4. Invalidated IntelliJ Caches.
5. Re-created the entire project from scratch.
6. Checked file extensions (it is .json, not .json.txt).
No specific errors about "missing model" appear in the logs unless I press F3+T, but the path looks correct.
Does anyone have any idea why the game might not be reading the model file at all?
Screenshots of my folder structure are attached. Thanks in advance!
Commentaires
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)