I've been working on a little update to a mod I created and am having some trouble. My mod previously had only "items" and updated to MC 1.2.3 just fine. But, now I'm trying to add naturally generated blocks and am having an issue.
When using MCP 6.0 (I have ModLoader 1.2.3 in the jar), I get no errors on recompilation with my mod. When I run the test client in MCP, I get the following error message:
Minecraft has stopped running because it encountered a problem.
--- BEGIN ERROR REPORT b1ba1330 --------
Generated 3/4/12 9:03 AM
Minecraft: Minecraft 1.2.3
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_31, Sun Microsystems Inc.
VM: Java HotSpot™ 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
OpenGL: Intel® HD Graphics Family version 3.0.0 - Build 184.108.40.2063, Intel
--- END ERROR REPORT a073d87a ----------
Any help in what might be causing this and how I can fix it would be greatly appreciated.
i am having the same problem only im an idiot when it comes to coding so how do i fix it back to 255??
If you look at your code, you assigned a number to your block when you created it. For example:
PotatoBlock = (new Block(505, ModLoader.addOverride("/terrain.png", "/gfx/potatoBlock.png"))).setHardness(0.5F).setStepSound(Block.soundClothFootstep).setBlockName("potatoBlock");
Where I have the number 505 is the "data value" number I assigned to my block. Blocks can't go above 255. It doesn't have to be 255 exactly. It can be anywhere from 124(ish, depending on new things that have been added) to 255.