1

Forge mode textures wont load! [HELP]

iDogftw's Avatar iDogftw11/27/13 2:35 am
1 emeralds 224 1
11/27/2013 5:51 am
Gegy's Avatar Gegy
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!
Posted by iDogftw's Avatar
iDogftw
Level 2 : Apprentice Crafter
5

Create an account or sign in to comment.

1

1
11/27/2013 5:51 am
Level 45 : Master Blob
Gegy
Gegy's Avatar
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!
}
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome