Hey Deverion, I followed your tutorial of creating a Block with Metadata. I made some modifications about how to name the Block but I don't think that could affect anything. Now the only thing that I want is to add those to the Creative Tab Block...
But when I start the client it crashes. Can you help me?
So here is my
Crash Report:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Failed to start game
A full error report has been saved to C:\Archivos de programa\Modding\jars\.\crash-reports\crash-2013-02-04_02.37.39-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT a151a698 --------
Full report at:
C:\Archivos de programa\Modding\jars\.\crash-reports\crash-2013-02-04_02.37.39-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 4/02/13 2:37
-- System Details --
Details:
Minecraft Version: 1.4.5
Operating System: Windows XP (x86) version 5.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
Memory: 978914256 bytes (933 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 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.23 FML v4.5.65.500 Minecraft Forge 6.4.2.448 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
Romas_MineNui [Mine-Nui Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: Intel Bear Lake B GL version 1.4.0 - Build 7.15.10.5218, Intel
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
cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodException: bionicle.common.ItemNuiJagaNest.<init>(int)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:246)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:220)
at bionicle.common.Mod_Bionicle.load(Mod_Bionicle.java:235)
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:440)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:651)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:458)
at net.minecraft.client.Minecraft.run(Minecraft.java:746)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodException: bionicle.common.ItemNuiJagaNest.<init>(int)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getConstructor(Unknown Source)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:240)
... 32 more
--- END ERROR REPORT 6f4edc7b ----------
my Block
public class BlockNuiJagaNest extends Block
{
/** The type of tree this block came from. */
public static final String[] NuiJagaNestType = new String[] {"Eggs", "noEggs", "Normal"};
public BlockNuiJagaNest(int par1)
{
super(par1, 4, Material.cloth);
this.setCreativeTab(CreativeTabs.tabBlock);
}
/**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/
public int getBlockTextureFromSideAndMetadata(int par1, int par2)
{
switch (par2)
{
case 0:
return 31;
case 1:
return 33;
default:
return 32;
}
}
/**
* Determines the damage on the item the block drops. Used in cloth and NuiJagaNest.
*/
public int damageDropped(int par1)
{
return par1;
}
@SideOnly(Side.CLIENT)
/**
* returns a list of blocks with the same ID, but different meta (eg: NuiJagaNest returns 4 blocks)
*/
public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
{
par3List.add(new ItemStack(par1, 1, 0));
par3List.add(new ItemStack(par1, 1, 1));
par3List.add(new ItemStack(par1, 1, 2));
}
public String getTextureFile()
{
return "/Textures/Blocks.png";
}
}
my Item
public class ItemNuiJagaNest extends ItemBlock{
public ItemNuiJagaNest(int id, Block block){
super(id);
this.setMaxDamage(0);
setHasSubtypes(true);
}
public int getIconFromDamage(int par1) //Gets the texture
{
return Mod_Bionicle.blockNuiJagaNest.getBlockTextureFromSideAndMetadata(2, par1);
}
public String getItemNameIS(ItemStack is){
String name = "";
switch(is.getItemDamage()){
case 0: {name= "normal";
break;}
case 1: {name= "eggs";
break;}
case 2: name= "noeggs";
}
return getItemName()+"."+name;
}
public int getMetadata(int meta){
return meta;
}
and the piece of my Mod_file we are focusing in:
public static Block blockNuiJagaNest = new BlockNuiJagaNest(181).setHardness(4F).setResistance(0F).setStepSound(Block.soundClothFootstep).setBlockName("NuiJagaNest");
Hey Deverion, I followed your tutorial of creating a Block with Metadata. I made some modifications about how to name the Block but I don't think that could affect anything. Now the only thing that I want is to add those to the Creative Tab Block...
But when I start the client it crashes. Can you help me?
So here is my
Crash Report:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Failed to start game
A full error report has been saved to C:\Archivos de programa\Modding\jars\.\crash-reports\crash-2013-02-04_02.37.39-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT a151a698 --------
Full report at:
C:\Archivos de programa\Modding\jars\.\crash-reports\crash-2013-02-04_02.37.39-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 4/02/13 2:37
-- System Details --
Details:
Minecraft Version: 1.4.5
Operating System: Windows XP (x86) version 5.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
Memory: 978914256 bytes (933 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 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.23 FML v4.5.65.500 Minecraft Forge 6.4.2.448 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
Romas_MineNui [Mine-Nui Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: Intel Bear Lake B GL version 1.4.0 - Build 7.15.10.5218, Intel
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
cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodException: bionicle.common.ItemNuiJagaNest.<init>(int)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:246)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:220)
at bionicle.common.Mod_Bionicle.load(Mod_Bionicle.java:235)
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:440)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:651)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:458)
at net.minecraft.client.Minecraft.run(Minecraft.java:746)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodException: bionicle.common.ItemNuiJagaNest.<init>(int)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getConstructor(Unknown Source)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:240)
... 32 more
--- END ERROR REPORT 6f4edc7b ----------
my Block
public class BlockNuiJagaNest extends Block
{
/** The type of tree this block came from. */
public static final String[] NuiJagaNestType = new String[] {"Eggs", "noEggs", "Normal"};
public BlockNuiJagaNest(int par1)
{
super(par1, 4, Material.cloth);
this.setCreativeTab(CreativeTabs.tabBlock);
}
/**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/
public int getBlockTextureFromSideAndMetadata(int par1, int par2)
{
switch (par2)
{
case 0:
return 31;
case 1:
return 33;
default:
return 32;
}
}
/**
* Determines the damage on the item the block drops. Used in cloth and NuiJagaNest.
*/
public int damageDropped(int par1)
{
return par1;
}
@SideOnly(Side.CLIENT)
/**
* returns a list of blocks with the same ID, but different meta (eg: NuiJagaNest returns 4 blocks)
*/
public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List)
{
par3List.add(new ItemStack(par1, 1, 0));
par3List.add(new ItemStack(par1, 1, 1));
par3List.add(new ItemStack(par1, 1, 2));
}
public String getTextureFile()
{
return "/Textures/Blocks.png";
}
}
my Item
public class ItemNuiJagaNest extends ItemBlock{
public ItemNuiJagaNest(int id, Block block){
super(id);
this.setMaxDamage(0);
setHasSubtypes(true);
}
public int getIconFromDamage(int par1) //Gets the texture
{
return Mod_Bionicle.blockNuiJagaNest.getBlockTextureFromSideAndMetadata(2, par1);
}
public String getItemNameIS(ItemStack is){
String name = "";
switch(is.getItemDamage()){
case 0: {name= "normal";
break;}
case 1: {name= "eggs";
break;}
case 2: name= "noeggs";
}
return getItemName()+"."+name;
}
public int getMetadata(int meta){
return meta;
}
and the piece of my Mod_file we are focusing in:
public static Block blockNuiJagaNest = new BlockNuiJagaNest(181).setHardness(4F).setResistance(0F).setStepSound(Block.soundClothFootstep).setBlockName("NuiJagaNest");
WOW! It works now!! THANK YOU SO MUCH!!!
I also have another little question, can I use a unique custom ItemBlock class to register all the blocks which have metadata?
I mean, if now I put into my ItemNuiJagaNest the names and textures from another block class would it work?
For 2: add this to the end of your CommonProxy or whatever class you use for registry:
public void addDungeonLoot(ItemStack is, int minStack, int maxStack, int rarity){
WeightedRandomChestContent chest = new WeightedRandomChestContent(is.copy(),minStack,maxStack,rarity);
ChestGenHooks.getInfo(DUNGEON_CHEST).addItem(chest);
}
This will gen the item in regular dungeons, if you want to see the names of the other chests look in the ChestGenHooks class. You can also add a String parameter to the method to specify the dungeon type. All you need now is to call it somewhere
For 1, I think you can use addAllRelevantItems...
Thanks for the direction, that's what I was looking for, just couldn't find the name.
Already was working with an arraylist of unstackable items, so I ended up with something like: (Edited a bit so I don't give away what I'm working on
private void addDungeonLoot(ArrayList<ItemStack> items, int rarity) {
for(int i = 0; i < items.size(); i++) {
WeightedRandomChestContent loot = new WeightedRandomChestContent(items.get(i), 1, 1, rarity);
ChestGenHooks.getInfo(ChestGenHooks.BONUS_CHEST).addItem(loot);
....
ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH).addItem(loot);
}
}
Bonus chest makes it easy to test. Now to figure out a good rarity.
For the first question I took a break after asking here, came back to play about with it for a few minutes, and ended up figuring it out with a loop in my tab class.
WOW! It works now!! THANK YOU SO MUCH!!!
I also have another little question, can I use a unique custom ItemBlock class to register all the blocks which have metadata?
I mean, if now I put into my ItemNuiJagaNest the names and textures from another block class would it work?
Sorry, it won't it uses a specific block ID for the item block
Thanks for the direction, that's what I was looking for, just couldn't find the name.
Already was working with an arraylist of unstackable items, so I ended up with something like: (Edited a bit so I don't give away what I'm working on
private void addDungeonLoot(ArrayList<ItemStack> items, int rarity) {
for(int i = 0; i < items.size(); i++) {
WeightedRandomChestContent loot = new WeightedRandomChestContent(items.get(i), 1, 1, rarity);
ChestGenHooks.getInfo(ChestGenHooks.BONUS_CHEST).addItem(loot);
....
ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH).addItem(loot);
}
}
Bonus chest makes it easy to test. Now to figure out a good rarity.
For the first question I took a break after asking here, came back to play about with it for a few minutes, and ended up figuring it out with a loop in my tab class.
I posted about that a page or 3 back, take a look. TL;DR: I tried, got submarines that were alive and jumped 15000 blocks high
---------------------
In my time away from doing the tutorials, I've been working on my own mod, and I've properly figured out (mostly) Tile entities, GUI and basic multiblock structures! So you can expect to see these soon once I get back to work on the tutorials (and get back my src...)
I have found this: http://www.minecraft...-mobs-and-more/
This is a very old 1.7.3 tutorial, but I think it's still possible to find something useful in it... I really hope that you could find a way to update it, because I want to make a vehicle mod myself, but need something to begin with.
I took a look, and it seems fairly straightforward. But seeing as it was 1.7.3, and only using modloader... It might have changed a lot... But I will look into it at some point In the mean time, if you need a vehicle for your own mod, you can try looking into the minecart/boat code.
---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!
Time: 2/4/13 3:13 PM
Description: Failed to start game
java.lang.NullPointerException
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:93)
at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:103)
at bhavik.gypsycraft.common.core.CommonProxy.addNames(CommonProxy.java:33)
at bhavik.gypsycraft.common.GypsyCraft.InitCobaltCraft(GypsyCraft.java:43)
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:485)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.7
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_13, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 759693312 bytes (724 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 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
GypsyCraft [GypsyCraft] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
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
Rollback Post to RevisionRollBack
"The signature should be a place of thought and power, with images and personalities, not an advertising banner"
Now why does the above statement contradict itself when put into a signature? PM me if you find out.
So, I followed your tutorial on setting up Forge and MCP, and ran Install, but I'm getting a Client Recompile Failed error. I am using Java SE Development Kit 7u13 x64, MCP 726a, and minecraftforge-src-1.4.7-6.6.0.497.
I suspect it's due to my SDK, but I'm not 100% sure. Even if I was sure, I wouldn't have any idea which version to downgrade to. Anyone have any advice?
---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!
Time: 2/4/13 3:13 PM
Description: Failed to start game
java.lang.NullPointerException
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:93)
at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:103)
at bhavik.gypsycraft.common.core.CommonProxy.addNames(CommonProxy.java:33)
at bhavik.gypsycraft.common.GypsyCraft.InitCobaltCraft(GypsyCraft.java:43)
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:485)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.7
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_13, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 759693312 bytes (724 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 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
GypsyCraft [GypsyCraft] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
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
So, I followed your tutorial on setting up Forge and MCP, and ran Install, but I'm getting a Client Recompile Failed error. I am using Java SE Development Kit 7u13 x64, MCP 726a, and minecraftforge-src-1.4.7-6.6.0.497.
I suspect it's due to my SDK, but I'm not 100% sure. Even if I was sure, I wouldn't have any idea which version to downgrade to. Anyone have any advice?
== Recompiling client ==
> Cleaning bin
> Recompiling
'"C:\Program Files (x86)\Java\jdk1.6.0_23\bin\javac" -encoding UTF-8 -Xlint:-opt
ions -deprecation -g ...' failed : 1
== ERRORS FOUND ==
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:8: warn
ing: [deprecation] cpw.mods.fml.common.IDispenseHandler in cpw.mods.fml.common h
as been deprecated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:9: warn
ing: [deprecation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common
has been deprecated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderDispenseHelper.java:11: war
ning: [deprecation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common
has been deprecated
public class ModLoaderDispenseHelper implements IDispenserHandler
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:39: warning: [d
eprecation] cpw.mods.fml.common.IDispenseHandler in cpw.mods.fml.common has been
deprecated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:40: warning: [d
eprecation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common has bee
n deprecated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderHelper.java:194: warning: [
deprecation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common has be
en deprecated
public static IDispenserHandler buildDispenseHelper(BaseModProxy mod)
^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:39: warning: [depre
cation] cpw.mods.fml.common.IDispenseHandler in cpw.mods.fml.common has been dep
recated
import cpw.mods.fml.common.IDispenseHandler;
^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:40: warning: [depre
cation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common has been de
precated
import cpw.mods.fml.common.IDispenserHandler;
^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:101: warning: [depr
ecation] cpw.mods.fml.common.IDispenserHandler in cpw.mods.fml.common has been d
eprecated
public static void registerDispenserHandler(IDispenserHandler handler)
^
src\minecraft\cpw\mods\fml\common\registry\GameRegistry.java:110: warning: [depr
ecation] cpw.mods.fml.common.IDispenseHandler in cpw.mods.fml.common has been de
precated
public static void registerDispenserHandler(final IDispenseHandler handler)
^
src\minecraft\cpw\mods\fml\common\modloader\ModLoaderModContainer.java:528: warn
ing: [deprecation] registerDispenserHandler(cpw.mods.fml.common.IDispenserHandle
r) in cpw.mods.fml.common.registry.GameRegistry has been deprecated
GameRegistry.registerDispenserHandler(ModLoaderHelper.buildDispenseH
elper(mod));
^
src\minecraft\cpw\mods\fml\common\ObfuscationReflectionHelper.java:37: type para
meters of <T>T cannot be determined; no unique maximal instance exists for type
variable T with upper bounds T,java.lang.Object
return ReflectionHelper.getPrivateValue(classToAccess, instance, fie
ldIndex);
^
src\minecraft\cpw\mods\fml\common\ObfuscationReflectionHelper.java:51: type para
meters of <T>T cannot be determined; no unique maximal instance exists for type
variable T with upper bounds T,java.lang.Object
return ReflectionHelper.getPrivateValue(classToAccess, instance, fie
ldNames);
^
src\minecraft\net\minecraft\src\ModLoader.java:490: type parameters of <T>T cann
ot be determined; no unique maximal instance exists for type variable T with upp
er bounds T,java.lang.Object
return ObfuscationReflectionHelper.getPrivateValue(instanceclass, instan
ce, fieldindex);
^
src\minecraft\net\minecraft\src\ModLoader.java:504: type parameters of <T>T cann
ot be determined; no unique maximal instance exists for type variable T with upp
er bounds T,java.lang.Object
return ObfuscationReflectionHelper.getPrivateValue(instanceclass, instan
ce, field);
^
src\minecraft\net\minecraft\src\ModLoader.java:638: warning: [deprecation] regis
terBlock(net.minecraft.block.Block) in cpw.mods.fml.common.registry.GameRegistry
has been deprecated
GameRegistry.registerBlock(block);
^
src\minecraft\net\minecraft\src\ModLoader.java:649: warning: [deprecation] regis
terBlock(net.minecraft.block.Block,java.lang.Class<? extends net.minecraft.item.
ItemBlock>) in cpw.mods.fml.common.registry.GameRegistry has been deprecated
GameRegistry.registerBlock(block, itemclass);
^
4 errors
13 warnings
==================
Client recompile failed, correct source then rerun updatemd5
=============================== Minecraft Forge Setup Finished =================
================
Nevermind, I got it working! Instead of directly following the tutorial, I followed the basic block tutorial and got the block working, then added the world gen stuff from ores. It works! My ore spawns.
"The signature should be a place of thought and power, with images and personalities, not an advertising banner"
Now why does the above statement contradict itself when put into a signature? PM me if you find out.
When you say call it in your mod class, how would I do that?
For example, for the basic item tutorial, when it says call in your mod class
proxy.addNames();
go to your main mod class (Your mod name).class and put the code just before the two closing french brackets.
Essentially, this calls addNames from class CommonProxy. Same applies for registerBlocks and others.
Also Deverion, a tutorial for a config file would be nice
Rollback Post to RevisionRollBack
"The signature should be a place of thought and power, with images and personalities, not an advertising banner"
Now why does the above statement contradict itself when put into a signature? PM me if you find out.
But when I start the client it crashes. Can you help me?
So here is my
Crash Report:
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem; Failed to start game
A full error report has been saved to C:\Archivos de programa\Modding\jars\.\crash-reports\crash-2013-02-04_02.37.39-client.txt - Please include a copy of that file (Not this screen!) if you report this crash to anyone; without it, they will not be able to help fix the crash
--- BEGIN ERROR REPORT a151a698 --------
Full report at:
C:\Archivos de programa\Modding\jars\.\crash-reports\crash-2013-02-04_02.37.39-client.txt
Please show that file to Mojang, NOT just this screen!
Generated 4/02/13 2:37
-- System Details --
Details:
Minecraft Version: 1.4.5
Operating System: Windows XP (x86) version 5.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot™ Client VM (mixed mode), Oracle Corporation
Memory: 978914256 bytes (933 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 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.23 FML v4.5.65.500 Minecraft Forge 6.4.2.448 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
Romas_MineNui [Mine-Nui Mod] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: Intel Bear Lake B GL version 1.4.0 - Build 7.15.10.5218, Intel
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
cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodException: bionicle.common.ItemNuiJagaNest.<init>(int)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:246)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:220)
at bionicle.common.Mod_Bionicle.load(Mod_Bionicle.java:235)
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:440)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:651)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:458)
at net.minecraft.client.Minecraft.run(Minecraft.java:746)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodException: bionicle.common.ItemNuiJagaNest.<init>(int)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getConstructor(Unknown Source)
at cpw.mods.fml.common.registry.GameRegistry.registerBlock(GameRegistry.java:240)
... 32 more
--- END ERROR REPORT 6f4edc7b ----------
my Block
my Item
and the piece of my Mod_file we are focusing in:
Thanks, nice tutorials also.
Don't put the block in init, that has to be outside of a method. You need to call proxy.register blocks somewhere
When you give the names, you're doing metadata 1, 2 and 3. Change that to 0, 1 and 2.
Also, take the block parameter out of your itemblock's constructor
If that doesn't work, the error is a NoSuchMethodException, so you can just look through it in eclipse for errors.
I also have another little question, can I use a unique custom ItemBlock class to register all the blocks which have metadata?
I mean, if now I put into my ItemNuiJagaNest the names and textures from another block class would it work?
Thanks for the direction, that's what I was looking for, just couldn't find the name.
Already was working with an arraylist of unstackable items, so I ended up with something like: (Edited a bit so I don't give away what I'm working on
Bonus chest makes it easy to test. Now to figure out a good rarity.
For the first question I took a break after asking here, came back to play about with it for a few minutes, and ended up figuring it out with a loop in my tab class.
I do stuff.
Sorry, it won't it uses a specific block ID for the item block
Cool
I posted about that a page or 3 back, take a look. TL;DR: I tried, got submarines that were alive and jumped 15000 blocks high
---------------------
In my time away from doing the tutorials, I've been working on my own mod, and I've properly figured out (mostly) Tile entities, GUI and basic multiblock structures! So you can expect to see these soon once I get back to work on the tutorials (and get back my src...)
I took a look, and it seems fairly straightforward. But seeing as it was 1.7.3, and only using modloader... It might have changed a lot... But I will look into it at some point In the mean time, if you need a vehicle for your own mod, you can try looking into the minecart/boat code.
Hmm, is it forge?
You mean ?
It still crashes, with an NPE, at language registry for the ore.
Source: http://github.com/myoblastic/GypsyCraft
Crash Report:
// On the bright side, I bought you a teddy bear!
Time: 2/4/13 3:13 PM
Description: Failed to start game
java.lang.NullPointerException
at cpw.mods.fml.common.registry.LanguageRegistry.addNameForObject(LanguageRegistry.java:93)
at cpw.mods.fml.common.registry.LanguageRegistry.addName(LanguageRegistry.java:103)
at bhavik.gypsycraft.common.core.CommonProxy.addNames(CommonProxy.java:33)
at bhavik.gypsycraft.common.GypsyCraft.InitCobaltCraft(GypsyCraft.java:43)
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:485)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)
at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:456)
at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
at net.minecraft.client.Minecraft.run(Minecraft.java:744)
at java.lang.Thread.run(Unknown Source)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.7
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.7.0_13, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 759693312 bytes (724 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 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.26 FML v4.7.4.520 Minecraft Forge 6.6.0.497 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
GypsyCraft [GypsyCraft] (bin) Unloaded->Constructed->Pre-initialized->Errored
LWJGL: 2.4.2
OpenGL: GeForce GTS 450/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation
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
Now why does the above statement contradict itself when put into a signature? PM me if you find out.
I suspect it's due to my SDK, but I'm not 100% sure. Even if I was sure, I wouldn't have any idea which version to downgrade to. Anyone have any advice?
Call registerBlocks() before addNames()
Try upgrading your forge to build 516
I tried it, still getting the same error.
K, what exactly does it say in the console?
Starting from the error:
What MCP version are you running...
The latest version, mcp726a.
Hmm, in that case I'm not sure what's going wrong... You might have to go to http://esper.net/ and visit the #MinecraftForge channel...
Please use spoilers.
Nevermind, I got it working! Instead of directly following the tutorial, I followed the basic block tutorial and got the block working, then added the world gen stuff from ores. It works! My ore spawns.
Source: Github
Now why does the above statement contradict itself when put into a signature? PM me if you find out.
For example, for the basic item tutorial, when it says call in your mod class go to your main mod class (Your mod name).class and put the code just before the two closing french brackets.
Essentially, this calls addNames from class CommonProxy. Same applies for registerBlocks and others.
Also Deverion, a tutorial for a config file would be nice
Now why does the above statement contradict itself when put into a signature? PM me if you find out.
Indeed, one of the next ones