Jump to content

Minecraft Test Error


DarkDestry

Recommended Posts

I get this error when i use the test function in eclipse. I would find the error my self but i dont know where to look. The error log doesnt point exactly to any point in my code.

 

2012-10-28 21:24:00 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue

2012-10-28 21:24:00 [iNFO] [sTDERR] java.lang.NullPointerException

2012-10-28 21:24:00 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.printModStates(LoadController.java:194)

2012-10-28 21:24:00 [iNFO] [sTDERR] at cpw.mods.fml.common.LoadController.transition(LoadController.java:96)

2012-10-28 21:24:00 [iNFO] [sTDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:652)

2012-10-28 21:24:00 [iNFO] [sTDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:197)

2012-10-28 21:24:00 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:465)

2012-10-28 21:24:00 [iNFO] [sTDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:752)

2012-10-28 21:24:00 [iNFO] [sTDERR] at java.lang.Thread.run(Unknown Source)

 

2012-10-29 18:02:54 [iNFO] [ForgeModLoader] Forge Mod Loader version 4.2.4.420 for Minecraft 1.4.2 loading
2012-10-29 18:02:54 [FINEST] [ForgeModLoader] All core mods are successfully located
2012-10-29 18:02:54 [FINEST] [ForgeModLoader] Discovering coremods
2012-10-29 18:02:54 [FINEST] [ForgeModLoader] Found library file argo-2.25.jar present and correct in lib dir

2012-10-29 18:02:54 [FINEST] [ForgeModLoader] Found library file guava-12.0.1.jar present and correct in lib dir

2012-10-29 18:02:54 [FINEST] [ForgeModLoader] Found library file asm-all-4.0.jar present and correct in lib dir

