Jump to content

[Solved]Configuration Trouble


geneventor

Recommended Posts

I have been modding for a while-ish (about a month) and I have done a bit with blocks, items, recipies ore generation, and custom furnaces. I got a crash report that says:

 

 

 

---- Minecraft Crash Report ----

// You should try our sister game, Minceraft!

 

Time: 6/18/13 7:40 AM

Description: Failed to start game

 

java.lang.IllegalArgumentException: Slot 0 is already occupied by net.NerdSpeak.mod.common.AluminumBlock@1f26ecd2 when adding net.NerdSpeak.mod.common.TitaniumBlock@30c3bb57

at net.minecraft.block.Block.<init>(Block.java:340)

at net.NerdSpeak.mod.common.TitaniumBlock.<init>(TitaniumBlock.java:13)

at net.NerdSpeak.mod.common.mod_NerdSpeak.init(mod_NerdSpeak.java:216)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:729)

at java.lang.Thread.run(Thread.java:680)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.5.1

Operating System: Mac OS X (x86_64) version 10.8.2

Java Version: 1.6.0_43, Apple Inc.

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Apple Inc.

Memory: 967516528 bytes (922 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v7.44 FML v5.1.8.611 Minecraft Forge 7.7.1.611 4 mods loaded, 4 mods active

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

geneventor_nerdSpeak [nerdSpeak] (bin) Unloaded->Constructed->Pre-initialized->Errored

LWJGL: 2.4.2

OpenGL: Intel HD Graphics 4000 OpenGL Engine GL version 2.1 APPLE-8.6.22, Intel Inc.

Is Modded: Definitely; Client brand changed to 'forge,fml'

Type: Client (map_client.txt)

Texture Pack: Default

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

 

 

Here is the main class:

 

 

package net.NerdSpeak.mod.common;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.creativetab.CreativeTabs;

import net.minecraft.item.Item;

import net.minecraft.item.ItemStack;

import net.minecraft.item.crafting.FurnaceRecipes;

import net.minecraftforge.common.Configuration;

import net.minecraftforge.common.MinecraftForge;

import net.minecraftforge.oredict.OreDictionary;

import cpw.mods.fml.common.Mod;

import cpw.mods.fml.common.Mod.Init;

import cpw.mods.fml.common.Mod.Instance;

import cpw.mods.fml.common.Mod.PreInit;

import cpw.mods.fml.common.event.FMLInitializationEvent;

import cpw.mods.fml.common.event.FMLPreInitializationEvent;

import cpw.mods.fml.common.network.NetworkMod;

import cpw.mods.fml.common.network.NetworkRegistry;

import cpw.mods.fml.common.registry.GameRegistry;

import cpw.mods.fml.common.registry.LanguageRegistry;

 

@Mod(modid = mod_NerdSpeak.modid, name = "nerdSpeak", version = "Alpha")

@NetworkMod(clientSideRequired = true, serverSideRequired = false, channels = "nerdSpeak", packetHandler = NerdSpeakPacketHandler.class)

 

public class mod_NerdSpeak {

 

@Instance("nerdSpeak")

public static mod_NerdSpeak instance;

 

//Stuff that happens behind the steel curtain

NerdSpeakEventManager eventman = new NerdSpeakEventManager();

private GuiHandler guihandler = new GuiHandler();

 

public static final String modid = "geneventor_nerdSpeak";

 

//blocks

public static Block aluminumBlock;

public static Block titaniumBlock;

public static Block chromiumBlock;

public static Block nickelBlock;

public static Block copperBlock;

public static Block zincBlock;

public static Block silverBlock;

public static Block tinBlock;

public static Block tungstenBlock;

public static Block osmiumBlock;

public static Block platinumBlock;

public static Block leadBlock;

public static Block uraniumBlock;

public static Block basicMachineCasing;

 

//ores

public static Block aluminumOre;

public static Block titaniumOre;

public static Block chromiumOre;

public static Block nickelOre;

public static Block copperOre;

public static Block zincOre;

public static Block silverOre;

public static Block tinOre;

public static Block tungstenOre;

public static Block osmiumOre;

public static Block platinumOre;

public static Block leadOre;

public static Block uraniumOre;

 

//Chemistry Machines

public static Block fuelAtomicSeparatorIdle;

public static Block fuelAtomicSeparatorRunning;

 

//items

public static Item aluminumIngot;

public static Item titaniumIngot;

public static Item chromiumIngot;

public static Item nickelIngot;

public static Item copperIngot;

public static Item zincIngot;

public static Item silverIngot;

public static Item tinIngot;

public static Item tungstenIngot;

public static Item osmiumIngot;

public static Item platinumIngot;

public static Item leadIngot;

public static Item uraniumIngot;

 

//elements

public static Item hydrogen;

public static Item carbon;

public static Item oxygen;

 

//Extras to be removed when I can fix it

public static Item filler;

 

//Creative Tabs

public static CreativeTabs nerdSpeakTab = new NerdSpeakTab(CreativeTabs.getNextID(), "nerdSpeakTab");

 

//IDS

public static int aluminumIngotID;

public static int titaniumIngotID;

public static int chromiumIngotID;

public static int nickelIngotID;

public static int copperIngotID;

public static int zincIngotID;

public static int silverIngotID;

public static int tinIngotID;

public static int tungstenIngotID;

public static int osmiumIngotID;

public static int platinumIngotID;

public static int leadIngotID;

public static int uraniumIngotID;

public static int aluminumBlockID;

public static int titaniumBlockID;

public static int chromiumBlockID;

public static int nickelBlockID;

public static int copperBlockID;

public static int zincBlockID;

public static int silverBlockID;

public static int tinBlockID;

public static int tungstenBlockID;

public static int osmiumBlockID;

public static int platinumBlockID;

public static int leadBlockID;

public static int uraniumBlockID;

public static int aluminumOreID;

public static int titaniumOreID;

public static int chromiumOreID;

public static int nickelOreID;

public static int copperOreID;

public static int zincOreID;

public static int silverOreID;

public static int tinOreID;

public static int tungstenOreID;

public static int osmiumOreID;

public static int platinumOreID;

public static int leadOreID;

public static int uraniumOreID;

public static int atomHydrogenID;

public static int atomCarbonID;

public static int atomOxygenID;

public static int fuelAtomicSeparatorIdleID;

public static int fuelAtomicSeparatorRunningID;

public static int basicMachineCasingID;

public static int fillerID;

 

@PreInit

    public void preInit(FMLPreInitializationEvent event){

        Configuration NerdSpeakConfig = new Configuration(event.getSuggestedConfigurationFile());

//Before any other operations except the declaration

NerdSpeakConfig.load();

 

//IDs

int aluminumIngotID = NerdSpeakConfig.getBlock("ItemAluminumIngot", 713).getInt();

int titaniumIngotID = NerdSpeakConfig.getBlock("ItemTitaniumIngot", 722).getInt();

int chromiumIngotID = NerdSpeakConfig.getBlock("ItemChromiumIngot", 724).getInt();

int nickelIngotID = NerdSpeakConfig.getBlock("ItemNickelIngot", 728).getInt();

int copperIngotID = NerdSpeakConfig.getBlock("ItemCopperIngot", 729).getInt();

int zincIngotID = NerdSpeakConfig.getBlock("ItemZincIngot", 730).getInt();

int silverIngotID = NerdSpeakConfig.getBlock("ItemSilverIngot", 747).getInt();

int tinIngotID = NerdSpeakConfig.getBlock("ItemTinIngot", 750).getInt();

int tungstenIngotID = NerdSpeakConfig.getBlock("ItemTungstenIngot", 774).getInt();

int osmiumIngotID = NerdSpeakConfig.getBlock("ItemOsmiumIngot", 776).getInt();

int platinumIngotID = NerdSpeakConfig.getBlock("ItemPlatinumIngot", 778).getInt();

int leadIngotID = NerdSpeakConfig.getBlock("ItemLeadIngot", 782).getInt();

int uraniumIngotID = NerdSpeakConfig.getBlock("ItemUraniumIngot", 792).getInt();

int aluminumBlockID = NerdSpeakConfig.getBlock("AluminumBlock", 913).getInt();

int titaniumBlockID = NerdSpeakConfig.getBlock("TitaniumBlock", 922).getInt();

int chromiumBlockID = NerdSpeakConfig.getBlock("ChromiumBlock", 924).getInt();

int nickelBlockID = NerdSpeakConfig.getBlock("NickelBlock", 928).getInt();

int copperBlockID = NerdSpeakConfig.getBlock("CopperBlock", 929).getInt();

int zincBlockID = NerdSpeakConfig.getBlock("ZincBlock", 930).getInt();

int silverBlockID = NerdSpeakConfig.getBlock("SilverBlock", 947).getInt();

int tinBlockID = NerdSpeakConfig.getBlock("TinBlock", 950).getInt();

int tungstenBlockID = NerdSpeakConfig.getBlock("TungstenBlock", 974).getInt();

int osmiumBlockID = NerdSpeakConfig.getBlock("OsmiumBlock", 976).getInt();

int platinumBlockID = NerdSpeakConfig.getBlock("PlatinumBlock", 978).getInt();

int leadBlockID = NerdSpeakConfig.getBlock("LeadBlock", 982).getInt();

int uraniumBlockID = NerdSpeakConfig.getBlock("UraniumBlock", 992).getInt();

int aluminumOreID = NerdSpeakConfig.getBlock("BlockAluminumOre", 1113).getInt();

int titaniumOreID = NerdSpeakConfig.getBlock("BlockTitaniumOre", 1122).getInt();

int chromiumOreID = NerdSpeakConfig.getBlock("BlockChromiumOre", 1124).getInt();

int nickelOreID = NerdSpeakConfig.getBlock("BlockNickelOre", 1128).getInt();

int copperOreID = NerdSpeakConfig.getBlock("BlockCopperOre", 1129).getInt();

int zincOreID = NerdSpeakConfig.getBlock("BlockZincOre", 1130).getInt();

int silverOreID = NerdSpeakConfig.getBlock("BlockSilverOre", 1147).getInt();

int tinOreID = NerdSpeakConfig.getBlock("BlockTinOre", 1150).getInt();

int tungstenOreID = NerdSpeakConfig.getBlock("BlockTungstenOre", 1174).getInt();

int osmiumOreID = NerdSpeakConfig.getBlock("BlockOsmiumOre", 1176).getInt();

int platinumOreID = NerdSpeakConfig.getBlock("ItemPlatinumOre", 1178).getInt();

int leadOreID = NerdSpeakConfig.getBlock("BlockLeadOre", 1182).getInt();

int uraniumOreID = NerdSpeakConfig.getBlock("BlockUraniumOre", 1192).getInt();

int hydrogenAtomID = NerdSpeakConfig.getBlock("AtomHydrogen", 1301).getInt();

int carbonAtomID = NerdSpeakConfig.getBlock("AtomCarbon", 1306).getInt();

int oxygenAtomID = NerdSpeakConfig.getBlock("AtomOxygen", 1308).getInt();

int basicMachineCasingID = NerdSpeakConfig.getBlock("BasicMachineCasing", 600).getInt();

int fuelAtomicSeparatorIdleID = NerdSpeakConfig.getBlock("FuelAtomicSeparator", 1500).getInt();

int fuelAtomicSeparatorRunningID = NerdSpeakConfig.getBlock("FuelAtomicSeparator", 1501).getInt();

int fillerID = NerdSpeakConfig.getBlock("filler",4000).getInt();

 

//After all operations in PreInit

NerdSpeakConfig.save();

}

 

@Init

public void init(FMLInitializationEvent event) {

 

//Blocks

//Aluminum Block

mod_NerdSpeak.aluminumBlock = (new AluminumBlock(aluminumBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.aluminumBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.aluminumBlock, mod_NerdSpeak.modid + mod_NerdSpeak.aluminumBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.aluminumBlock, "Block of Aluminum");

OreDictionary.registerOre("aluminumBlock", new ItemStack(mod_NerdSpeak.aluminumBlock));

 

//TitaniumBlock

mod_NerdSpeak.titaniumBlock = (new TitaniumBlock(titaniumBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.titaniumBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.titaniumBlock, mod_NerdSpeak.modid + mod_NerdSpeak.aluminumBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.titaniumBlock, "Block of Titanium");

OreDictionary.registerOre("titaniumBlock", new ItemStack(mod_NerdSpeak.titaniumBlock));

 

//ChromiumBlock

mod_NerdSpeak.chromiumBlock = (new ChromiumBlock(chromiumBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.chromiumBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.chromiumBlock, mod_NerdSpeak.modid + mod_NerdSpeak.chromiumBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.chromiumBlock, "Block of Chromium");

OreDictionary.registerOre("chromiumBlock", new ItemStack(mod_NerdSpeak.chromiumBlock));

 

//NickelBlock

mod_NerdSpeak.nickelBlock = (new NickelBlock(nickelBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.nickelBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.nickelBlock, mod_NerdSpeak.modid + mod_NerdSpeak.nickelBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.nickelBlock, "Block of Nickel");

OreDictionary.registerOre("nickelBlock", new ItemStack(mod_NerdSpeak.nickelBlock));

 

//Copper Block

mod_NerdSpeak.copperBlock = (new CopperBlock(copperBlockID, Material.iron));

//0 is wood, 1 is stone, 2 is iron, 3 is diamond

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.copperBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.copperBlock, mod_NerdSpeak.modid + mod_NerdSpeak.copperBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.copperBlock, "Block of Copper");

OreDictionary.registerOre("copperBlock", new ItemStack(mod_NerdSpeak.copperBlock));

 

//ZincBlock

mod_NerdSpeak.zincBlock = (new ZincBlock(zincBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.zincBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.zincBlock, mod_NerdSpeak.modid + mod_NerdSpeak.zincBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.zincBlock, "Block of Zinc");

OreDictionary.registerOre("zincBlock", new ItemStack(mod_NerdSpeak.zincBlock));

 

//SilverBlock

mod_NerdSpeak.silverBlock = (new SilverBlock(silverBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.silverBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.silverBlock, mod_NerdSpeak.modid + mod_NerdSpeak.silverBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.silverBlock, "Block of Silver");

OreDictionary.registerOre("silverBlock", new ItemStack(mod_NerdSpeak.silverBlock));

 

//TinBlock

mod_NerdSpeak.tinBlock = (new TinBlock(tinBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.tinBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.tinBlock, mod_NerdSpeak.modid + mod_NerdSpeak.tinBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.tinBlock, "Block of Tin");

OreDictionary.registerOre("tinBlock", new ItemStack(mod_NerdSpeak.tinBlock));

 

//TungstenBlock

mod_NerdSpeak.tungstenBlock = (new TungstenBlock(tungstenBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.tungstenBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.tungstenBlock, mod_NerdSpeak.modid + mod_NerdSpeak.tungstenBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.tungstenBlock, "Block of Tungsten");

OreDictionary.registerOre("tungstenBlock", new ItemStack(mod_NerdSpeak.tungstenBlock));

 

//OsmiumBlock

mod_NerdSpeak.osmiumBlock = (new OsmiumBlock(osmiumBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.osmiumBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.osmiumBlock, mod_NerdSpeak.modid + mod_NerdSpeak.osmiumBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.osmiumBlock, "Block of Osmium");

OreDictionary.registerOre("osmiumBlock", new ItemStack(mod_NerdSpeak.osmiumBlock));

 

//PlatinumBlock

mod_NerdSpeak.platinumBlock = (new PlatinumBlock(platinumBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.platinumBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.platinumBlock, mod_NerdSpeak.modid + mod_NerdSpeak.platinumBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.platinumBlock, "Block of Platinum");

OreDictionary.registerOre("platinumBlock", new ItemStack(mod_NerdSpeak.platinumBlock));

 

//LeadBlock

mod_NerdSpeak.leadBlock = (new LeadBlock(leadBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.leadBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.leadBlock, mod_NerdSpeak.modid + mod_NerdSpeak.leadBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.leadBlock, "Block of Lead");

OreDictionary.registerOre("leadBlock", new ItemStack(mod_NerdSpeak.leadBlock));

 

//UraniumBlock

mod_NerdSpeak.uraniumBlock = (new UraniumBlock(uraniumBlockID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.uraniumBlock, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.uraniumBlock, mod_NerdSpeak.modid + mod_NerdSpeak.uraniumBlock.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.uraniumBlock, "Block of Uranium");

OreDictionary.registerOre("uraniumBlock", new ItemStack(mod_NerdSpeak.uraniumBlock));

 

//Ores

//Aluminum Ore

mod_NerdSpeak.aluminumOre = (new BlockAluminumOre(aluminumOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.aluminumOre, "pickaxe", 2);

GameRegistry.registerBlock(mod_NerdSpeak.aluminumOre, mod_NerdSpeak.modid + mod_NerdSpeak.aluminumOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.aluminumOre, "Aluminum Ore");

OreDictionary.registerOre("aluminumOre", new ItemStack(mod_NerdSpeak.aluminumOre));

 

//TitaniumOre;

mod_NerdSpeak.titaniumOre = (new BlockTitaniumOre(titaniumOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.titaniumOre, "pickaxe", 3);

GameRegistry.registerBlock(mod_NerdSpeak.titaniumOre, mod_NerdSpeak.modid + mod_NerdSpeak.titaniumOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.titaniumOre, "Titanium Ore");

OreDictionary.registerOre("titaniumOre", new ItemStack(mod_NerdSpeak.titaniumOre));

 

//ChromiumOre;

mod_NerdSpeak.chromiumOre = (new BlockChromiumOre(chromiumOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.chromiumOre, "pickaxe", 2);

GameRegistry.registerBlock(mod_NerdSpeak.chromiumOre, mod_NerdSpeak.modid + mod_NerdSpeak.chromiumOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.chromiumOre, "Chromium Ore");

OreDictionary.registerOre("chromiumOre", new ItemStack(mod_NerdSpeak.chromiumOre));

 

//NickelOre;

mod_NerdSpeak.nickelOre = (new BlockNickelOre(nickelOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.nickelOre, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.nickelOre, mod_NerdSpeak.modid + mod_NerdSpeak.nickelOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.nickelOre, "Nickel Ore");

OreDictionary.registerOre("nickelOre", new ItemStack(mod_NerdSpeak.nickelOre));

 

//Copper Ore

mod_NerdSpeak.copperOre = (new BlockCopperOre(copperOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.copperOre, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.copperOre, mod_NerdSpeak.modid + mod_NerdSpeak.copperOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.copperOre, "Copper Ore");

OreDictionary.registerOre("copperOre", new ItemStack(mod_NerdSpeak.copperOre));

 

//ZincOre

mod_NerdSpeak.zincOre = (new BlockZincOre(zincOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.zincOre, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.zincOre, mod_NerdSpeak.modid + mod_NerdSpeak.zincOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.zincOre, "Zinc Ore");

OreDictionary.registerOre("zincOre", new ItemStack(mod_NerdSpeak.zincOre));

 

//SilverOre

mod_NerdSpeak.silverOre = (new BlockSilverOre(silverOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.silverOre, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.silverOre, mod_NerdSpeak.modid + mod_NerdSpeak.silverOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.silverOre, "Silver Ore");

OreDictionary.registerOre("silverOre", new ItemStack(mod_NerdSpeak.silverOre));

 

//TinOre

mod_NerdSpeak.tinOre = (new BlockTinOre(tinOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.tinOre, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.tinOre, mod_NerdSpeak.modid + mod_NerdSpeak.tinOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.tinOre, "Tin Ore");

OreDictionary.registerOre("tinOre", new ItemStack(mod_NerdSpeak.tinOre));

 

//TungstenOre

mod_NerdSpeak.tungstenOre = (new BlockTungstenOre(tungstenOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.tungstenOre, "pickaxe", 2);

GameRegistry.registerBlock(mod_NerdSpeak.tungstenOre, mod_NerdSpeak.modid + mod_NerdSpeak.tungstenOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.tungstenOre, "Tungsten Ore");

OreDictionary.registerOre("tungstenOre", new ItemStack(mod_NerdSpeak.tungstenOre));

 

//OsmiumOre

mod_NerdSpeak.osmiumOre = (new BlockOsmiumOre(osmiumOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.osmiumOre, "pickaxe", 2);

GameRegistry.registerBlock(mod_NerdSpeak.osmiumOre, mod_NerdSpeak.modid + mod_NerdSpeak.osmiumOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.osmiumOre, "Osmium Ore");

OreDictionary.registerOre("osmiumOre", new ItemStack(mod_NerdSpeak.osmiumOre));

 

//PlatinumOre

mod_NerdSpeak.platinumOre = (new BlockPlatinumOre(platinumOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.platinumOre, "pickaxe", 2);

GameRegistry.registerBlock(mod_NerdSpeak.platinumOre, mod_NerdSpeak.modid + mod_NerdSpeak.platinumOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.platinumOre, "Platinum Ore");

OreDictionary.registerOre("platinumOre", new ItemStack(mod_NerdSpeak.platinumOre));

 

//LeadOre

mod_NerdSpeak.leadOre = (new BlockLeadOre(leadOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.leadOre, "pickaxe", 2);

GameRegistry.registerBlock(mod_NerdSpeak.leadOre, mod_NerdSpeak.modid + mod_NerdSpeak.leadOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.leadOre, "Lead Ore");

OreDictionary.registerOre("leadOre", new ItemStack(mod_NerdSpeak.leadOre));

 

//UraniumOre

mod_NerdSpeak.uraniumOre = (new BlockUraniumOre(uraniumOreID, Material.rock));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.uraniumOre, "pickaxe", 2);

GameRegistry.registerBlock(mod_NerdSpeak.uraniumOre, mod_NerdSpeak.modid + mod_NerdSpeak.uraniumOre.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.uraniumOre,  "Uranium Ore");

OreDictionary.registerOre("uraniumOre", new ItemStack(mod_NerdSpeak.uraniumOre));

 

//Machine Parts

//Basic Machine Casing

mod_NerdSpeak.basicMachineCasing = (new BasicMachineCasing(basicMachineCasingID, Material.iron));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.basicMachineCasing, "pickaxe", 2);

GameRegistry.registerBlock(mod_NerdSpeak.basicMachineCasing, mod_NerdSpeak.modid + mod_NerdSpeak.basicMachineCasing.getUnlocalizedName2());

LanguageRegistry.addName(mod_NerdSpeak.basicMachineCasing, "Basic Machine Casing");

 

//Elements

//Hydrogen

mod_NerdSpeak.hydrogen = (new AtomHydrogen(atomHydrogenID));

GameRegistry.registerItem(mod_NerdSpeak.hydrogen, "hydrogen");

LanguageRegistry.addName(mod_NerdSpeak.hydrogen, "Hydrogen");

 

//Carbon

mod_NerdSpeak.carbon = (new AtomCarbon(atomCarbonID));

GameRegistry.registerItem(mod_NerdSpeak.carbon, "carbon");

LanguageRegistry.addName(mod_NerdSpeak.carbon, "Carbon");

 

//Oxygen

mod_NerdSpeak.oxygen = (new AtomOxygen(atomOxygenID));

GameRegistry.registerItem(mod_NerdSpeak.oxygen, "oxygen");

LanguageRegistry.addName(mod_NerdSpeak.oxygen, "Oxygen");

 

//Items

//Aluminum Ingot

mod_NerdSpeak.aluminumIngot = (new ItemAluminumIngot(aluminumIngotID));

GameRegistry.registerItem(mod_NerdSpeak.aluminumIngot, "aluminumIngot");

LanguageRegistry.addName(mod_NerdSpeak.aluminumIngot, "Aluminum Ingot");

OreDictionary.registerOre("aluminumIngot", new ItemStack(mod_NerdSpeak.aluminumIngot));

 

//Titanium Ingot

mod_NerdSpeak.titaniumIngot = (new ItemTitaniumIngot(titaniumIngotID));

GameRegistry.registerItem(mod_NerdSpeak.titaniumIngot, "titaniumInogt");

LanguageRegistry.addName(mod_NerdSpeak.titaniumIngot, "Titanium Ingot");

OreDictionary.registerOre("titaniumIngot", new ItemStack(mod_NerdSpeak.titaniumIngot));

 

//Chromium Ingot

mod_NerdSpeak.chromiumIngot = (new ItemChromiumIngot(chromiumIngotID));

GameRegistry.registerItem(mod_NerdSpeak.chromiumIngot, "chromiumIngot");

LanguageRegistry.addName(mod_NerdSpeak.chromiumIngot, "Chromium Ingot");

OreDictionary.registerOre("chromiumIngot", new ItemStack(mod_NerdSpeak.chromiumIngot));

 

//Nickel Ingot

mod_NerdSpeak.nickelIngot = (new ItemNickelIngot(nickelIngotID));

GameRegistry.registerItem(mod_NerdSpeak.nickelIngot, "nickelIngot");

LanguageRegistry.addName(mod_NerdSpeak.nickelIngot, "Nickel Ingot");

OreDictionary.registerOre("nickelIngot", new ItemStack(mod_NerdSpeak.nickelIngot));

 

//Copper Ingot

mod_NerdSpeak.copperIngot = (new ItemCopperIngot(copperIngotID));

GameRegistry.registerItem(mod_NerdSpeak.copperIngot, "copperIngot");

LanguageRegistry.addName(mod_NerdSpeak.copperIngot, "Copper Ingot");

OreDictionary.registerOre("copperIngot", new ItemStack(mod_NerdSpeak.copperIngot));

 

//Zinc Ingot

mod_NerdSpeak.zincIngot = (new ItemZincIngot(zincIngotID));

GameRegistry.registerItem(mod_NerdSpeak.zincIngot, "zincIngot");

LanguageRegistry.addName(mod_NerdSpeak.zincIngot, "Zinc Ingot");

OreDictionary.registerOre("zincIngot", new ItemStack(mod_NerdSpeak.zincIngot));

 

//Silver Ingot

mod_NerdSpeak.silverIngot = (new ItemSilverIngot(silverIngotID));

GameRegistry.registerItem(mod_NerdSpeak.silverIngot, "silverIngot");

LanguageRegistry.addName(mod_NerdSpeak.silverIngot, "Silver Ingot");

OreDictionary.registerOre("silverIngot", new ItemStack(mod_NerdSpeak.silverIngot));

 

//Tin Ingot

mod_NerdSpeak.tinIngot = (new ItemTinIngot(tinIngotID));

GameRegistry.registerItem(mod_NerdSpeak.tinIngot, "tinIngot");

LanguageRegistry.addName(mod_NerdSpeak.tinIngot, "Tin Ingot");

OreDictionary.registerOre("tinIngot", new ItemStack(mod_NerdSpeak.tinIngot));

 

//Tungsten Ingot

mod_NerdSpeak.tungstenIngot = (new ItemTungstenIngot(tungstenIngotID));

GameRegistry.registerItem(mod_NerdSpeak.tungstenIngot, "tungstenIngot");

LanguageRegistry.addName(mod_NerdSpeak.tungstenIngot, "Tungsten Ingot");

OreDictionary.registerOre("tungstenIngot", new ItemStack(mod_NerdSpeak.tungstenIngot));

 

//Osmium Ingot

mod_NerdSpeak.osmiumIngot = (new ItemOsmiumIngot(osmiumIngotID));

GameRegistry.registerItem(mod_NerdSpeak.osmiumIngot, "osmiumIngot");

LanguageRegistry.addName(mod_NerdSpeak.osmiumIngot, "Osmium Ingot");

OreDictionary.registerOre("osmiumIngot", new ItemStack(mod_NerdSpeak.osmiumIngot));

 

//Platiunum Ingot

mod_NerdSpeak.platinumIngot = (new ItemPlatinumIngot(platinumIngotID));

GameRegistry.registerItem(mod_NerdSpeak.platinumIngot, "platinumIngot");

LanguageRegistry.addName(mod_NerdSpeak.platinumIngot, "Platinum Ingot");

OreDictionary.registerOre("platinumIngot", new ItemStack(mod_NerdSpeak.platinumIngot));

 

//Lead Ingot

mod_NerdSpeak.leadIngot = (new ItemLeadIngot(leadIngotID));

GameRegistry.registerItem(mod_NerdSpeak.leadIngot, "leadIngot");

LanguageRegistry.addName(mod_NerdSpeak.leadIngot, "LeadIngot");

OreDictionary.registerOre("leadIngot", new ItemStack(mod_NerdSpeak.leadIngot));

 

//Uranium Ingot

mod_NerdSpeak.uraniumIngot = (new ItemUraniumIngot(uraniumIngotID));

GameRegistry.registerItem(mod_NerdSpeak.uraniumIngot, "uraniumInogt");

LanguageRegistry.addName(mod_NerdSpeak.uraniumIngot, "Uranium Ingot");

OreDictionary.registerOre("uraniumIngot", new ItemStack(mod_NerdSpeak.uraniumIngot));

 

//TBR

//Filler

mod_NerdSpeak.filler = (new ItemFiller(fillerID));

GameRegistry.registerItem(mod_NerdSpeak.filler, "filler");

LanguageRegistry.addName(mod_NerdSpeak.filler, "Filler");

 

//Chemistry Machines

mod_NerdSpeak.fuelAtomicSeparatorIdle = (new FuelAtomicSeparator(fuelAtomicSeparatorIdleID, false));

MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.fuelAtomicSeparatorIdle, "pickaxe", 1);

GameRegistry.registerBlock(mod_NerdSpeak.fuelAtomicSeparatorIdle, "fuelAtomicSeparatorIdle");

LanguageRegistry.addName(mod_NerdSpeak.fuelAtomicSeparatorIdle, "Fueled Atomic Separator");

 

    mod_NerdSpeak.fuelAtomicSeparatorRunning = (new FuelAtomicSeparator(fuelAtomicSeparatorRunningID, true));

    MinecraftForge.setBlockHarvestLevel(mod_NerdSpeak.fuelAtomicSeparatorRunning, "pickaxe", 1);

    GameRegistry.registerBlock(mod_NerdSpeak.fuelAtomicSeparatorRunning, "fuelAtomicSeparatorRunning");

    LanguageRegistry.addName(mod_NerdSpeak.fuelAtomicSeparatorRunning, "Fueled Atomic Separator");

 

//Recipes

    //Shaped Recipes

GameRegistry.addRecipe(new ItemStack(basicMachineCasing), new Object[]{

//Recipes comma after every line, can only have 1 or 2 lines if lines are empty

"#@#",

"@*@",

"#@#",

'#', Item.ingotIron, '@', tinIngot, '*', aluminumIngot

});

//Shapeless Recipes

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.aluminumBlock, 1, 0), new Object[]{

new ItemStack(aluminumIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.titaniumBlock, 1, 0), new Object[]{

new ItemStack(titaniumIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.chromiumBlock, 1, 0), new Object[]{

new ItemStack(chromiumIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.nickelBlock, 1, 0), new Object[]{

new ItemStack(nickelIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.copperBlock, 1, 0), new Object[]{

new ItemStack(copperIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.zincBlock, 1, 0), new Object[]{

new ItemStack(zincIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.silverBlock, 1, 0), new Object[]{

new ItemStack(silverIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.tinBlock, 1, 0), new Object[]{

new ItemStack(tinIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.tungstenBlock, 1, 0), new Object[]{

new ItemStack(tungstenIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.osmiumBlock, 1, 0), new Object[]{

new ItemStack(osmiumIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.platinumBlock, 1, 0), new Object[]{

new ItemStack(platinumIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.leadBlock, 1, 0), new Object[]{

new ItemStack(leadIngot, 9, 0)

});

GameRegistry.addShapelessRecipe(new ItemStack(mod_NerdSpeak.uraniumBlock, 1, 0), new Object[]{

new ItemStack(uraniumIngot, 9, 0)

});

 

//Furnace Recipes

//input(put as (init class.program name.itemID.blockID), metadata, (new ItemStack(item), XP(F):

FurnaceRecipes.smelting().addSmelting(aluminumOre.blockID, 0, new ItemStack(aluminumIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(titaniumOre.blockID, 0, new ItemStack(titaniumIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(chromiumOre.blockID, 0, new ItemStack(chromiumIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(nickelOre.blockID, 0, new ItemStack(nickelIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(copperOre.blockID, 0, new ItemStack(copperIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(zincOre.blockID, 0, new ItemStack(zincIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(silverOre.blockID, 0, new ItemStack(silverIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(tinOre.blockID, 0, new ItemStack(tinIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(tungstenOre.blockID, 0, new ItemStack(tungstenIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(osmiumOre.blockID, 0, new ItemStack(osmiumIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(platinumOre.blockID, 0, new ItemStack(platinumIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(leadOre.blockID, 0, new ItemStack(leadIngot), 0.7F);

FurnaceRecipes.smelting().addSmelting(uraniumOre.blockID, 0, new ItemStack(uraniumIngot), 0.7F);

 

//Other

GameRegistry.registerWorldGenerator(eventman);

 

GameRegistry.registerTileEntity(TileEntityFuelAtomicSeparator.class, "Tile Entity Fuel Atomic Separator");

NetworkRegistry.instance().registerGuiHandler(this, guihandler);

}

 

}

 

 

 

Here is the two classes that it is talking about:

The aluminumBlock:

 

 

package net.NerdSpeak.mod.common;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.creativetab.CreativeTabs;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

public class AluminumBlock extends Block

{

public AluminumBlock(int id, Material material) {

super(id, material);

setUnlocalizedName("aluminumBlock");

setCreativeTab(mod_NerdSpeak.nerdSpeakTab);

setHardness(5.0F);

setResistance(10.0F);

setStepSound(soundMetalFootstep);

}

 

@SideOnly(Side.CLIENT)

public void registerIcons(IconRegister reg)

{

this.blockIcon = reg.registerIcon(mod_NerdSpeak.modid + ":" + this.getUnlocalizedName2());

}

}

 

 

 

And the titaniumBlock:

 

 

 

package net.NerdSpeak.mod.common;

 

import net.minecraft.block.Block;

import net.minecraft.block.material.Material;

import net.minecraft.client.renderer.texture.IconRegister;

import net.minecraft.creativetab.CreativeTabs;

import cpw.mods.fml.relauncher.Side;

import cpw.mods.fml.relauncher.SideOnly;

 

public class TitaniumBlock extends Block{

 

public TitaniumBlock(int id, Material material) {

super(id, material);

setCreativeTab(mod_NerdSpeak.nerdSpeakTab);

setUnlocalizedName("titaniumBlock");

setHardness(5.0F);

setResistance(10.0F);

setStepSound(soundMetalFootstep);

}

 

@SideOnly(Side.CLIENT)

public void registerIcons(IconRegister reg)

{

this.blockIcon = reg.registerIcon(mod_NerdSpeak.modid + ":" + this.getUnlocalizedName2());

}

}

 

 

 

Thank you for your time, geneventor

Link to comment
Share on other sites

I think I see the problem, in your individual class, it says that the Aluminum ore has Id first, in your main class it is second, my guess would be that sense minecraft doesn't see it first it assumes it is zero. But, I've never seen an error like this before, and I am new to modding myself, so this might not be the answer.

Link to comment
Share on other sites

//class level
public static int aluminumIngotID;

//function level
int aluminumIngotID = NerdSpeakConfig.getBlock("ItemAluminumIngot", 713).getInt();

//a different function
mod_NerdSpeak.aluminumIngot= (new aluminumIngotID(aluminumIngotID, Material.iron));

 

Which aluminumIngotID is being used?

The class level one.

Which is undefined.

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.

Link to comment
Share on other sites

He's having a conflict with the block, not the ingot.

 

ALL of his items will have this issue because he's declaring his ID variables twice!

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.

Link to comment
Share on other sites

Okay so I solved that(I think) but it now has an error under the load and save configuration functions. Do you know what is wrong?

 

What is the error?

(Random guess: you haven't fed your computer cheese lately)

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.

Link to comment
Share on other sites

The error on the load method is "Syntax error on token "load", Identifier expected after this token"

 

The error on the save method is "Syntax error on token "save", Identifier expected after this token"

 

Edit: also, the only thing I changed was I took the integers out of the method turned FML into a variable, and deleted the public static integers.

Link to comment
Share on other sites

Here's how I do things:

 

@PreInit
    public void preInit(FMLPreInitializationEvent event) {
    	Configuration config = new Configuration(event.getSuggestedConfigurationFile());
    	config.load();
    	int fakeID = config.getBlock("FakeBlock", 2000).getInt();
    	config.save();
    	fakeBlock = new FakeBlock(fakeID);
   }

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.

Link to comment
Share on other sites

So how do I use the game registry then, because when I do it the way you are doing, it crashes again.  :-[

 

GameRegistry.registerBlock(fakeBlock, "Fake Block");

 

And just so you know:

 

Every time it crashes, post the god damn error.  It is impossible to solve a crash error without knowing what the error is.

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.

Link to comment
Share on other sites

So how do I use the game registry then, because when I do it the way you are doing, it crashes again.  :-[

 

GameRegistry.registerBlock(fakeBlock, "Fake Block");

 

And just so you know:

 

Every time it crashes, post the god damn error.  It is impossible to solve a crash error without knowing what the error is.

 

You're making my day, bud.

Link to comment
Share on other sites

You're making my day, bud.

 

"It doesn't work" is so...unuseful.

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.

Link to comment
Share on other sites

Okay, so when it crashes, when I put all the item and block initializations in, but not the game registries, language registries, and those methods. It gives me this:

 

 

 

---- Minecraft Crash Report ----

// Daisy, daisy...

 

Time: 6/18/13 8:37 PM

Description: Failed to start game

 

cpw.mods.fml.common.LoaderException: java.lang.NullPointerException

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:232)

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:195)

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171)

at net.NerdSpeak.mod.common.mod_NerdSpeak.init(mod_NerdSpeak.java:207)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:729)

at java.lang.Thread.run(Thread.java:680)

Caused by: java.lang.NullPointerException

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214)

... 34 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.5.1

Operating System: Mac OS X (x86_64) version 10.8.2

Java Version: 1.6.0_43, Apple Inc.

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Apple Inc.

Memory: 969599808 bytes (924 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v7.44 FML v5.1.8.611 Minecraft Forge 7.7.1.611 4 mods loaded, 4 mods active

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

geneventor_nerdSpeak [nerdSpeak] (bin) Unloaded->Constructed->Pre-initialized->Errored

LWJGL: 2.4.2

OpenGL: Intel HD Graphics 4000 OpenGL Engine GL version 2.1 APPLE-8.6.22, Intel Inc.

Is Modded: Definitely; Client brand changed to 'forge,fml'

Type: Client (map_client.txt)

Texture Pack: Default

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

 

 

When I put in all the block and item registration methods it gives me this:

 

 

 

---- Minecraft Crash Report ----

// Don't be sad, have a hug! <3

 

Time: 6/18/13 8:38 PM

Description: Failed to start game

 

cpw.mods.fml.common.LoaderException: java.lang.NullPointerException

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:232)

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:195)

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171)

at net.NerdSpeak.mod.common.mod_NerdSpeak.init(mod_NerdSpeak.java:466)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:729)

at java.lang.Thread.run(Thread.java:680)

Caused by: java.lang.NullPointerException

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214)

... 34 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.5.1

Operating System: Mac OS X (x86_64) version 10.8.2

Java Version: 1.6.0_43, Apple Inc.

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Apple Inc.

Memory: 969543048 bytes (924 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v7.44 FML v5.1.8.611 Minecraft Forge 7.7.1.611 4 mods loaded, 4 mods active

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

geneventor_nerdSpeak [nerdSpeak] (bin) Unloaded->Constructed->Pre-initialized->Errored

LWJGL: 2.4.2

OpenGL: Intel HD Graphics 4000 OpenGL Engine GL version 2.1 APPLE-8.6.22, Intel Inc.

Is Modded: Definitely; Client brand changed to 'forge,fml'

Type: Client (map_client.txt)

Texture Pack: Default

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

 

 

Sorry for not prieviously showing this, geneventor

Link to comment
Share on other sites

Okay, so when it crashes, when I put all the item and block initializations in, but not the game registries, language registries, and those methods. It gives me this:

 

 

 

---- Minecraft Crash Report ----

// Daisy, daisy...

 

Time: 6/18/13 8:37 PM

Description: Failed to start game

 

cpw.mods.fml.common.LoaderException: java.lang.NullPointerException

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:232)

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:195)

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171)

at net.NerdSpeak.mod.common.mod_NerdSpeak.init(mod_NerdSpeak.java:207)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:729)

at java.lang.Thread.run(Thread.java:680)

Caused by: java.lang.NullPointerException

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214)

... 34 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.5.1

Operating System: Mac OS X (x86_64) version 10.8.2

Java Version: 1.6.0_43, Apple Inc.

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Apple Inc.

Memory: 969599808 bytes (924 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v7.44 FML v5.1.8.611 Minecraft Forge 7.7.1.611 4 mods loaded, 4 mods active

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

geneventor_nerdSpeak [nerdSpeak] (bin) Unloaded->Constructed->Pre-initialized->Errored

LWJGL: 2.4.2

OpenGL: Intel HD Graphics 4000 OpenGL Engine GL version 2.1 APPLE-8.6.22, Intel Inc.

Is Modded: Definitely; Client brand changed to 'forge,fml'

Type: Client (map_client.txt)

Texture Pack: Default

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

 

 

When I put in all the block and item registration methods it gives me this:

 

 

 

---- Minecraft Crash Report ----

// Don't be sad, have a hug! <3

 

Time: 6/18/13 8:38 PM

Description: Failed to start game

 

cpw.mods.fml.common.LoaderException: java.lang.NullPointerException

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:232)

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:195)

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:171)

at net.NerdSpeak.mod.common.mod_NerdSpeak.init(mod_NerdSpeak.java:466)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:515)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:165)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:98)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:689)

at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:206)

at net.minecraft.client.Minecraft.startGame(Minecraft.java:444)

at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)

at net.minecraft.client.Minecraft.run(Minecraft.java:729)

at java.lang.Thread.run(Thread.java:680)

Caused by: java.lang.NullPointerException

at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:214)

... 34 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.5.1

Operating System: Mac OS X (x86_64) version 10.8.2

Java Version: 1.6.0_43, Apple Inc.

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Apple Inc.

Memory: 969543048 bytes (924 MB) / 1065025536 bytes (1015 MB) up to 1065025536 bytes (1015 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v7.44 FML v5.1.8.611 Minecraft Forge 7.7.1.611 4 mods loaded, 4 mods active

mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized

geneventor_nerdSpeak [nerdSpeak] (bin) Unloaded->Constructed->Pre-initialized->Errored

LWJGL: 2.4.2

OpenGL: Intel HD Graphics 4000 OpenGL Engine GL version 2.1 APPLE-8.6.22, Intel Inc.

Is Modded: Definitely; Client brand changed to 'forge,fml'

Type: Client (map_client.txt)

Texture Pack: Default

Profiler Position: N/A (disabled)

Vec3 Pool Size: ~~ERROR~~ NullPointerException: null

 

 

 

Sorry for not prieviously showing this, geneventor

What's line 406 of your mod file?

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

Line 406 when just the initializations are in the PreInit is:

 

OreDictionary.registerOre("zincIngot", new ItemStack(zincIngot));

 

When all the block and item registers are in pre Init it is, I believe, the same thing.

 

What line has this:

 

zincIngot = new ZincIngot(...)

 

?

 

Is it in the same function?

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.

Link to comment
Share on other sites

Line 406 when just the initializations are in the PreInit is:

 

OreDictionary.registerOre("zincIngot", new ItemStack(zincIngot));

 

When all the block and item registers are in pre Init it is, I believe, the same thing.

Argh, I can't type. I meant 466. The one it's crashing on.

BEWARE OF GOD

---

Co-author of Pentachoron Labs' SBFP Tech.

Link to comment
Share on other sites

It is:

GameRegistry.registerBlock(aluminumBlock, "aluminumBlock");

 

Insert a repeat of my last question, only using aluminumBlock not zincIngot

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.

Link to comment
Share on other sites

I don't understand... Is there something wrong with how I have made the configuration or something? Or am I just being stupid?

 

class myclass {
    int myInt = 5;

    function myclass() {
        int myInt = 16;
        System.out.println(myInt);
    }

}

 

What is printed?

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.

Link to comment
Share on other sites

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

    • Selamat datang di OLXTOTO, situs slot gacor terpanas yang sedang booming di industri perjudian online. Jika Anda mencari pengalaman bermain yang luar biasa, maka OLXTOTO adalah tempat yang tepat untuk Anda. Dapatkan sensasi tidak biasa dengan variasi slot online terlengkap dan peluang memenangkan jackpot slot maxwin yang sering. Di sini, Anda akan merasakan keseruan yang luar biasa dalam bermain judi slot. DAFTAR OLXTOTO DISINI LOGIN OLXTOTO DISINI AKUN PRO OLXTOTO DISINI   Jackpot Slot Maxwin Sering Untuk Peluang Besar Di OLXTOTO, kami tidak hanya memberikan hadiah slot biasa, tapi juga memberikan kesempatan kepada pemain untuk memenangkan jackpot slot maxwin yang sering. Dengan demikian, Anda dapat meraih keberuntungan besar dan memenangkan ribuan rupiah sebagai hadiah jackpot slot maxwin kami. Jackpot slot maxwin merupakan peluang besar bagi para pemain judi slot untuk meraih keuntungan yang lebih besar. Dalam permainan kami, Anda tidak harus terpaku pada kemenangan biasa saja. Kami hadir dengan jackpot slot maxwin yang sering, sehingga Anda memiliki peluang yang lebih besar untuk meraih kemenangan besar dengan hadiah yang menggiurkan. Dalam permainan judi slot, pengalaman bermain bukan hanya tentang keseruan dan hiburan semata. Kami memahami bahwa para pemain juga menginginkan kesempatan untuk meraih keberuntungan besar. Oleh karena itu, OLXTOTO hadir dengan jackpot slot maxwin yang sering untuk memberikan peluang besar kepada para pemain kami. Peluang Besar Menang Jackpot Slot Maxwin Peluang menang jackpot slot maxwin di OLXTOTO sangatlah besar. Anda tidak perlu khawatir tentang batasan atau pembatasan dalam meraih jackpot tersebut. Kami ingin memberikan kesempatan kepada semua pemain kami untuk merasakan sensasi menang dalam jumlah yang luar biasa. Jackpot slot maxwin kami dibuka untuk semua pemain judi slot di OLXTOTO. Anda memiliki peluang yang sama dengan pemain lainnya untuk memenangkan hadiah jackpot yang besar. Kami percaya bahwa semua orang memiliki kesempatan untuk meraih keberuntungan besar, dan itulah mengapa kami menyediakan jackpot slot maxwin yang sering untuk memenuhi harapan dan keinginan Anda.   Kesimpulan OLXTOTO adalah situs slot gacor terbaik yang memberikan pengalaman bermain judi slot online yang tak terlupakan. Dengan variasi slot online terlengkap dan peluang memenangkan jackpot slot maxwin yang sering, OLXTOTO menjadi pilihan terbaik bagi para pemain yang mencari kesenangan dan kemenangan besar dalam perjudian online. Di samping itu, OLXTOTO juga menawarkan layanan pelanggan yang ramah dan responsif, siap membantu setiap pemain dalam mengatasi masalah teknis atau pertanyaan seputar perjudian online. Kami menjaga integritas game dan memberikan lingkungan bermain yang adil serta menjalankan kebijakan perlindungan pelanggan yang cermat. Bergabunglah dengan OLXTOTO sekarang dan nikmati pengalaman bermain slot online yang luar biasa. Jadilah bagian dari komunitas perjudian yang mengagumkan ini dan raih kesempatan untuk meraih kemenangan besar. Dapatkan akses mudah dan praktis ke situs OLXTOTO dan rasakan sensasi bermain judi slot yang tak terlupakan.  
    • OLXTOTO: Platform Maxwin dan Gacor Terbesar Sepanjang Masa Di dunia perjudian online yang begitu kompetitif, mencari platform yang dapat memberikan kemenangan maksimal (Maxwin) dan hasil terbaik (Gacor) adalah prioritas bagi para penjudi yang cerdas. Dalam upaya ini, OLXTOTO telah muncul sebagai pemain kunci yang mengubah lanskap perjudian online dengan menawarkan pengalaman tanpa tandingan.     Sejak diluncurkan, OLXTOTO telah menjadi sorotan industri perjudian online. Dikenal sebagai "Platform Maxwin dan Gacor Terbesar Sepanjang Masa", OLXTOTO telah menarik perhatian pemain dari seluruh dunia dengan reputasinya yang solid dan kinerja yang luar biasa. Salah satu fitur utama yang membedakan OLXTOTO dari pesaingnya adalah komitmen mereka untuk memberikan pengalaman berjudi yang unik dan memuaskan. Dengan koleksi game yang luas dan beragam, termasuk togel, slot online, live casino, dan banyak lagi, OLXTOTO menawarkan sesuatu untuk semua orang. Dibangun dengan teknologi terkini dan didukung oleh tim ahli yang berdedikasi, platform ini memastikan bahwa setiap pengalaman berjudi di OLXTOTO tidak hanya menghibur, tetapi juga menguntungkan. Namun, keunggulan OLXTOTO tidak hanya terletak pada permainan yang mereka tawarkan. Mereka juga terkenal karena keamanan dan keadilan yang mereka berikan kepada para pemain mereka. Dengan sistem keamanan tingkat tinggi dan audit rutin yang dilakukan oleh otoritas regulasi independen, para pemain dapat yakin bahwa setiap putaran permainan di OLXTOTO adalah adil dan transparan. Tidak hanya itu, OLXTOTO juga dikenal karena layanan pelanggan yang luar biasa. Dengan tim dukungan yang ramah dan responsif, para pemain dapat yakin bahwa setiap pertanyaan atau masalah mereka akan ditangani dengan cepat dan efisien. Dengan semua fitur dan keunggulan yang ditawarkannya, tidak mengherankan bahwa OLXTOTO telah menjadi platform pilihan bagi para penjudi online yang mencari kemenangan maksimal dan hasil terbaik. Jadi, jika Anda ingin bergabung dengan jutaan pemain yang telah merasakan keajaiban OLXTOTO, jangan ragu untuk mendaftar dan mulai bermain hari ini!  
    • OLXTOTO adalah bandar slot yang terkenal dan terpercaya di Indonesia. Mereka menawarkan berbagai jenis permainan slot yang menarik dan menghibur. Dengan tampilan yang menarik dan grafis yang berkualitas tinggi, pemain akan merasa seperti berada di kasino sungguhan. OLXTOTO juga menyediakan layanan pelanggan yang ramah dan responsif, siap membantu pemain dengan segala pertanyaan atau masalah yang mereka hadapi. Daftar =  https://surkale.me/Olxtotodotcom1
    • DAFTAR & LOGIN BIGO4D   Bigo4D adalah situs slot online yang populer dan menarik perhatian banyak pemain slot di Indonesia. Dengan berbagai game slot yang unik dan menarik, Bigo4D menjadi tempat yang ideal untuk pemula dan pahlawan slot yang berpengalaman. Dalam artikel ini, kami akan membahas tentang Bigo4D sebagai situs slot terbesar dan menarik yang saat ini banyak dijajaki oleh pemain slot online.
    • DAFTAR & LOGIN BIGO4D Bigo4D adalah situs togel online yang menjadi pilihan banyak pemain di Indonesia. Dengan berbagai keunggulan yang dimilikinya, Bigo4D mampu menjadi situs togel terbesar di pasaran saat ini. Dalam artikel ini, kami akan membahas secara lengkap tentang Bigo4d dan alasan-alasannya menjadi situs togel favorit banyak pemain.
  • Topics

×
×
  • Create New...

Important Information

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