Hey,
So, I have an Item class I use that looks like this (except this is significantly more simplified):
public class MNItem extends Item {
private String name;
public MNItem(String name, CreativeTabs tab) {
this.name = name;
setUnlocalizedName(name);
setCreativeTab(tab);
setTextureName("modid:" + name);
setMaxStackSize(64);
}
public String getName() {
return this.name;
}
public MNItem(String name, CreativeTabs tab, int stackSize) {
this(name, tab);
setMaxStackSize(stackSize);
}
}
And I create an item in my main class like this:
@EventHandler
public void preinit(FMLPreInitializationEvent event) {
GameRegistry.registerItem(new MNItem("SteelIngot", myCustomCreativeTab), "SteelIngot");
}
Here is my folder layout:
src
main
java
....
resources
assets
modid
textures
items
SteelIngot.png
Here is the error report:
[20:49:46] [Client thread/ERROR] [TEXTURE ERRORS]: domain modid is missing 1 texture
[20:49:46] [Client thread/ERROR] [TEXTURE ERRORS]: domain modid is missing a resource manager - it is probably a side-effect of automatic texture processing
[20:49:46] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
[20:49:46] [Client thread/ERROR] [TEXTURE ERRORS]: The missing resources for domain modid are:
[20:49:46] [Client thread/ERROR] [TEXTURE ERRORS]: textures/items/SteelIngot.png
[20:49:46] [Client thread/ERROR] [TEXTURE ERRORS]: -------------------------
Why is this? Thanks for your help!