Crash report:
---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3
Time: 8/7/13 5:37 PM
Description: Initializing game
java.lang.IllegalArgumentException: Illegal object for naming null
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:113)
at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:121)
at DeepModForge.DeepModForge.load1(DeepModForge.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:313)
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.sendEventToModContainer(LoadController.java:194)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:313)
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:105)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:697)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:232)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:506)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:113)
at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:121)
at DeepModForge.DeepModForge.load1(DeepModForge.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:313)
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.sendEventToModContainer(LoadController.java:194)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:313)
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:105)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:697)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:232)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:506)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_03, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 993442544 bytes (947 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 v8.04 FML v6.2.35.804 Minecraft Forge 9.10.0.804 4 mods loaded, 4 mods active
mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{6.2.35.804} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{9.10.0.804} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
thedeepmod{v1.0} [TheDeepMod] (bin) Unloaded->Constructed->Pre-initialized->Errored
Launched Version: 1.6
LWJGL: 2.9.0
OpenGL: AMD M880G with ATI Mobility Radeon HD 4250 GL version 3.3.10179 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Pack: Default
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
The error is because your naming an object/item/block in your DeepModForge.class on line 91 ? Like microjunk said, post your main mod file or at least that line ?
/*
* Basic needed forge stuff
*/
@Mod(modid= DeepModForge.modid,name="TheDeepMod",version="v1.0")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class DeepModForge
{
public static final String modid="thedeepmod";
/*
* ToolMaterial
*/
//Telling forge that we are creating these
//items
public static Item Lonsdaleite;
//blocks
public static Block LonsdaleiteBlock;
//Creative Tab
public static CreativeTabs BlocksOfTheDeep = new TabBlocksOfTheDeep(CreativeTabs.getNextID(), "Blocks Of The Deep");
public static CreativeTabs EssenceFromTheDepth = new TabEssenceFromTheDepth(CreativeTabs.getNextID(), "Essence From The Depth");
//Declaring Init
@Instance("EssenceFromTheDepth")
public static EssenceFromTheDepth instance;
@Instance("BlocksOfTheDeep")
public static BlocksOfTheDeep instance1;
@EventHandler
public void load(FMLInitializationEvent event){}
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
}
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
// define blocks
LonsdaleiteBlock = new BlocksOfTheDeep(521,Material.rock).setUnlocalizedName("LonsdaleiteBlock").setHardness(70.0F).setStepSound(Block.soundMetalFootstep).setResistance(5000.0F);GameRegistry.registerBlock(LonsdaleiteBlock, "LonsdaleiteBlock");
;
//define items
Lonsdaleite = new EssenceFromTheDepth(3759).setUnlocalizedName("Lonsdaleite").func_111206_d("thedeepmod:Lonsdaleite");
//BlockHarvestLevel
MinecraftForge.setBlockHarvestLevel(LonsdaleiteBlock, "pickaxe", 5);}
//adding names
@EventHandler
public void load1(FMLInitializationEvent event) {
LanguageRegistry.addName(Lonsdaleite, "Lonsdaleite");
LanguageRegistry.addName(LonsdaleiteBlock, "Lonsdaleite Block");
}
// TODO Auto-generated method stub
// TODO Auto-generated method stub
{
}
}
//crafting
Block:
package DeepModForge;
import java.util.Random;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class BlocksOfTheDeep extends Block
{
public BlocksOfTheDeep(int par1, Material rock)
{
super(par1, Material.rock);
//place in creative tabs
setCreativeTab(DeepModForge.BlocksOfTheDeep);
{
}
}
// TODO Auto-generated constructor stub
//drops when broken with pickaxe
public int idDropped(int par1, Random random, int zero) {
return DeepModForge.LonsdaleiteBlock.blockID;
}
public int quantityDropped(Random random)
{
return DeepModForge.LonsdaleiteBlock.blockID;
}
public void registerIcons(IconRegister iconRegister)
{
blockIcon= iconRegister.registerIcon("thedeepmod:LonsdaleiteBlock");
}
}
public class EssenceFromTheDepth extends Item {
public EssenceFromTheDepth(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(DeepModForge.EssenceFromTheDepth);
}
public void registerIcons(IconRegister iconRegister)
{
itemIcon= iconRegister.registerIcon("thedeepmod:Lonsdaleite");
}
}
The Two Creative Tabs I added:
Creative tab 1:
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
public final class TabEssenceFromTheDepth extends CreativeTabs
{
public TabEssenceFromTheDepth(int par1, String par2Str)
{
super(par1, par2Str);
}
//sets the image for the creative tab
@SideOnly(Side.CLIENT)
public int getTabIconItemIndex()
{
//there is a difference between items and blocks. will give an example of both
return DeepModForge.Lonsdaleite.itemID;
}
//sets the title/name for the creative tab
public String getTranslatedTabLabel()
{
return "Essence From The Depth";
}
}
Second Creative Tab:
package DeepModForge;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
public final class TabBlocksOfTheDeep extends CreativeTabs
{
public TabBlocksOfTheDeep(int par1, String par2Str)
{
super(par1, par2Str);
}
//sets the image for the creative tab
@SideOnly(Side.CLIENT)
public int getTabIconItemIndex()
{
//there is a difference between items and blocks. will give an example of both
return DeepModForge.LonsdaleiteBlock.blockID;
}
//sets the title/name for the creative tab
public String getTranslatedTabLabel()
{
return "Blocks Of The Deep";
}
}I don't care if u steal my code if u are that retarded, but this mod is like 2% finish anyways so yeah retardes that like stealing other peoples' code I claim it as their ownAny ways thx alot if u help
I don't care if u steal my code if u are that retarded, but this mod is like 2% finish anyways so yeah retardes that like stealing other peoples' code I claim it as their own
Any ways thx alot if u help
No one is going to steal your code, but if you want help you should always post code if applicable. Also another note, learn to use spoiler tags and code tags, it helps us help you much better and faster, instead of trying to read plain txt code like you have basically created...also I notice right off you did not register your block in the mod class....also not necessary to have two instances, only one, will cause more issues down the road.....
I did GameRegistry.registerBlock(LonsdaleiteBlock, "LonsdaleiteBlock"); in the define block area
I didnt see it, also lose one of your instances because you will get errors later in your coding due to two instances being there, only one is necessary. Also the error in your crash repo implies you are missing the registerBlock, so if you do have it it is in the wrong place...needs to be in the load method.
I didnt see it, also lose one of your instances because you will get errors later in your coding due to two instances being there, only one is necessary. Also the error in your crash repo implies you are missing the registerBlock, so if you do have it it is in the wrong place...needs to be in the load method.
Exactly why you need to post code in Spoiler/Code tags, it makes everything a lot neater/readable.
/*
* Basic needed forge stuff
*/
@Mod(modid= DeepModForge.modid,name="TheDeepMod",version="v1.0")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class DeepModForge
{
public static final String modid="thedeepmod";
/*
* ToolMaterial
*/
//Telling forge that we are creating these
//items
public static Item Lonsdaleite;
//blocks
public static Block LonsdaleiteBlock;
//Creative Tab
public static CreativeTabs BlocksOfTheDeep = new TabBlocksOfTheDeep(CreativeTabs.getNextID(), "Blocks Of The Deep");
public static CreativeTabs EssenceFromTheDepth = new TabEssenceFromTheDepth(CreativeTabs.getNextID(), "Essence From The Depth");
//Declaring Init
@Instance("EssenceFromTheDepth")
public static EssenceFromTheDepth instance;
@Instance("BlocksOfTheDeep")
public static BlocksOfTheDeep instance1;
@EventHandler
public void load(FMLInitializationEvent event){}
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
}
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
// define blocks
LonsdaleiteBlock = new BlocksOfTheDeep(521,Material.rock).setUnlocalizedName("LonsdaleiteBlock").setHardness(70.0F).setStepSound(Block.soundMetalFootstep).setResistance(5000.0F);
public class EssenceFromTheDepth extends Item {
public EssenceFromTheDepth(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(DeepModForge.EssenceFromTheDepth);
}
public void registerIcons(IconRegister iconRegister)
{
itemIcon= iconRegister.registerIcon("thedeepmod:Lonsdaleite");
}
}
The Two Creative Tabs I added:
Creative tab 1:
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
public final class TabEssenceFromTheDepth extends CreativeTabs
{
public TabEssenceFromTheDepth(int par1, String par2Str)
{
super(par1, par2Str);
}
//sets the image for the creative tab
@SideOnly(Side.CLIENT)
public int getTabIconItemIndex()
{
//there is a difference between items and blocks. will give an example of both
return DeepModForge.Lonsdaleite.itemID;
}
//sets the title/name for the creative tab
public String getTranslatedTabLabel()
{
return "Essence From The Depth";
}
}
Second Creative Tab:
package DeepModForge;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
public final class TabBlocksOfTheDeep extends CreativeTabs
{
public TabBlocksOfTheDeep(int par1, String par2Str)
{
super(par1, par2Str);
}
//sets the image for the creative tab
@SideOnly(Side.CLIENT)
public int getTabIconItemIndex()
{
//there is a difference between items and blocks. will give an example of both
return DeepModForge.LonsdaleiteBlock.blockID;
}
//sets the title/name for the creative tab
public String getTranslatedTabLabel()
{
return "Blocks Of The Deep";
}
When you make a post, in the box you type in right below the smiley face there is a button that looks like this <>, it is for adding code and it also highlights key words like a java IDE does and makes it real nice for us to read so we can help you. Making the text multi colored like that hurts the eyes, especially on older folk like me....
package DeepModForge; //Package directory
/*
* Basic importing
*/
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.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
/*
* Basic needed forge stuff
*/
@Mod(modid= DeepModForge.modid,name="TheDeepMod",version="v1.0")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class DeepModForge
{
public static final String modid="thedeepmod";
/*
* ToolMaterial
*/
//Telling forge that we are creating these
//items
public static Item Lonsdaleite;
//blocks
public static Block LonsdaleiteBlock;
//Creative Tab
public static CreativeTabs BlocksOfTheDeep = new TabBlocksOfTheDeep(CreativeTabs.getNextID(), "Blocks Of The Deep");
public static CreativeTabs EssenceFromTheDepth = new TabEssenceFromTheDepth(CreativeTabs.getNextID(), "Essence From The Depth");
//Declaring Init
@Instance("EssenceFromTheDepth")
public static EssenceFromTheDepth instance;
@Instance("BlocksOfTheDeep")
public static BlocksOfTheDeep instance1;
@EventHandler
public void load(FMLInitializationEvent event){}
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
}
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
// define blocks
LonsdaleiteBlock = new BlocksOfTheDeep(521,Material.rock).setUnlocalizedName("LonsdaleiteBlock").setHardness(70.0F).setStepSound(Block.soundMetalFootstep).setResistance(5000.0F);GameRegistry.registerBlock(LonsdaleiteBlock, "LonsdaleiteBlock");
;
//define items
Lonsdaleite = new EssenceFromTheDepth(3759).setUnlocalizedName("Lonsdaleite").func_111206_d("thedeepmod:Lonsdaleite");
//BlockHarvestLevel
MinecraftForge.setBlockHarvestLevel(LonsdaleiteBlock, "pickaxe", 5);}
//adding names
@EventHandler
public void load1(FMLInitializationEvent event) {
LanguageRegistry.addName(Lonsdaleite, "Lonsdaleite");
LanguageRegistry.addName(LonsdaleiteBlock, "Lonsdaleite Block");
}
// TODO Auto-generated method stub
// TODO Auto-generated method stub
{
}
}
Blocks:
package DeepModForge;
import java.util.Random;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class BlocksOfTheDeep extends Block
{
public BlocksOfTheDeep(int par1, Material rock)
{
super(par1, Material.rock);
//place in creative tabs
setCreativeTab(DeepModForge.BlocksOfTheDeep);
{
}
}
// TODO Auto-generated constructor stub
//drops when broken with pickaxe
public int idDropped(int par1, Random random, int zero) {
return DeepModForge.LonsdaleiteBlock.blockID;
}
public int quantityDropped(Random random)
{
return DeepModForge.LonsdaleiteBlock.blockID;
}
public void registerIcons(IconRegister iconRegister)
{
blockIcon= iconRegister.registerIcon("thedeepmod:LonsdaleiteBlock");
}
}
Items:
package DeepModForge;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class EssenceFromTheDepth extends Item {
public EssenceFromTheDepth(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(DeepModForge.EssenceFromTheDepth);
}
public void registerIcons(IconRegister iconRegister)
{
itemIcon= iconRegister.registerIcon("thedeepmod:Lonsdaleite");
}
}
Creative Tab 1:
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
public final class TabEssenceFromTheDepth extends CreativeTabs
{
public TabEssenceFromTheDepth(int par1, String par2Str)
{
super(par1, par2Str);
}
//sets the image for the creative tab
@SideOnly(Side.CLIENT)
public int getTabIconItemIndex()
{
//there is a difference between items and blocks. will give an example of both
return DeepModForge.Lonsdaleite.itemID;
}
//sets the title/name for the creative tab
public String getTranslatedTabLabel()
{
return "Essence From The Depth";
}
}
Creative Tab 2:
package DeepModForge;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
public final class TabBlocksOfTheDeep extends CreativeTabs
{
public TabBlocksOfTheDeep(int par1, String par2Str)
{
super(par1, par2Str);
}
//sets the image for the creative tab
@SideOnly(Side.CLIENT)
public int getTabIconItemIndex()
{
//there is a difference between items and blocks. will give an example of both
return DeepModForge.LonsdaleiteBlock.blockID;
}
//sets the title/name for the creative tab
public String getTranslatedTabLabel()
{
return "Blocks Of The Deep";
}
}
---- Minecraft Crash Report ----
// Don't be sad, have a hug! <3
Time: 8/7/13 5:37 PM
Description: Initializing game
java.lang.IllegalArgumentException: Illegal object for naming null
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:113)
at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:121)
at DeepModForge.DeepModForge.load1(DeepModForge.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:313)
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.sendEventToModContainer(LoadController.java:194)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:313)
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:105)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:697)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:232)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:506)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:113)
at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:121)
at DeepModForge.DeepModForge.load1(DeepModForge.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:313)
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.sendEventToModContainer(LoadController.java:194)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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:313)
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:105)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:697)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:232)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:506)
-- Initialization --
Details:
Stacktrace:
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:796)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_03, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 993442544 bytes (947 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 v8.04 FML v6.2.35.804 Minecraft Forge 9.10.0.804 4 mods loaded, 4 mods active
mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
FML{6.2.35.804} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
Forge{9.10.0.804} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
thedeepmod{v1.0} [TheDeepMod] (bin) Unloaded->Constructed->Pre-initialized->Errored
Launched Version: 1.6
LWJGL: 2.9.0
OpenGL: AMD M880G with ATI Mobility Radeon HD 4250 GL version 3.3.10179 Compatibility Profile Context, ATI Technologies Inc.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Pack: Default
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
can SOMEONE get this to work thx
Nothing works
Find out how I generate....coolAlias...world structure generation and rotation tool...
The verison is 1.6.2
AND I am using minecrfat forge 1.6.2
He might as well just post everything :/
DeepModForge:
package DeepModForge; //Package directory
/*
* Basic importing
*/
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.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
/*
* Basic needed forge stuff
*/
@Mod(modid= DeepModForge.modid,name="TheDeepMod",version="v1.0")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class DeepModForge
{
public static final String modid="thedeepmod";
/*
* ToolMaterial
*/
//Telling forge that we are creating these
//items
public static Item Lonsdaleite;
//blocks
public static Block LonsdaleiteBlock;
//Creative Tab
public static CreativeTabs BlocksOfTheDeep = new TabBlocksOfTheDeep(CreativeTabs.getNextID(), "Blocks Of The Deep");
public static CreativeTabs EssenceFromTheDepth = new TabEssenceFromTheDepth(CreativeTabs.getNextID(), "Essence From The Depth");
//Declaring Init
@Instance("EssenceFromTheDepth")
public static EssenceFromTheDepth instance;
@Instance("BlocksOfTheDeep")
public static BlocksOfTheDeep instance1;
@EventHandler
public void load(FMLInitializationEvent event){}
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
}
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
// define blocks
LonsdaleiteBlock = new BlocksOfTheDeep(521,Material.rock).setUnlocalizedName("LonsdaleiteBlock").setHardness(70.0F).setStepSound(Block.soundMetalFootstep).setResistance(5000.0F);GameRegistry.registerBlock(LonsdaleiteBlock, "LonsdaleiteBlock");
;
//define items
Lonsdaleite = new EssenceFromTheDepth(3759).setUnlocalizedName("Lonsdaleite").func_111206_d("thedeepmod:Lonsdaleite");
//BlockHarvestLevel
MinecraftForge.setBlockHarvestLevel(LonsdaleiteBlock, "pickaxe", 5);}
//adding names
@EventHandler
public void load1(FMLInitializationEvent event) {
LanguageRegistry.addName(Lonsdaleite, "Lonsdaleite");
LanguageRegistry.addName(LonsdaleiteBlock, "Lonsdaleite Block");
}
// TODO Auto-generated method stub
// TODO Auto-generated method stub
{
}
}
//crafting
Block:
package DeepModForge;
import java.util.Random;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class BlocksOfTheDeep extends Block
{
public BlocksOfTheDeep(int par1, Material rock)
{
super(par1, Material.rock);
//place in creative tabs
setCreativeTab(DeepModForge.BlocksOfTheDeep);
{
}
}
// TODO Auto-generated constructor stub
//drops when broken with pickaxe
public int idDropped(int par1, Random random, int zero) {
return DeepModForge.LonsdaleiteBlock.blockID;
}
public int quantityDropped(Random random)
{
return DeepModForge.LonsdaleiteBlock.blockID;
}
public void registerIcons(IconRegister iconRegister)
{
blockIcon= iconRegister.registerIcon("thedeepmod:LonsdaleiteBlock");
}
}
ITEM:
package DeepModForge;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class EssenceFromTheDepth extends Item {
public EssenceFromTheDepth(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(DeepModForge.EssenceFromTheDepth);
}
public void registerIcons(IconRegister iconRegister)
{
itemIcon= iconRegister.registerIcon("thedeepmod:Lonsdaleite");
}
}
The Two Creative Tabs I added:
Creative tab 1:
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
public final class TabEssenceFromTheDepth extends CreativeTabs
{
public TabEssenceFromTheDepth(int par1, String par2Str)
{
super(par1, par2Str);
}
//sets the image for the creative tab
@SideOnly(Side.CLIENT)
public int getTabIconItemIndex()
{
//there is a difference between items and blocks. will give an example of both
return DeepModForge.Lonsdaleite.itemID;
}
//sets the title/name for the creative tab
public String getTranslatedTabLabel()
{
return "Essence From The Depth";
}
}
Second Creative Tab:
package DeepModForge;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
public final class TabBlocksOfTheDeep extends CreativeTabs
{
public TabBlocksOfTheDeep(int par1, String par2Str)
{
super(par1, par2Str);
}
//sets the image for the creative tab
@SideOnly(Side.CLIENT)
public int getTabIconItemIndex()
{
//there is a difference between items and blocks. will give an example of both
return DeepModForge.LonsdaleiteBlock.blockID;
}
//sets the title/name for the creative tab
public String getTranslatedTabLabel()
{
return "Blocks Of The Deep";
}
}I don't care if u steal my code if u are that retarded, but this mod is like 2% finish anyways so yeah retardes that like stealing other peoples' code I claim it as their ownAny ways thx alot if u help
No one is going to steal your code, but if you want help you should always post code if applicable. Also another note, learn to use spoiler tags and code tags, it helps us help you much better and faster, instead of trying to read plain txt code like you have basically created...also I notice right off you did not register your block in the mod class....also not necessary to have two instances, only one, will cause more issues down the road.....
Find out how I generate....coolAlias...world structure generation and rotation tool...
I didnt see it, also lose one of your instances because you will get errors later in your coding due to two instances being there, only one is necessary. Also the error in your crash repo implies you are missing the registerBlock, so if you do have it it is in the wrong place...needs to be in the load method.
Find out how I generate....coolAlias...world structure generation and rotation tool...
Exactly why you need to post code in Spoiler/Code tags, it makes everything a lot neater/readable.
package DeepModForge; //Package directory
/*
* Basic importing
*/
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.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
/*
* Basic needed forge stuff
*/
@Mod(modid= DeepModForge.modid,name="TheDeepMod",version="v1.0")
@NetworkMod(clientSideRequired=true,serverSideRequired=false)
public class DeepModForge
{
public static final String modid="thedeepmod";
/*
* ToolMaterial
*/
//Telling forge that we are creating these
//items
public static Item Lonsdaleite;
//blocks
public static Block LonsdaleiteBlock;
//Creative Tab
public static CreativeTabs BlocksOfTheDeep = new TabBlocksOfTheDeep(CreativeTabs.getNextID(), "Blocks Of The Deep");
public static CreativeTabs EssenceFromTheDepth = new TabEssenceFromTheDepth(CreativeTabs.getNextID(), "Essence From The Depth");
//Declaring Init
@Instance("EssenceFromTheDepth")
public static EssenceFromTheDepth instance;
@Instance("BlocksOfTheDeep")
public static BlocksOfTheDeep instance1;
@EventHandler
public void load(FMLInitializationEvent event){}
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
}
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
// define blocks
LonsdaleiteBlock = new BlocksOfTheDeep(521,Material.rock).setUnlocalizedName("LonsdaleiteBlock").setHardness(70.0F).setStepSound(Block.soundMetalFootstep).setResistance(5000.0F);
//Register Block
GameRegistry.registerBlock(LonsdaleiteBlock, "LonsdaleiteBlock");
;
//define items
Lonsdaleite = new EssenceFromTheDepth(3759).setUnlocalizedName("Lonsdaleite").func_111206_d("thedeepmod:Lonsdaleite");
//BlockHarvestLevel
MinecraftForge.setBlockHarvestLevel(LonsdaleiteBlock, "pickaxe", 5);}
//adding names
@EventHandler
public void load1(FMLInitializationEvent event) {
LanguageRegistry.addName(Lonsdaleite, "Lonsdaleite");
LanguageRegistry.addName(LonsdaleiteBlock, "Lonsdaleite Block");
}
// TODO Auto-generated method stub
// TODO Auto-generated method stub
{
}
}
//crafting
Block:
package DeepModForge;
import java.util.Random;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class BlocksOfTheDeep extends Block
{
public BlocksOfTheDeep(int par1, Material rock)
{
super(par1, Material.rock);
//place in creative tabs
setCreativeTab(DeepModForge.BlocksOfTheDeep);
{
}
}
// TODO Auto-generated constructor stub
//drops when broken with pickaxe
public int idDropped(int par1, Random random, int zero) {
return DeepModForge.LonsdaleiteBlock.blockID;
}
public int quantityDropped(Random random)
{
return DeepModForge.LonsdaleiteBlock.blockID;
}
public void registerIcons(IconRegister iconRegister)
{
blockIcon= iconRegister.registerIcon("thedeepmod:LonsdaleiteBlock");
}
}
ITEM:
package DeepModForge;
import net.minecraft.item.Item;
import cpw.mods.fml.relauncher.*;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class EssenceFromTheDepth extends Item {
public EssenceFromTheDepth(int par1) {
super(par1); //Returns super constructor: par1 is ID
setCreativeTab(DeepModForge.EssenceFromTheDepth);
}
public void registerIcons(IconRegister iconRegister)
{
itemIcon= iconRegister.registerIcon("thedeepmod:Lonsdaleite");
}
}
The Two Creative Tabs I added:
Creative tab 1:
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
public final class TabEssenceFromTheDepth extends CreativeTabs
{
public TabEssenceFromTheDepth(int par1, String par2Str)
{
super(par1, par2Str);
}
//sets the image for the creative tab
@SideOnly(Side.CLIENT)
public int getTabIconItemIndex()
{
//there is a difference between items and blocks. will give an example of both
return DeepModForge.Lonsdaleite.itemID;
}
//sets the title/name for the creative tab
public String getTranslatedTabLabel()
{
return "Essence From The Depth";
}
}
Second Creative Tab:
package DeepModForge;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
public final class TabBlocksOfTheDeep extends CreativeTabs
{
public TabBlocksOfTheDeep(int par1, String par2Str)
{
super(par1, par2Str);
}
//sets the image for the creative tab
@SideOnly(Side.CLIENT)
public int getTabIconItemIndex()
{
//there is a difference between items and blocks. will give an example of both
return DeepModForge.LonsdaleiteBlock.blockID;
}
//sets the title/name for the creative tab
public String getTranslatedTabLabel()
{
return "Blocks Of The Deep";
}
}
Hope this separation helps :-)
And how do u make them because <hi> or hi<> doesn't seem to work
Find out how I generate....coolAlias...world structure generation and rotation tool...
Blocks:
Items:
Creative Tab 1:
Creative Tab 2:
This better???
If your mod doesn't have those, that means you never even created a Class in your mod. Ever.
Just put :
[code][spoiler][code]Code in here :)[/code][/spoiler][/CODE]the code tags are capital btw.