Jump to content

Recommended Posts

Posted

This is silly, but all of the names to be used in-game aren't being registered right with Language Registry. All blocks have the same name as the last block name registered (in this case "Incinerator") and the exact same goes for items (in this case "Ash"). I first thought it was because I moved all the registering related stuff into a seperate class and that the methods are static, but when I tried registering the names in the mod initializer, I got the same issue. This is really frustrating cause it seems like I'm the only person who's having this kind of problem.

 

Here's my core mod class:

package mods.minetech;

import mods.minetech.block.*;
import mods.minetech.gui.GuiManager;
import mods.minetech.items.*;
import mods.minetech.util.RecipeManager;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.*;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.*;
import cpw.mods.fml.common.network.*;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid = "Jules_Mod773", name = "minetech", version = "1.0.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class MTCore {

@Instance("minetech")
public static MTCore instance;
@SidedProxy(clientSide = "mods.minetech.ClientProxy", serverSide = "mods.minetech.CommonProxy")
public static CommonProxy proxy;

/* switch if advanced tools are enabled*/
private static boolean isAdvanced = false;

//declares items
    public static final Item coke = new ItemCoke(700).setUnlocalizedName("coke").setCreativeTab(CreativeTabs.tabMisc);
    public static final Item copperIngot = new GenericItem(701).setUnlocalizedName("copperIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item aluminiumIngot = new GenericItem(702).setUnlocalizedName("aluminiumIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item graphiteFlakes = new GenericItem(703).setUnlocalizedName("graphiteDust").setCreativeTab(CreativeTabs.tabMisc);
    public static final Item steelIngot = new GenericItem(704).setUnlocalizedName("steelIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item carbonsteelIngot = new GenericItem(705).setUnlocalizedName("carbonSteelIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item titaniumSponge = new GenericItem(706).setUnlocalizedName("titaniumSponge").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item titaniumIngot = new GenericItem(707).setUnlocalizedName("titaniumIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item obsidiantitaniumIngot = new GenericItem(708).setUnlocalizedName("obsidianTitaniumIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item magnesiumDust = new GenericItem(709).setUnlocalizedName("magnesiumDust").setCreativeTab(CreativeTabs.tabMisc);
    public static final Item slimegel = new GenericItem(710).setUnlocalizedName("slimeGel").setCreativeTab(CreativeTabs.tabMisc);
    public static final Item glycerin = new GenericItem(711).setUnlocalizedName("glycerin").setCreativeTab(CreativeTabs.tabMisc);
    public static final Item glycerinNitro = new ItemNitroGlycerin(712).setUnlocalizedName("glycerinNitro").setCreativeTab(CreativeTabs.tabTools);
    public static final Item stickyTorch = new ItemStickyTorch(713).setUnlocalizedName("stickyTorchItem").setCreativeTab(CreativeTabs.tabTools);
    public static final Item obsidianIngot = new GenericItem(714).setUnlocalizedName("obsidianIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item ash = new ItemAsh(715).setUnlocalizedName("ash").setCreativeTab(CreativeTabs.tabMisc);
    
    //declares weapons and tools
    public static final Item swordCopper = new GenericSword(716, MTEnumToolMaterial.Copper).setUnlocalizedName("copperSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeCopper = new GenericPickaxe(717, MTEnumToolMaterial.Copper).setUnlocalizedName("copperPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeCopper = new GenericAxe(718, MTEnumToolMaterial.Copper).setUnlocalizedName("copperAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeCopper = new GenericHoe(719, MTEnumToolMaterial.Copper).setUnlocalizedName("copperHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelCopper = new GenericSpade(720, MTEnumToolMaterial.Copper).setUnlocalizedName("copperSpade").setCreativeTab(CreativeTabs.tabTools);
    public static final Item swordAluminium = new GenericSword(721, MTEnumToolMaterial.Aluminium).setUnlocalizedName("aluminiumSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeAluminium = new GenericPickaxe(722, MTEnumToolMaterial.Aluminium).setUnlocalizedName("aluminiumPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeAluminium = new GenericAxe(723, MTEnumToolMaterial.Aluminium).setUnlocalizedName("aluminiumAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeAluminium = new GenericHoe(724, MTEnumToolMaterial.Aluminium).setUnlocalizedName("aluminiumHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelAluminium = new GenericSpade(725, MTEnumToolMaterial.Aluminium).setUnlocalizedName("aluminiumSpade").setCreativeTab(CreativeTabs.tabTools);
    public static final Item swordSteel = new GenericSword(726, MTEnumToolMaterial.Steel).setUnlocalizedName("steelSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeSteel = new GenericPickaxe(727, MTEnumToolMaterial.Steel).setUnlocalizedName("steelPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeSteel = new GenericAxe(728, MTEnumToolMaterial.Steel).setUnlocalizedName("steelAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeSteel = new GenericHoe(729, MTEnumToolMaterial.Steel).setUnlocalizedName("steelHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelSteel = new GenericSpade(730, MTEnumToolMaterial.Steel).setUnlocalizedName("steelSpade").setCreativeTab(CreativeTabs.tabTools);
    public static final Item swordCarbonSteel = new GenericSword(731, MTEnumToolMaterial.CarbonSteel).setUnlocalizedName("carbonSteelSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeCarbonSteel = new GenericPickaxe(732, MTEnumToolMaterial.CarbonSteel).setUnlocalizedName("carbonSteelPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeCarbonSteel = new GenericAxe(733, MTEnumToolMaterial.CarbonSteel).setUnlocalizedName("carbonSteelAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeCarbonSteel = new GenericHoe(734, MTEnumToolMaterial.CarbonSteel).setUnlocalizedName("carbonSteelHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelCarbonSteel = new GenericSpade(735, MTEnumToolMaterial.CarbonSteel).setUnlocalizedName("carbonSteelSpade").setCreativeTab(CreativeTabs.tabTools);
    public static final Item swordTitanium = new GenericSword(736, MTEnumToolMaterial.Titanium).setUnlocalizedName("titaniumSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeTitanium = new GenericPickaxe(737, MTEnumToolMaterial.Titanium).setUnlocalizedName("titaniumPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeTitanium = new GenericAxe(738, MTEnumToolMaterial.Titanium).setUnlocalizedName("titaniumAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeTitanium = new GenericHoe(739, MTEnumToolMaterial.Titanium).setUnlocalizedName("titaniumHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelTitanium = new GenericSpade(740, MTEnumToolMaterial.Titanium).setUnlocalizedName("titaniumSpade").setCreativeTab(CreativeTabs.tabTools);
    public static final Item swordObsidianTitanium = new GenericSword(741, MTEnumToolMaterial.ObsidianTitanium).setUnlocalizedName("obsidianTitaniumSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeObsidianTitanium = new GenericPickaxe(742, MTEnumToolMaterial.ObsidianTitanium).setUnlocalizedName("obsidianTitaniumPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeObsidianTitanium = new GenericAxe(743, MTEnumToolMaterial.ObsidianTitanium).setUnlocalizedName("obsidianTitaniumAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeObsidianTitanium = new GenericHoe(744, MTEnumToolMaterial.ObsidianTitanium).setUnlocalizedName("obsidianTitaniumHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelObsidianTitanium = new GenericSpade(745, MTEnumToolMaterial.ObsidianTitanium).setUnlocalizedName("obsidianTitaniumSpade").setCreativeTab(CreativeTabs.tabTools);
    
    //declares blocks
    public static final Block bioCarbonizerOn = new BlockBioCarbonizer(900, true).setHardness(3.5F).setLightValue(0.875F);
    public static final Block bioCarbonizerOff = new BlockBioCarbonizer(901, false).setHardness(3.5F).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block bauxiteOre = new BlockBauxite(902).setUnlocalizedName("aluminiumOre").setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep);//aluminium ore
    public static final Block copperOre = new BlockCopper(903).setUnlocalizedName("copperOre").setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep);
    public static final Block titaniumOre = new BlockTitaniumOre(904, 6).setUnlocalizedName("titaniumOre").setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep);
    public static final Block dolomite = new BlockDolomite(905, 3).setUnlocalizedName("magnesiumOre").setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep);//magnesium ore
    public static final Block magnesiumBrick = new BlockMagnesiumBrick(906).setUnlocalizedName("magnesiumBrick").setHardness(0.3F).setResistance(10F).setLightValue(1.0F).setStepSound(Block.soundStoneFootstep).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block magnesiumBlock = new BlockMagnesium(907).setUnlocalizedName("magnesiumBlock").setHardness(0.1F).setStepSound(Block.soundClothFootstep).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block lumpgraphite = new BlockLumpGraphite(908).setUnlocalizedName("graphiteOre").setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep);//graphite ore
    public static final Block blastOn = new BlockBlast(909, true).setHardness(3.5F);
    public static final Block blastOff = new BlockBlast(910, false).setHardness(3.5F).setLightValue(0.875F).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block incineratorOn = new BlockIncinerator(911, true).setHardness(3.5F).setLightValue(0.875F);
    public static final Block incineratorOff = new BlockIncinerator(912, false).setHardness(3.5F).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block miningTnt = new BlockMiningTNT(913).setHardness(0.0F).setStepSound(Block.soundGrassFootstep).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block stickyglowBlock = new BlockStickyTorch(914).setUnlocalizedName("stickyTorch").setLightValue(1.0F);
    public static final Block uraninite = new BlockUraniumOre(915).setUnlocalizedName("uraniumOre").setHardness(0.3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setCreativeTab(CreativeTabs.tabDecorations).setLightValue(0.875F);
    public static final Block redGlass = new BlockStainedGlass(916).setUnlocalizedName("glassRed").setHardness(0.3F).setCreativeTab(CreativeTabs.tabDecorations).setStepSound(Block.soundGlassFootstep);
    public static final Block blueGlass = new BlockStainedGlass(917).setUnlocalizedName("glassBlue").setHardness(0.3F).setCreativeTab(CreativeTabs.tabDecorations).setStepSound(Block.soundGlassFootstep);
    public static final Block yellowGlass = new BlockStainedGlass(918).setUnlocalizedName("glassYellow").setHardness(0.3F).setCreativeTab(CreativeTabs.tabDecorations).setStepSound(Block.soundGlassFootstep);
    public static final Block greenGlass = new BlockStainedGlass(919).setUnlocalizedName("glassGreen").setHardness(0.3F).setCreativeTab(CreativeTabs.tabDecorations).setStepSound(Block.soundGlassFootstep);
    
    @PreInit
    public void preInit(FMLPreInitializationEvent event){
    	/* checks for MTCoreAdvanced */
    	try{
    		Class a = Class.forName("minetech.common.MTCoreAdvanced");
    		isAdvanced = false;
    		System.out.println("MineTech Core: Advanced Core found !");
    	}
    	catch (ClassNotFoundException e) {
    	      System.out.println("MineTech Core: Advanced Core not detected, reason: " + e);
    	}
    }
    
    @Init
    public void loadMod(FMLInitializationEvent initEvent){
    	loadNames();
    	MTRegistry.registerNames(this);
	MTRegistry.registerBlocks(this);
	MTRegistry.registerAllEntities(this);
	RecipeManager.addAllRecipes();
	NetworkRegistry.instance().registerGuiHandler(instance, new GuiManager());
	GameRegistry.registerWorldGenerator(new MTWorldGenerator());
    }
    
    @PostInit
    public void postInit(FMLPostInitializationEvent event) {
            // Stub Method
    }
    
    /** Returns true if advanced is enabled */
    public static boolean isAdvanced(){
    	return isAdvanced;
    }
    
    public void loadNames(){
    	LanguageRegistry.addName(redGlass, "Red Glass");
        LanguageRegistry.addName(blueGlass, "Blue Glass");
        LanguageRegistry.addName(greenGlass, "Green Glass");
        LanguageRegistry.addName(yellowGlass, "Yellow Glass");
        LanguageRegistry.addName(coke, "Coke");
        LanguageRegistry.addName(bioCarbonizerOff, "Bio Carbonizer");
        LanguageRegistry.addName(blastOff, "Blast");
        LanguageRegistry.addName(bauxiteOre, "Bauxite");
        LanguageRegistry.addName(copperOre, "Porphyry Copper");
        LanguageRegistry.addName(aluminiumIngot, "Aluminum Ingot");
        LanguageRegistry.addName(copperIngot, "Copper Ingot");
        LanguageRegistry.addName(graphiteFlakes, "Graphite Flakes");
        LanguageRegistry.addName(lumpgraphite, "Lump Graphite");
        LanguageRegistry.addName(titaniumOre, "Titanium Ore");
        LanguageRegistry.addName(dolomite, "Dolomite");
        LanguageRegistry.addName(magnesiumBrick, "Magnesium Brick");
        LanguageRegistry.addName(titaniumIngot, "Titanium Ingot");
        LanguageRegistry.addName(titaniumSponge, "Titanium Sponge");
        LanguageRegistry.addName(magnesiumDust, "Magnesium Dust");
        LanguageRegistry.addName(magnesiumBlock, "Magnesium Block");
        LanguageRegistry.addName(steelIngot, "Steel Ingot");
        LanguageRegistry.addName(carbonsteelIngot, "Carbon-Steel Ingot");
        LanguageRegistry.addName(obsidiantitaniumIngot, "Obsidian-Titanium Ingot");
        LanguageRegistry.addName(swordCopper, "Copper Sword");
        LanguageRegistry.addName(pickaxeCopper, "Copper Pickaxe");
        LanguageRegistry.addName(axeCopper, "Copper Axe");
        LanguageRegistry.addName(hoeCopper, "Copper Hoe");
        LanguageRegistry.addName(shovelCopper, "Copper Shovel");
        LanguageRegistry.addName(swordAluminium, "Aluminium Sword");
        LanguageRegistry.addName(pickaxeAluminium, "Aluminium Pickaxe");
        LanguageRegistry.addName(axeAluminium, "Aluminium Axe");
        LanguageRegistry.addName(hoeAluminium, "Aluminium How");
        LanguageRegistry.addName(shovelAluminium, "Aluminium Shovel");
        LanguageRegistry.addName(swordTitanium, "Titanium Sword");
        LanguageRegistry.addName(pickaxeTitanium, "Titanium Pickaxe");
        LanguageRegistry.addName(axeTitanium, "Titanium Axe");
        LanguageRegistry.addName(hoeTitanium, "Titanium Hoe");
        LanguageRegistry.addName(shovelTitanium, "Ttitanium Shovel");
        LanguageRegistry.addName(swordSteel,"Steel Sword");
        LanguageRegistry.addName(pickaxeSteel, "Steel Pickaxe");
        LanguageRegistry.addName(axeSteel, "Steel Axe");
        LanguageRegistry.addName(hoeSteel, "Steel Hoe");
        LanguageRegistry.addName(shovelSteel, "Steel Shovel");
        LanguageRegistry.addName(swordCarbonSteel, "Carbon-Steel Sword");
        LanguageRegistry.addName(pickaxeCarbonSteel, "Carbon-Steel Pickaxe");
        LanguageRegistry.addName(axeCarbonSteel, "Carbon-Steel Axe");
        LanguageRegistry.addName(hoeCarbonSteel, "Carbon-Steel Hoe");
        LanguageRegistry.addName(shovelCarbonSteel, "Carbon-Steel Shovel");
        LanguageRegistry.addName(swordObsidianTitanium, "Obsidian-Titanium Sword");
        LanguageRegistry.addName(pickaxeObsidianTitanium, "Obsidian-Titanium Pickaxe");
        LanguageRegistry.addName(axeObsidianTitanium, "Obsidian-Titanium Axe");
        LanguageRegistry.addName(hoeObsidianTitanium, "Obsidian-Titanium Hoe");
        LanguageRegistry.addName(shovelObsidianTitanium, "Obsidian-Titanium Shovel");
        LanguageRegistry.addName(slimegel, "Slime Gel");
        LanguageRegistry.addName(glycerin, "Glycerin");
        LanguageRegistry.addName(stickyTorch, "Sticky Torch");
        LanguageRegistry.addName(uraninite, "Uranitite");
        LanguageRegistry.addName(obsidianIngot, "Obsidian Ingot");
        LanguageRegistry.addName(glycerinNitro, "Nitro-Glycerin");
        LanguageRegistry.addName(stickyglowBlock, "Sticky Torch Block");
        LanguageRegistry.addName(ash, "Ash");
        LanguageRegistry.addName(miningTnt, "Mining TNT");
        LanguageRegistry.addName(incineratorOff, "Incinerator");
    }
}

 

And here's my registry class:

package mods.minetech;

import mods.minetech.entities.EntityNitroGlycerin;
import mods.minetech.entities.EntityStickyTorch;
import mods.minetech.tileentities.TileEntityBioCarbonizer;
import mods.minetech.tileentities.TileEntityBlast;
import mods.minetech.tileentities.TileEntityIncinerator;
import net.minecraft.item.ItemStack;
import net.minecraft.src.ModLoader;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

public class MTRegistry{

//Registers names for all blocks, items, entities
	public static void registerNames(MTCore mod){

        /*LanguageRegistry.addName(mod.redGlass, "Red Glass");
        LanguageRegistry.addName(mod.blueGlass, "Blue Glass");
        LanguageRegistry.addName(mod.greenGlass, "Green Glass");
        LanguageRegistry.addName(mod.yellowGlass, "Yellow Glass");
        LanguageRegistry.addName(mod.coke, "Coke");
        LanguageRegistry.addName(mod.bioCarbonizerOff, "Bio Carbonizer");
        LanguageRegistry.addName(mod.blastOff, "Blast");
        LanguageRegistry.addName(mod.bauxiteOre, "Bauxite");
        LanguageRegistry.addName(mod.copperOre, "Porphyry Copper");
        LanguageRegistry.addName(mod.aluminiumIngot, "Aluminum Ingot");
        LanguageRegistry.addName(mod.copperIngot, "Copper Ingot");
        LanguageRegistry.addName(mod.graphiteFlakes, "Graphite Flakes");
        LanguageRegistry.addName(mod.lumpgraphite, "Lump Graphite");
        LanguageRegistry.addName(mod.titaniumOre, "Titanium Ore");
        LanguageRegistry.addName(mod.dolomite, "Dolomite");
        LanguageRegistry.addName(mod.magnesiumBrick, "Magnesium Brick");
        LanguageRegistry.addName(mod.titaniumIngot, "Titanium Ingot");
        LanguageRegistry.addName(mod.titaniumSponge, "Titanium Sponge");
        LanguageRegistry.addName(mod.magnesiumDust, "Magnesium Dust");
        LanguageRegistry.addName(mod.magnesiumBlock, "Magnesium Block");
        LanguageRegistry.addName(mod.steelIngot, "Steel Ingot");
        LanguageRegistry.addName(mod.carbonsteelIngot, "Carbon-Steel Ingot");
        LanguageRegistry.addName(mod.obsidiantitaniumIngot, "Obsidian-Titanium Ingot");
        LanguageRegistry.addName(mod.swordCopper, "Copper Sword");
        LanguageRegistry.addName(mod.pickaxeCopper, "Copper Pickaxe");
        LanguageRegistry.addName(mod.axeCopper, "Copper Axe");
        LanguageRegistry.addName(mod.hoeCopper, "Copper Hoe");
        LanguageRegistry.addName(mod.shovelCopper, "Copper Shovel");
        LanguageRegistry.addName(mod.swordAluminium, "Aluminium Sword");
        LanguageRegistry.addName(mod.pickaxeAluminium, "Aluminium Pickaxe");
        LanguageRegistry.addName(mod.axeAluminium, "Aluminium Axe");
        LanguageRegistry.addName(mod.hoeAluminium, "Aluminium How");
        LanguageRegistry.addName(mod.shovelAluminium, "Aluminium Shovel");
        LanguageRegistry.addName(mod.swordTitanium, "Titanium Sword");
        LanguageRegistry.addName(mod.pickaxeTitanium, "Titanium Pickaxe");
        LanguageRegistry.addName(mod.axeTitanium, "Titanium Axe");
        LanguageRegistry.addName(mod.hoeTitanium, "Titanium Hoe");
        LanguageRegistry.addName(mod.shovelTitanium, "Ttitanium Shovel");
        LanguageRegistry.addName(mod.swordSteel,"Steel Sword");
        LanguageRegistry.addName(mod.pickaxeSteel, "Steel Pickaxe");
        LanguageRegistry.addName(mod.axeSteel, "Steel Axe");
        LanguageRegistry.addName(mod.hoeSteel, "Steel Hoe");
        LanguageRegistry.addName(mod.shovelSteel, "Steel Shovel");
        LanguageRegistry.addName(mod.swordCarbonSteel, "Carbon-Steel Sword");
        LanguageRegistry.addName(mod.pickaxeCarbonSteel, "Carbon-Steel Pickaxe");
        LanguageRegistry.addName(mod.axeCarbonSteel, "Carbon-Steel Axe");
        LanguageRegistry.addName(mod.hoeCarbonSteel, "Carbon-Steel Hoe");
        LanguageRegistry.addName(mod.shovelCarbonSteel, "Carbon-Steel Shovel");
        LanguageRegistry.addName(mod.swordObsidianTitanium, "Obsidian-Titanium Sword");
        LanguageRegistry.addName(mod.pickaxeObsidianTitanium, "Obsidian-Titanium Pickaxe");
        LanguageRegistry.addName(mod.axeObsidianTitanium, "Obsidian-Titanium Axe");
        LanguageRegistry.addName(mod.hoeObsidianTitanium, "Obsidian-Titanium Hoe");
        LanguageRegistry.addName(mod.shovelObsidianTitanium, "Obsidian-Titanium Shovel");
        LanguageRegistry.addName(mod.slimegel, "Slime Gel");
        LanguageRegistry.addName(mod.glycerin, "Glycerin");
        LanguageRegistry.addName(mod.stickyTorch, "Sticky Torch");
        LanguageRegistry.addName(mod.uraninite, "Uranitite");
        LanguageRegistry.addName(mod.obsidianIngot, "Obsidian Ingot");
        LanguageRegistry.addName(mod.glycerinNitro, "Nitro-Glycerin");
        LanguageRegistry.addName(mod.stickyglowBlock, "Sticky Torch Block");
        LanguageRegistry.addName(mod.ash, "Ash");
        LanguageRegistry.addName(mod.miningTnt, "Mining TNT");
        LanguageRegistry.addName(mod.incineratorOff, "Incinerator");*/
        
        /* adds Advanced Machines if enabled */
        if(mod.isAdvanced()){
        	//LanguageRegistry.addName(MTCoreAdvanced.transformer, "Transformer");
	        //LanguageRegistry.addName(MTCoreAdvanced.inductionFurnaceOff, "Induction Furnace");
	        //LanguageRegistry.addName(MTCoreAdvanced.geoGenOff, "Thermal Generator");
	        //LanguageRegistry.addName(MTCoreAdvanced.combGenOff, "Combustion Generator");
	        //LanguageRegistry.addName(MTCoreAdvanced.copperWire, "Copper Wire");
	        //LanguageRegistry.addName(MTCoreAdvanced.aluminiumWireItem, "Aluminium Wire");
	        //LanguageRegistry.addName(MTCoreAdvanced.copperWireItem, "Copper Wire");
	        //LanguageRegistry.addName(MTCoreAdvanced.aluminiumWire, "Aluminium Wire");
        	LanguageRegistry.addName(MTCoreAdvanced.twostrokeEngine, "2-Stroke Engine");
	        LanguageRegistry.addName(MTCoreAdvanced.alternator, "Alternator");
	        LanguageRegistry.addName(MTCoreAdvanced.electricMotor, "Electric Motor");
	        LanguageRegistry.addName(MTCoreAdvanced.aluminiumCasing, "Aluminium Casing");
        }
	}

	//Registers all blocks
	public static void registerBlocks(MTCore mod){
        GameRegistry.registerBlock(mod.miningTnt, "miningTNT");
        GameRegistry.registerBlock(mod.bauxiteOre, "aluminiumOre");
        GameRegistry.registerBlock(mod.bioCarbonizerOff, "bioCarbonizer");
        GameRegistry.registerBlock(mod.copperOre, "copperOre");
        GameRegistry.registerBlock(mod.lumpgraphite, "graphiteOre");
        GameRegistry.registerBlock(mod.dolomite, "magnesiumOre");
        GameRegistry.registerBlock(mod.titaniumOre, "titaniumOre");
        GameRegistry.registerBlock(mod.magnesiumBrick, "magnesiumBrick");
        GameRegistry.registerBlock(mod.magnesiumBlock, "magnesiumBlock");
        GameRegistry.registerBlock(mod.blastOff, "blast");
        GameRegistry.registerBlock(mod.uraninite, "uraninite");
        GameRegistry.registerBlock(mod.stickyglowBlock, "stickyglowBlock");
        GameRegistry.registerBlock(mod.redGlass, "glassRed");
        GameRegistry.registerBlock(mod.blueGlass, "glassBlue");
        GameRegistry.registerBlock(mod.greenGlass, "glassGreen");
        GameRegistry.registerBlock(mod.yellowGlass, "glassYellow");
        GameRegistry.registerBlock(mod.incineratorOff, "incinerator");
        
        /* adds Advanced Machines if enabled */
        if(mod.isAdvanced()){
        	/*
        	GameRegistry.registerBlock(MTCoreAdvanced.inductionFurnaceOff);
	        GameRegistry.registerBlock(MTCoreAdvanced.inductionFurnaceOn);
	        GameRegistry.registerBlock(MTCoreAdvanced.geoGenOff);
	        GameRegistry.registerBlock(MTCoreAdvanced.geoGenOn);
	        GameRegistry.registerBlock(MTCoreAdvanced.transformer);
	        GameRegistry.registerBlock(MTCoreAdvanced.combGenOff);
	        GameRegistry.registerBlock(MTCoreAdvanced.combGenOn);
	        GameRegistry.registerBlock(MTCoreAdvanced.copperWire);
	        GameRegistry.registerBlock(MTCoreAdvanced.aluminiumWire);
	        */
        }
	}

	/** registers all entities and tile entities*/
	public static void registerAllEntities(MTCore mod){
		//EntityRegistry.registerModEntity(EntityNitroGlycerin.class, "nitroGlycerin", 1, MTCore.instance, 80, 3, false);
		//EntityRegistry.registerModEntity(EntityStickyTorch.class, "stickyTorch", 2, MTCore.instance, 80, 3, false);
		ModLoader.registerEntityID(EntityNitroGlycerin.class, "nitroGlycerin", 300);
		ModLoader.registerEntityID(EntityStickyTorch.class, "stickyTorch", 301);

		GameRegistry.registerTileEntity(TileEntityBioCarbonizer.class, "bioCarbonizer");
		GameRegistry.registerTileEntity(TileEntityBlast.class, "blast");
		GameRegistry.registerTileEntity(TileEntityIncinerator.class, "incinerator");
	}

	public static void OreRegistry(MTCore mod){
		OreDictionary.registerOre("ingotCopper", new ItemStack(mod.copperIngot));
		OreDictionary.registerOre("ingotAluminium", new ItemStack(mod.aluminiumIngot));
		OreDictionary.registerOre("ingotSteel", new ItemStack(mod.steelIngot));
		OreDictionary.registerOre("ingotCarbonSteel", new ItemStack(mod.carbonsteelIngot));
		OreDictionary.registerOre("ingotTitanium", new ItemStack(mod.titaniumIngot));
		OreDictionary.registerOre("oreCopper", mod.copperOre);
		OreDictionary.registerOre("oreAluminium", mod.bauxiteOre);
		OreDictionary.registerOre("oreMagnesium", mod.dolomite);
		OreDictionary.registerOre("oreTitanium", mod.titaniumOre);
		OreDictionary.registerOre("oreUranium", mod.uraninite);
	}

	public static void addSmeltingRecipes(MTCore mod){
		GameRegistry.addSmelting(mod.copperOre.blockID, new ItemStack(mod.copperIngot, 1), 1.0F);
		GameRegistry.addSmelting(mod.bauxiteOre.blockID, new ItemStack(mod.aluminiumIngot, 1), 1.0F);
		GameRegistry.addSmelting(mod.titaniumOre.blockID, new ItemStack(mod.titaniumSponge, 1), 2.0F);
		GameRegistry.addSmelting(mod.titaniumSponge.itemID, new ItemStack(mod.titaniumIngot, 1), 2F);
	}
}

Posted

Instead of using the separate class for registering your names, just do it in your main class in the @Init method.  This piece of code is what is giving you errors:

 

MTRegistry.registerNames(this);

 

When it calls this it calls all of your mod blocks and names them all every name in the order they are in the class file, meaning that all of your blocks end up being named "Incinerator." Same goes for items.

Posted

Unrelated, but worth pointing out:

 

 public static final Block greenGlass = new BlockStainedGlass(919).setUnlocalizedName("glassGreen").setHardness(0.3F).setCreativeTab(CreativeTabs.tabDecorations).setStepSound(Block.soundGlassFootstep);

 

Ew.  You're not using a config file for your block and item IDs!

Also, all those function calls to set names, hardness, and so on, I'd put those inside the class file, except where needed to override (eg. all your stained glass has the same hardness, so put that IN the class BlockStainedGlass, but they have different names, so keep that outside).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Short Term Loans Online: A Reliable Source of Fast Cash   If you are experiencing financial difficulties, you don't have to worry about this challenge. This is the quickest and best method for handling financial catastrophes. You can pick short term loans online without reluctance, and you can apply for the payday loan you want online and have it the same day without any issues. With two to four weeks to repay the loan, you may often borrow between $100 and $1000 without having to offer any collateral.   As implied by the title, those with bad credit histories—defaults, arrears, foreclosure, late or missed payments, judgments against you, insolvency or IVA, etc.—are welcome to apply for online short term loans without having to go through any challenging procedures. Interest rates are a bit high in comparison to other loans. A thorough internet search can be used to determine the greatest rate for a financed loan.   You don't have to waste your precious time searching the internet for short term funding payday loans. In just a few minutes, you can apply for the finance you desire by completing a brief online application. The lender will approve the loan once he has verified that you have provided accurate information on this brief form. This loan is carefully deposited into your bank account in the least amount of time. You can utilize the money in a number of ways without running into any problems. Usually, the money can be used to settle debts like credit card balances, overdue bank overdrafts, tuition or school fees for children, energy bills, housing costs, and more.   Loans Lucre makes it simple to apply for short term loans online, so there's no need to drive across town. Additionally, you won't have to wait weeks for a response from us. Additionally, having bad credit shouldn't be a deal-breaker. We evaluate your entire financial history rather than just your FICO score. We approve many debtors who had been rejected by banks.   Once you are approved, Loans Lucre puts your online installment loans directly into your bank account, giving you instant access to your funds. The repayment plan is broken down into simple, reasonably priced monthly installments. Loans Lucre also rejects rollovers. Instead, we help borrowers get back on track when they encounter difficulties with the repayment process. Borrowers who regularly make their payments on time are eligible for lower annual percentage rates (APRs) on their subsequent these loans. That is truly win-win!   You will be communicating with the lender whether you apply for online personal loans through a cash advance broker or directly from the lender. The cost and duration of the transaction will be increased by any third parties you deal with through the direct lender. This will lead to a faulty perception of the "instant approval" of your payday loan, in addition to raising the cost of your transaction. When asking for a payday loan, it is therefore essential that you work with a trustworthy direct lender; a lender with a solid online reputation and satisfied clients is a wise choice.   You can apply for a short term loans online through internet platforms in addition to conventional lenders. A quicker and more convenient application process is frequently provided by these platforms. In the end, it is feasible to get a $500 loan with low credit or no credit at all, but it will need effort and careful evaluation of your financial possibilities. The lender's requirements will always determine approval, so be careful to give accurate information and look into several lenders to determine which one best suit your needs. https://loanslucre.com/  
    • Apply For Fast Cash Loans Online Today To Get Money Right Away   Do you have to deal with your money issues right away? You don't need to go anywhere because you can get fast cash loans online with just a computer and an internet connection. This suggests that you don't need to waste any time applying for these loans. All you have to do is fill out the form accurately and submit it to the lender online. They will check it and determine whether to approve the loan within the specified time frame. The money is moved to your bank account shortly after approval.   The same-day financing loan facility offers the most beneficial cash assistance in quantities ranging from $100 to $1000, with a flexible payback period of 2-4 weeks from the date of acceptance. You can use the borrowed funds to cover your child's tuition or school fees, small vacation expenses, past credit card payments, laundry costs, minor house repairs, your mother's checkups, and other emergencies.   To be qualified for same day funding loans, you must meet specific conditions regardless of your credit score—fair or low. A valid proof of domicile and proof of residence for the last 12 months, a current bank account with an SSN, being employed permanently with a monthly wage of at least $1000, and being at least eighteen years of age are prerequisites. If you satisfy the qualifications, you can apply for same-day payday loans directly without undergoing a credit check if you have bankruptcy, CCJs, IVAs, foreclosure, arrears, or defaults. As a result, getting a loan is fairly easy in the current credit market.   You must complete an application with information about your bank account and job in order to apply for a fast cash loan online from a physical payday lender. You also need to provide the lender with postdated checks that will be deposited on the scheduled repayment date. In return, you get paid right away.   Applicants can apply for same day payday loans at any time, from the comfort of their homes, eliminating the need to travel across town to a payday loan outlet. However, online payday lenders do not frequently provide same-day loans. Instead, payouts are made straight into borrowers' bank accounts via the Automated Clearing House (ACH) system; processing for this method takes at least one business day.   You must think about if you can pay back the loan in full within the allotted time because same day payday loans may have payback periods as little as one week or ten days. If you are unable to pay the full amount due, the lender might accept a token payment from you. The remaining sum will be restructured as a rollover, which is a new loan with fresh interest and administrative costs and the same short payback period. After a few rollovers, a significant number of little payday loans accumulate to the point that debtors still owe more than they originally borrowed, even after making consistent payments for months or years.   You should be ready to submit the required paperwork and supporting proof when applying for a payday loans online same day with bad credit. Usually, lenders will evaluate your present financial state, work status, and loan-repayment capacity. Many lenders specialize in bad credit loans and are willing to take on the risk of lending to those with poor credit, despite the difficulties presented by a low credit score. This implies that you are not automatically denied a loan because of poor credit or no credit at all. https://nuevacash.com/
    • I have removed stevekunglib and it is still crashing again https://pastebin.com/9vE8pji0
    • It looks like an issue with stevekunglib or a mod requiring it
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.