Hi all. I've got a problem with some missing textures. The thing is: minecraft changes the path of my mod while trying to load a texture block. It works for items, but not for blocks.
Example:
For items i have this path: .../assets/dwarvendrills/textures/items/cobblestoneDrill.png
and i get:
dwarvendrills:textures/items/cobblestoneDrill.png
For blocks i have: .../assets/dwarvendrills/textures/blocks/apprenticeMiner.png
and i get:
minecraft:textures/blocks/apprenticeMiner.png <--- which leads to a file not found exception, changing it for the purple-black texture.
The directory structure is as follows:
..
|_ src
|_ dwarvendrills
|_ assets
|_dwarvendrills
|_lang
|_models
|_sounds
|_textures
|_blocks
|_apprenticeMiner.png
|_items
|_cobblestoneDrill.png
|_ net
|_ mcmod.info
i have a Reference class which has the modid as a constant:
public static final String MOD_ID = "dwarvendrills";
in the same package, i've got a Texture class with another constant:
public class final String RESOURCE_PREFIX = Reference.MOD_ID.toLowerCase() + ":";
Now, i have a generic class that registers the icon for the items:
ItemsDD
and another one for blocks, which is pretty much a copy of ItemsDD:
BlocksDD
I know there are other methods to set the texure, like setTextureName() or something like that, but this one should work, 'cause i've seen it working properly.
Then we have the ApprenticeBlock class:
Of course, the blocks and items are intialized and registered accordingly.
I've tried to debug minecraft step by step with eclipse. I've seen that, at first, it stablishes the domain correctly "dwarvendrills", and, in fact, the texture of the "cobblestone drill" item works fine, but when it tries to load the block's texture the domain resets, or falls back to "minecraft" at some unknown point.
So i hope you guys can help me to figured out where's the problem; that would be very nice. ^^
BTW: i don't think capitalization is the problem here, since i've only used it in class names and in second words of png files and unlocalized names, and since i've copy unlocalized names and pasted it in the png files, like pretty much every other name, i don't think is a misspelling issue.
If you need more information, please do tell me.
Forge Version: 1.7.10-10.13.0.1180