I tried to make a mod that adds a block to the game, but when i look in the creative tab, it doesn't show up, even when i search for it. and eclipse doesn't show any errors. Help?
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_INFMOD extends BaseMod
{
//declaring
public static final Block RedCyberOre = new BlockRedCyberOre(200, 0).setBlockName("Red-Cyber Ore").setHardness(1F).setResistance(2F).setLightValue(0F);
I tried to make a mod that adds a block to the game, but when i look in the creative tab, it doesn't show up, even when i search for it. and eclipse doesn't show any errors. Help?
package net.minecraft.src;
import java.util.Map;
import java.util.Random;
public class mod_INFMOD extends BaseMod
{
//declaring
public static final Block RedCyberOre = new BlockRedCyberOre(200, 0).setBlockName("Red-Cyber Ore").setHardness(1F).setResistance(2F).setLightValue(0F);
public void load(){
RedCyberOre.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/RedCyberOre.png");
ModLoader.registerBlock(RedCyberOre);
ModLoader.addName(RedCyberOre, "Red-Cyber Ore");
}
public String getVersion(){
return "1.4.2";
}
}
FIXED, Move along now.