2012-10-29 18:02:55 [FINEST] [ForgeModLoader] Running coremod plugins
2012-10-29 18:02:55 [FINEST] [ForgeModLoader] Running coremod plugin FMLCorePlugin
2012-10-29 18:02:55 [FINEST] [ForgeModLoader] Coremod plugin FMLCorePlugin run successfully
2012-10-29 18:02:55 [FINEST] [ForgeModLoader] Running coremod plugin FMLForgePlugin
2012-10-29 18:02:55 [FINEST] [ForgeModLoader] Coremod plugin FMLForgePlugin run successfully
2012-10-29 18:02:55 [FINEST] [ForgeModLoader] Validating minecraft
2012-10-29 18:02:55 [FINEST] [ForgeModLoader] Minecraft validated, launching...
2012-10-29 18:03:03 [iNFO] [sTDOUT] 27 achievements
2012-10-29 18:03:04 [iNFO] [sTDOUT] 208 recipes
2012-10-29 18:03:06 [iNFO] [sTDOUT] Setting user: Player265, -
2012-10-29 18:03:06 [iNFO] [sTDERR] Client asked for parameter: server
2012-10-29 18:03:06 [iNFO] [sTDOUT] LWJGL Version: 2.4.2
2012-10-29 18:03:17 [iNFO] [ForgeModLoader] Attempting early MinecraftForge initialization
2012-10-29 18:03:17 [iNFO] [sTDOUT] MinecraftForge v6.0.1.337 Initialized
2012-10-29 18:03:17 [iNFO] [ForgeModLoader] MinecraftForge v6.0.1.337 Initialized
2012-10-29 18:03:17 [iNFO] [ForgeModLoader] Completed early MinecraftForge initialization
2012-10-29 18:03:18 [FINE] [ForgeModLoader] Building injected Mod Containers [cpw.mods.fml.common.FMLDummyContainer, net.minecraftforge.common.ForgeDummyContainer]
2012-10-29 18:03:18 [FINE] [ForgeModLoader] Attempting to load mods contained in the minecraft jar file and associated classes
2012-10-29 18:03:18 [FINE] [ForgeModLoader] Found a minecraft related directory at C:\Users\DarkDestry\Desktop\Java code 2\MCP\eclipse\Minecraft\bin, examining for mod candidates
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Skipping known library file C:\Users\DarkDestry\Desktop\Java code 2\MCP\jars\bin\jinput.jar
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Skipping known library file C:\Users\DarkDestry\Desktop\Java code 2\MCP\jars\bin\lwjgl_util.jar
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Skipping known library file C:\Users\DarkDestry\Desktop\Java code 2\MCP\jars\bin\lwjgl.jar
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Found a minecraft related file at C:\Users\DarkDestry\Desktop\Java code 2\MCP\jars\bin\minecraft.jar, examining for mod candidates
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Skipping known library file C:\Users\DarkDestry\Desktop\Java code 2\MCP\lib\argo-2.25.jar
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Skipping known library file C:\Users\DarkDestry\Desktop\Java code 2\MCP\lib\asm-all-4.0.jar
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Skipping known library file C:\Users\DarkDestry\Desktop\Java code 2\MCP\lib\guava-12.0.1.jar
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Skipping known library file C:\Users\DarkDestry\Desktop\Java code 2\MCP\jars\lib\argo-2.25.jar
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Skipping known library file C:\Users\DarkDestry\Desktop\Java code 2\MCP\jars\lib\guava-12.0.1.jar
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Skipping known library file C:\Users\DarkDestry\Desktop\Java code 2\MCP\jars\lib\asm-all-4.0.jar
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Minecraft jar mods loaded successfully
2012-10-29 18:03:19 [iNFO] [ForgeModLoader] Searching C:\Users\DarkDestry\Desktop\Java code 2\MCP\jars\mods for mods
2012-10-29 18:03:19 [FINE] [ForgeModLoader] Examining directory bin for potential mods
2012-10-29 18:03:19 [FINE] [ForgeModLoader] No mcmod.info file found in directory bin
2012-10-29 18:03:19 [FINEST] [ForgeModLoader] Recursing into package cpw
2012-10-29 18:03:19 [FINEST] [ForgeModLoader] Recursing into package cpw.mods
2012-10-29 18:03:19 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml
2012-10-29 18:03:19 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.client
2012-10-29 18:03:19 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.client.modloader
2012-10-29 18:03:19 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.client.registry
2012-10-29 18:03:19 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common
2012-10-29 18:03:19 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.asm
2012-10-29 18:03:20 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.asm.transformers
2012-10-29 18:03:20 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.discovery
2012-10-29 18:03:20 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.discovery.asm
2012-10-29 18:03:20 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.event
2012-10-29 18:03:20 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.functions
2012-10-29 18:03:20 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.modloader
2012-10-29 18:03:20 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.network
2012-10-29 18:03:21 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.registry
2012-10-29 18:03:21 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.toposort
2012-10-29 18:03:21 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.common.versioning
2012-10-29 18:03:21 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.relauncher
2012-10-29 18:03:21 [FINEST] [ForgeModLoader] Recursing into package cpw.mods.fml.server
2012-10-29 18:03:21 [FINEST] [ForgeModLoader] Recursing into package darkdestry
2012-10-29 18:03:21 [FINEST] [ForgeModLoader] Recursing into package darkdestry.client
2012-10-29 18:03:21 [FINEST] [ForgeModLoader] Recursing into package darkdestry.common
2012-10-29 18:03:21 [FINEST] [ForgeModLoader] Recursing into package darkdestry.experiment
2012-10-29 18:03:22 [FINE] [ForgeModLoader] Identified an FMLMod type mod darkdestry.experiment.experiment
2012-10-29 18:03:22 [FINEST] [ForgeModLoader] Parsed dependency info : [] [] []
2012-10-29 18:03:22 [FINEST] [ForgeModLoader] Recursing into package ibxm
2012-10-29 18:03:22 [FINEST] [ForgeModLoader] Recursing into package net
2012-10-29 18:03:22 [FINEST] [ForgeModLoader] Recursing into package net.minecraft
2012-10-29 18:03:22 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.client
2012-10-29 18:03:22 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.server
2012-10-29 18:03:22 [FINEST] [ForgeModLoader] Recursing into package net.minecraft.src
2012-10-29 18:03:46 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge
2012-10-29 18:03:46 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.classloading
2012-10-29 18:03:46 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.client
2012-10-29 18:03:46 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.client.event
2012-10-29 18:03:46 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.client.event.sound
2012-10-29 18:03:46 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.common
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.entity
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.entity.item
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.entity.living
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.entity.minecart
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.entity.player
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.event.world
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.oredict
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package net.minecraftforge.transformers
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package org
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.asn1
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.asn1.bc
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.asn1.pkcs
2012-10-29 18:03:47 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.crypto
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.crypto.engines
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.crypto.io
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.crypto.modes
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.crypto.params
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.jcajce
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.jcajce.provider
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.jcajce.provider.config
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.jcajce.provider.util
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.jce
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.jce.provider
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package org.bouncycastle.util
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package paulscode
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package paulscode.sound
2012-10-29 18:03:48 [FINEST] [ForgeModLoader] Recursing into package paulscode.sound.codecs
2012-10-29 18:03:48 [FINE] [ForgeModLoader] Examining file minecraft.jar for potential mods
2012-10-29 18:03:48 [FINE] [ForgeModLoader] The mod container minecraft.jar appears to be missing an mcmod.info file
2012-10-29 18:03:51 [iNFO] [ForgeModLoader] Forge Mod Loader has identified 4 mods to load
2012-10-29 18:03:51 [FINE] [ForgeModLoader] Received a system property request ''
2012-10-29 18:03:51 [FINE] [ForgeModLoader] System property request managing the state of 0 mods
2012-10-29 18:03:51 [FINE] [ForgeModLoader] After merging, found state information for 0 mods
2012-10-29 18:03:51 [FINE] [ForgeModLoader] Activating mod mcp
2012-10-29 18:03:51 [FINE] [ForgeModLoader] Activating mod FML
2012-10-29 18:03:51 [FINE] [ForgeModLoader] Activating mod Forge
2012-10-29 18:03:51 [FINE] [ForgeModLoader] Enabling mod DarkDestry_Experiment
2012-10-29 18:03:51 [FINE] [ForgeModLoader] Activating mod DarkDestry_Experiment
2012-10-29 18:03:51 [FINE] [ForgeModLoader] Verifying mod requirements are satisfied
2012-10-29 18:03:51 [FINE] [ForgeModLoader] All mod requirements are satisfied
2012-10-29 18:03:51 [FINE] [ForgeModLoader] Sorting mods into an ordered list
2012-10-29 18:03:51 [FINE] [ForgeModLoader] Mod sorting completed successfully
2012-10-29 18:03:51 [FINE] [ForgeModLoader] Mod sorting data:
2012-10-29 18:03:51 [FINE] [ForgeModLoader] 	DarkDestry_Experiment(Experiment:1.0.0): bin ()
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sending event FMLConstructionEvent to mod mcp
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sent event FMLConstructionEvent to mod mcp
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sending event FMLConstructionEvent to mod FML
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sent event FMLConstructionEvent to mod FML
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sending event FMLConstructionEvent to mod Forge
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sent event FMLConstructionEvent to mod Forge
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sending event FMLConstructionEvent to mod DarkDestry_Experiment
2012-10-29 18:03:51 [FINEST] [ForgeModLoader] Testing mod DarkDestry_Experiment to verify it accepts its own version in a remote connection
2012-10-29 18:03:51 [FINEST] [ForgeModLoader] The mod DarkDestry_Experiment accepts its own version (1.0.0)
2012-10-29 18:03:51 [FINE] [ForgeModLoader] Attempting to inject @SidedProxy classes into DarkDestry_Experiment
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sent event FMLConstructionEvent to mod DarkDestry_Experiment
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sending event FMLPreInitializationEvent to mod mcp
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sent event FMLPreInitializationEvent to mod mcp
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sending event FMLPreInitializationEvent to mod FML
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sent event FMLPreInitializationEvent to mod FML
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sending event FMLPreInitializationEvent to mod Forge
2012-10-29 18:03:51 [iNFO] [ForgeModLoader] Configured a dormant chunk cache size of 0
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sent event FMLPreInitializationEvent to mod Forge
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sending event FMLPreInitializationEvent to mod DarkDestry_Experiment
2012-10-29 18:03:51 [FINER] [ForgeModLoader] Sent event FMLPreInitializationEvent to mod DarkDestry_Experiment
2012-10-29 18:03:53 [iNFO] [sTDOUT] Starting up SoundSystem...
2012-10-29 18:03:53 [iNFO] [sTDOUT] Initializing LWJGL OpenAL
2012-10-29 18:03:53 [iNFO] [sTDOUT]     (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
2012-10-29 18:03:54 [iNFO] [sTDOUT] OpenAL initialized.
2012-10-29 18:03:55 [FINER] [ForgeModLoader] Sending event FMLInitializationEvent to mod mcp
2012-10-29 18:03:55 [FINER] [ForgeModLoader] Sent event FMLInitializationEvent to mod mcp
2012-10-29 18:03:55 [FINER] [ForgeModLoader] Sending event FMLInitializationEvent to mod FML
2012-10-29 18:03:55 [FINER] [ForgeModLoader] Sent event FMLInitializationEvent to mod FML
2012-10-29 18:03:55 [FINER] [ForgeModLoader] Sending event FMLInitializationEvent to mod Forge
2012-10-29 18:03:55 [FINER] [ForgeModLoader] Sent event FMLInitializationEvent to mod Forge
2012-10-29 18:03:55 [FINER] [ForgeModLoader] Sending event FMLInitializationEvent to mod DarkDestry_Experiment
2012-10-29 18:03:55 [FINER] [ForgeModLoader] Sent event FMLInitializationEvent to mod DarkDestry_Experiment
2012-10-29 18:03:55 [sEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
2012-10-29 18:03:55 [iNFO] [sTDERR] java.lang.NullPointerException
2012-10-29 18:03:55 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.printModStates(LoadController.java:194)
2012-10-29 18:03:55 [iNFO] [sTDERR] 	at cpw.mods.fml.common.LoadController.transition(LoadController.java:96)
2012-10-29 18:03:55 [iNFO] [sTDERR] 	at cpw.mods.fml.common.Loader.initializeMods(Loader.java:652)
2012-10-29 18:03:55 [iNFO] [sTDERR] 	at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:197)
2012-10-29 18:03:55 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.startGame(Minecraft.java:465)
2012-10-29 18:03:55 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:752)
2012-10-29 18:03:55 [iNFO] [sTDERR] 	at java.lang.Thread.run(Unknown Source)
2012-10-29 18:13:18 [iNFO] [sTDERR] Someone is closing me!

 

