1
I have been trying to make a mod for three days and the textures won't load so if you know how to fix it comment below here is the source code for the only 2 classes in the mod!
Main.class: http://pastebin.com/PWgBw34L
Corn.class: http://pastebin.com/uJvWDzZU
Btw I have the texture in the right folder!
Main.class: http://pastebin.com/PWgBw34L
Corn.class: http://pastebin.com/uJvWDzZU
Btw I have the texture in the right folder!
Create an account or sign in to comment.
1
1
It should look like this:
public void registerIcons(IconRegister iconRegister){
itemIcon = iconRegister.registerIcon("randocraftfood:Corn");
}
You can't have capitals in the folder name.
You should also not register the items and blocks in the PreInit method. You should register in a method looking like this:
@EventHandler
public void load(FMLInitializationEvent event)
{
//Put your registry in here!
}
public void registerIcons(IconRegister iconRegister){
itemIcon = iconRegister.registerIcon("randocraftfood:Corn");
}
You can't have capitals in the folder name.
You should also not register the items and blocks in the PreInit method. You should register in a method looking like this:
@EventHandler
public void load(FMLInitializationEvent event)
{
//Put your registry in here!
}