Main File

 

package darkdestry.experiment;

import net.minecraft.src.Block;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import darkdestry.common.CommonProxydarkdestry;

@Mod(modid = "DarkDestry_Experiment", name = "Experiment", version = "1.0.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class experiment 
{
public static Block DenseStone;
public static Block DenseCobblestone;
public static Item DenseStoneShard;
public static Item AntiMatter;

//Block Texture render
@SidedProxy(clientSide = "darkdestry.client.ClientProxydarkdestry", serverSide = "darkdestry.common.CommonProxydarkdestry")
public static CommonProxydarkdestry proxy;

//Main Chunk
@Init
public void load(FMLInitializationEvent event)
{
	GameRegistry.addRecipe(new ItemStack(darkdestry.experiment.experiment.DenseCobblestone), new Object[]
			{
				"YYY",
				"YXY",
				"YYY",
				'X', Block.stone, 'Y', Item.bucketLava
			});
	GameRegistry.addRecipe(new ItemStack(darkdestry.experiment.experiment.DenseStone), new Object[]
			{
				"XXX",
				"XXX",
				"XXX",
				'X', darkdestry.experiment.experiment.DenseStoneShard
			});
	GameRegistry.addSmelting(darkdestry.experiment.experiment.DenseCobblestone.blockID, new ItemStack(darkdestry.experiment.experiment.DenseStoneShard), 0.2F);
	GameRegistry.addSmelting(darkdestry.experiment.experiment.DenseStone.blockID, new ItemStack(darkdestry.experiment.experiment.AntiMatter), 0.5F);

	DenseStoneShard = new ItemStoneShardDense(1400).setItemName("DenseStoneShard").setIconIndex(1);
	AntiMatter = new ItemNonMatter(1401).setItemName("AntiMatter").setIconIndex(2);

	DenseStone = new BlockStoneDense(1500,0).setBlockName("DenseStone").setStepSound(Block.soundStoneFootstep).setHardness(7F).setResistance(10F);
	DenseCobblestone = new BlockDenseCobble(1501,1).setBlockName("DenseCobblestone").setStepSound(Block.soundStoneFootstep).setHardness(9F).setResistance(10F);

	GameRegistry.registerBlock(DenseStone);
	GameRegistry.registerBlock(DenseCobblestone);

	LanguageRegistry.addName(DenseStoneShard, "Dense Stoneshard");
	LanguageRegistry.addName(DenseCobblestone, "Dense Cobblestone");
	LanguageRegistry.addName(DenseStone, "Dense Stone");
}

}

Link to comment
Share on other sites

It might be a problem with your mod (DarkDestry_Experiment). I'd guess that the error occurs in the Init function. If you can't find it yourself, can we see your @Mod file?

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

 

width=635 height=903http://bit.ly/HZ03zy[/img]

 

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

Link to comment
Share on other sites

I won't pretend that this will work or that I have tested it, because I haven't. I just rewrote and rearranged your main file to follow a top down flow of instantiation and use. Might need some changes before it would compile but you shouldn't be accessing things that haven't been instantiated with this, at least.

 

package darkdestry.experiment;

import net.minecraft.src.Block;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import darkdestry.common.CommonProxydarkdestry;

@Mod(modid = "DarkDestry_Experiment", name = "Experiment", version = "1.0.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class experiment {
public static Block denseStone;
public static Block denseCobblestone;
public static Item denseStoneShard;
public static Item antiMatter;

// Block Texture render
@SidedProxy(clientSide = "darkdestry.client.ClientProxydarkdestry", serverSide = "darkdestry.common.CommonProxydarkdestry")
public static CommonProxydarkdestry proxy;

// Main Chunk
@Init
public void load(FMLInitializationEvent event) {
	denseStone = new BlockStoneDense(1500, 0).setBlockName("DenseStone").setStepSound(Block.soundStoneFootstep).setHardness(7F).setResistance(10F);
	denseCobblestone = new BlockDenseCobble(1501, 1).setBlockName("DenseCobblestone").setStepSound(Block.soundStoneFootstep).setHardness(9F).setResistance(10F);
	denseStoneShard = new ItemStoneShardDense(1400).setItemName("DenseStoneShard").setIconIndex(1);
	antiMatter = new ItemNonMatter(1401).setItemName("AntiMatter").setIconIndex(2);

	ItemStack denseCobblestoneStack = new ItemStack(denseStone);
	ItemStack denseStoneStack = new ItemStack(denseCobblestone);
	ItemStack denseStoneShardStack = new ItemStack(denseStoneShard);
	ItemStack antiMatterStack = new ItemStack(antiMatter);

	GameRegistry.addRecipe(denseCobblestoneStack, "SSS", "SLS", "SSS", 'S', Block.stone, 'L', Item.bucketLava);
	GameRegistry.addRecipe(denseStoneStack, "SSS", "SSS", "SSS", 'S', denseStoneShardStack);

	GameRegistry.addSmelting(denseCobblestone.blockID, denseStoneShardStack, 0.2F);
	GameRegistry.addSmelting(denseStone.blockID, antiMatterStack, 0.5F);

	GameRegistry.registerBlock(denseStone);
	GameRegistry.registerBlock(denseCobblestone);

	LanguageRegistry.addName(denseStoneShard, "Dense Stoneshard");
	LanguageRegistry.addName(denseCobblestone, "Dense Cobblestone");
	LanguageRegistry.addName(denseStone, "Dense Stone");
}

}

 

I'm only guessing here.

Link to comment
Share on other sites

I looked at your code and saw that your order of doing things was a little weird. It read like this;

 

Register Recipe
Register Recipe

Register Smelting
Register Smelting

Define Item
Define Item
Define Item
Define Item

Register Block
Register Block

Register Item Name
Register Item Name
Register Item Name

 

So I reordered things to read like this:

 

Define Item
Define Item
Define Item
Define Item

Define ItemStack
Define ItemStack
Define ItemStack
Define ItemStack

Register Recipe
Register Recipe

Register Smelting
Register Smelting

Register Block
Register Block

Register Item Name
Register Item Name
Register Item Name

 

This adheres to a more structured, easily readable order of operations, assuring that things you will be using in the code are properly defined and exist.

 

I also simplified your recipes a tiny bit and added some ItemStack variables for legibility.

 

I think the main issue was that when you were creating your recipes (first thing you did, smelting in particular) you were using Blocks that didn't have their info set yet. BlockIDs for one.

 

I'm not 100% certain if that was the issue or not, but it's what I noticed first and foremost. Glad that everything ended up working out.

 

You probably already noticed, but I also left out defining "AntiMatter" in the language registry. I wasn't sure what you wanted to do with that, but make sure you register that as well. (-;

Link to comment
Share on other sites

i wanted to make a extremely dense fuel one that last longer than a lava bucket. I noticed that you didnt use the full name of the item you merely just stated the item in the itemstack Is it that if under the same file no full classification of the item is needed??? Eg full name as in darkdestry.experiment.experiment.stoneDense while you just stated stoneDense in the itemstack. Therefore if i wanted to refer to that item in another class which do i type in ? A final question is i cant figure how to make a Item Texture sheet can you teach me ??? All tutorials on the net very vague not very informative.

Link to comment
Share on other sites

Similar to what is done in the Item.java file you make some public static variables you can access.

 

They're already public static variables;

 

public static Block denseStone;
public static Block denseCobblestone;
public static Item denseStoneShard;
public static Item antiMatter;

 

Which I declared like this:

 

denseStone = new BlockStoneDense(1500, 0).setBlockName("DenseStone").setStepSound(Block.soundStoneFootstep).setHardness(7F).setResistance(10F);
denseCobblestone = new BlockDenseCobble(1501, 1).setBlockName("DenseCobblestone").setStepSound(Block.soundStoneFootstep).setHardness(9F).setResistance(10F);
denseStoneShard = new ItemStoneShardDense(1400).setItemName("DenseStoneShard").setIconIndex(1);
antiMatter = new ItemNonMatter(1401).setItemName("AntiMatter").setIconIndex(2);

 

So when you need to access those blocks in the current file, you should be able to use:

 

denseStone
denseCobblestone
denseStoneShard
antiMatter

 

And when you need to access those blocks in another file, you should be able to use the below if the file is in the same package as your "experiment.java" file:

 

experiment.denseStone
experiment.denseCobblestone
experiment.denseStoneShard
experiment.antiMatter

 

If you're accessing it from a different package, you need to import your experiment file, then you can use them the same way.

 

It might also help to change your experiment file name or package name to something else. darkdestry.experiment.experiment.* is confusing.

 

To make an item texture sheet, you need a 256x256 png file that you load in your ClientRegistry.java;

 

public void registerRenderers() {
    MinecraftForgeClient.preloadTexture("path/to/the/texture/file.png");
}

 

Then to set the item to use that texture, add this function to the Item's class:

 

public String getTextureFile () {
    return "path/to/the/texture/file.png";
}

 

The tutorial I used to figure this out was the basic tutorial found here.

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

    • ladangtoto situs resmi ladangtoto situs terpercaya 2024   Temukan situs resmi dan terpercaya untuk tahun 2024 di LadangToto! Dengan layanan terbaik dan keamanan yang terjamin, LadangToto adalah pilihan utama untuk penggemar judi online. Daftar sekarang untuk mengakses berbagai jenis permainan taruhan, termasuk togel, kasino, dan banyak lagi. Jelajahi sensasi taruhan yang tak terlupakan dan raih kesempatan besar untuk meraih kemenangan di tahun ini dengan LadangToto!" [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]] [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]]
    • WINNING303 DAFTAR SITUS JUDI SLOT RESMI TERPERCAYA 2024 Temukan situs judi slot resmi dan terpercaya untuk tahun 2024 di Winning303! Daftar sekarang untuk mengakses pengalaman berjudi slot yang aman dan terjamin. Dengan layanan terbaik dan reputasi yang kokoh, Winning303 adalah pilihan terbaik bagi para penggemar judi slot. Jelajahi berbagai pilihan permainan dan raih kesempatan besar untuk meraih kemenangan di tahun ini dengan Winning303 [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]] [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]]
    • SLOT PULSA TANPA POTONGAN : SLOT PULSA 5000 VIA INDOSAT IM3 TANPA POTONGAN - SLOT PULSA XL TELKOMSEL TANPA POTONGAN  KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << KLIK DISINI DAFTAR DISINI SLOT VVIP << SITUS SLOT GACOR 88 MAXWIN X500 HARI INI TERBAIK DAN TERPERCAYA GAMPANG MENANG Dunia Game gacor terus bertambah besar seiring berjalannya waktu, dan sudah tentu dunia itu terus berkembang serta merta bersamaan dengan berkembangnya SLOT GACOR sebagai website number #1 yang pernah ada dan tidak pernah mengecewakan sekalipun. Dengan banyaknya member yang sudah mempercayakan untuk terus menghasilkan uang bersama dengan SLOT GACOR pastinya mereka sudah percaya untuk bermain Game online bersama dengan kami dengan banyaknya testimoni yang sudah membuktikan betapa seringnya member mendapatkan jackpot besar yang bisa mencapai ratusan juta rupiah. Best online Game website that give you more money everyday, itu lah slogan yang tepat untuk bermain bersama SLOT GACOR yang sudah pasti menang setiap harinya dan bisa menjadikan bandar ini sebagai patokan untuk mendapatkan penghasilan tambahan yang efisien dan juga sesuatu hal yang fix setiap hari nya. Kami juga mendapatkan julukan sebagai Number #1 website bocor yang berarti terus memberikan member uang asli dan jackpot setiap hari nya, tidak lupa bocor itu juga bisa diartikan dalam bentuk berbagi promosi untuk para official member yang terus setia bermain bersama dengan kami. Berbagai provider Game terus bertambah banyak setiap harinya dan terus melakukan support untuk membuat para official member terus bisa menang dan terus maxwin dalam bentuk apapun maka itu langsung untuk feel free to try yourself, play with SLOT GACOR now or never !
    • BRI4D adalah pilihan tepat bagi Anda yang menginginkan pengalaman bermain slot dengan RTP tinggi dan transaksi yang akurat melalui Bank BRI. Berikut adalah beberapa alasan mengapa Anda harus memilih BRI4D: Tingkat Pengembalian (RTP) Tertinggi Kami bangga menjadi salah satu agen situs slot dengan RTP tertinggi, mencapai 99%! Ini berarti Anda memiliki peluang lebih besar untuk meraih kemenangan dalam setiap putaran permainan. Transaksi Melalui Bank BRI yang Akurat Proses deposit dan penarikan dana di BRI4D cepat, mudah, dan akurat. Kami menyediakan layanan transaksi melalui Bank BRI untuk kenyamanan Anda. Dengan begitu, Anda dapat melakukan transaksi dengan lancar dan tanpa khawatir. Beragam Pilihan Permainan BRI4D menyajikan koleksi permainan slot yang beragam dan menarik dari berbagai provider terkemuka. Mulai dari tema klasik hingga yang paling modern, Anda akan menemukan banyak pilihan permainan yang sesuai dengan selera dan preferensi Anda.  
    • SPARTA88 adalah pilihan tepat bagi Anda yang menginginkan agen situs slot terbaik dengan RTP tinggi dan transaksi yang mudah melalui Bank BNI. Berikut adalah beberapa alasan mengapa Anda harus memilih SPARTA88: Tingkat Pengembalian (RTP) Tinggi Kami bangga menjadi salah satu agen situs slot dengan RTP tertinggi, mencapai 98%! Ini berarti Anda memiliki peluang lebih besar untuk meraih kemenangan dalam setiap putaran permainan. Beragam Pilihan Permainan SPARTA88 menyajikan koleksi permainan slot yang beragam dan menarik dari berbagai provider terkemuka. Mulai dari tema klasik hingga yang paling modern, Anda akan menemukan banyak pilihan permainan yang sesuai dengan selera dan preferensi Anda. Kemudahan Bertransaksi Melalui Bank BNI Proses deposit dan penarikan dana di SPARTA88 cepat, mudah, dan aman. Kami menyediakan layanan transaksi melalui Bank BNI untuk kenyamanan Anda. Dengan begitu, Anda dapat melakukan transaksi dengan lancar tanpa perlu khawatir.
  • Topics

×
×
  • Create New...

Important Information

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