== MCP 5.6 (data: 5.6, client: 1.1, server: 1.1) ==
> Recompiling client...
'"C:\Program Files\Java\jdk1.6.0_31\bin\javac.exe" -g -source 1.6 -target 1.6 -c
lasspath "lib;lib\*;jars\bin\minecraft.jar;jars\bin\jinput.jar;jars\bin\lwjgl.ja
r;jars\bin\lwjgl_util.jar" -sourcepath src\minecraft -d bin\minecraft src\minecr
aft\net\minecraft\client\*.java src\minecraft\net\minecraft\isom\*.java src\mine
craft\net\minecraft\src\*.java conf\patches\ga.java conf\patches\Start.java' fai
led : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_cupcake.java:5: cannot find symbol
symbol : class item
location: class net.minecraft.src.mod_cupcake
public static final item cupcake = new itemfood (2000, 4, 1F, true).
setItemName("cupcake");
^
src\minecraft\net\minecraft\src\mod_cupcake.java:5: cannot find symbol
symbol : class itemfood
location: class net.minecraft.src.mod_cupcake
public static final item cupcake = new itemfood (2000, 4, 1F, true).
setItemName("cupcake");
^
src\minecraft\net\minecraft\src\mod_cupcake.java:9: cannot find symbol
symbol : variable Modloader
location: class net.minecraft.src.mod_cupcake
cupcake.iconIndex = Modloader.addOverride("/gui/
items.png", "/bin/Pcupcake.png");
^
src\minecraft\net\minecraft\src\mod_cupcake.java:10: cannot find symbol
symbol : variable Modloader
location: class net.minecraft.src.mod_cupcake
Modloader.AddName(cupcake, "Plain Cupcak
e");
^
src\minecraft\net\minecraft\src\mod_cupcake.java:11: cannot find symbol
symbol : variable Modloader
location: class net.minecraft.src.mod_cupcake
Modloader.AddRecipe(new ItemStack(cupcak
e, 1), new Object [] {"*", Character.valueOf('*'), Block.dirt});
^
5 errors
==================
FATAL ERROR
Traceback (most recent call last):
File "runtime\recompile.py", line 31, in recompile
commands.recompile(CLIENT)
File "C:\Users\bobby\Desktop\Modding files\Mcp\Cupcake v.1.0 (for 1.1)\runtime
\commands.py", line 736, in recompile
self.runcmd(forkcmd)
File "C:\Users\bobby\Desktop\Modding files\Mcp\Cupcake v.1.0 (for 1.1)\runtime
\commands.py", line 779, in runcmd
raise CalledProcessError(returncode, forkcmd, output)
CalledProcessError: Command '"C:\Program Files\Java\jdk1.6.0_31\bin\javac.exe" -
g -source 1.6 -target 1.6 -classpath "lib;lib\*;jars\bin\minecraft.jar;jars\bin\
jinput.jar;jars\bin\lwjgl.jar;jars\bin\lwjgl_util.jar" -sourcepath src\minecraft
-d bin\minecraft src\minecraft\net\minecraft\client\*.java src\minecraft\net\mi
necraft\isom\*.java src\minecraft\net\minecraft\src\*.java conf\patches\ga.java
conf\patches\Start.java' returned non-zero exit status 1
Press any key to continue . . .
I have even posted a topic on this and diddn't get much help ):
(Hey techguy your from QLD Same rock on dude. :biggrin.gif:)
Make sure you're using the correct capitals.
item
should be
Item
itemfood
should be
ItemFood
Modloader
should be
ModLoader
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Hey, I'm sorry to bother you again, But when are the new tutorials coming?
Within 2-3 days.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
What is the difference when creating mods for version 1.1 and 1.8?
The load() method is the main one. But there are others like world.entityJoinedWorld is now world.spawnEntityInWorld.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
The Meaning of Life, the Universe, and Everything.
Join Date:
10/27/2011
Posts:
41
Member Details
I was coding and got this problem
Mods loaded: 1
ModLoader 1.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected]
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 9c4f49b2 --------
Generated 2/24/12 5:30 PM
Minecraft: Minecraft 1.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics Family version 3.0.0 - Build 8.15.10.2353, Intel
java.lang.NullPointerException
at net.minecraft.src.ItemStack.<init>(ItemStack.java:35)
at net.minecraft.src.mod_LOTR.<init>(mod_LOTR.java:11)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:234)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1217)
at net.minecraft.src.ModLoader.init(ModLoader.java:708)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:150)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:78)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:9)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:316)
at net.minecraft.client.Minecraft.run(Minecraft.java:620)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 4c787f6 ----------
if you need to see the code it is right here
------------------------------------------------------------------------------------------
package net.minecraft.src;
public class mod_LOTR extends BaseMod
{
public static final Item plastic = new plastic(5001).setItemName("plastic");
private static final int ItemStack = 0;
I was coding and got this problem
Mods loaded: 1
ModLoader 1.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected]
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 9c4f49b2 --------
Generated 2/24/12 5:30 PM
Minecraft: Minecraft 1.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel® HD Graphics Family version 3.0.0 - Build 8.15.10.2353, Intel
java.lang.NullPointerException
at net.minecraft.src.ItemStack.<init>(ItemStack.java:35)
at net.minecraft.src.mod_LOTR.<init>(mod_LOTR.java:11)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:234)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1217)
at net.minecraft.src.ModLoader.init(ModLoader.java:708)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:150)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:78)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:9)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:316)
at net.minecraft.client.Minecraft.run(Minecraft.java:620)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 4c787f6 ----------
if you need to see the code it is right here
------------------------------------------------------------------------------------------
package net.minecraft.src;
public class mod_LOTR extends BaseMod
{
public static final Item plastic = new plastic(5001).setItemName("plastic");
private static final int ItemStack = 0;
public class plastic extends Item
{
public plastic(int i)
{
super(i);
maxStackSize = 64;
}
}
__________________________________________________________________________________________
package net.minecraft.src;
public class discbase extends Item
{
public discbase(int i)
{
super(i);
maxStackSize = 64;
}
}
______________________________________________________________ please help!!!!!
What are you try to do with that ItemStack int?
Your plastic iconIndex, AddName and AddRecipe codes all need to go in the load() method. You can't just have squiggly brackets and not define the method, and you can't have an identical method name in the same class twice. Please use code tags like I said in the OP.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
What are you try to do with that ItemStack int?
Your plastic iconIndex, AddName and AddRecipe codes all need to go in the load() method. You can't just have squiggly brackets and not define the method, and you can't have an identical method name in the same class twice. Please use code tags like I said in the OP.
thanks i tried that but i think i am not understanding because after that I got Mods loaded: 2
ModLoader 1.1
mod_LOTR 1.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected]
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT aad6e623 --------
Generated 2/24/12 8:20 PM
Minecraft: Minecraft 1.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics Family version 3.0.0 - Build 8.15.10.2353, Intel
java.lang.NullPointerException
at net.minecraft.src.ItemStack.<init>(ItemStack.java:35)
at net.minecraft.src.mod_LOTR.load(mod_LOTR.java:17)
at net.minecraft.src.ModLoader.init(ModLoader.java:714)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:150)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:78)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:9)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:316)
at net.minecraft.client.Minecraft.run(Minecraft.java:620)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 84f454b ----------
and the code is
--------------------------------------------------------------
package net.minecraft.src;
public class mod_LOTR extends BaseMod
{
public static final Item discbase = new discbase(5000).setItemName("disc base");
public static final Item plastic = new plastic(5001).setItemName("plastic");
discbase.iconIndex = ModLoader.addOverride("/gui/items.png", "/LOTR/discbase.png");
ModLoader.AddName(discbase, "disc base");
ModLoader.AddRecipe(new ItemStack(discbase, 1), new Object []
{" R ",
" R ",
" R ", Character.valueOf('R'), Item.plastic});
}
private int ItemStack(ItemStack itemStack, Object[] objects) {
// TODO Auto-generated method stub
return 0;
}
public String getVersion()
{
return "1.1";
}
}
--------------------------------------------------------------
package net.minecraft.src;
public class plastic extends Item
{
public plastic(int i)
{
super(i);
maxStackSize = 64;
}
}
-----------------------------------------------------------------
package net.minecraft.src;
public class discbase extends Item
{
public discbase(int i)
{
super(i);
maxStackSize = 64;
}
}
---------------------------------------------------------------
I'm kinda immature about this stuff
package net.minecraft.src;
public class mod_LOTR extends BaseMod
{
public static final Item discbase = new discbase(5000).setItemName("disc base");
public static final Item plastic = new plastic(5001).setItemName("plastic");
public void load()
{
plastic.iconIndex = ModLoader.addOverride("/gui/items.png", "/LOTR/plastic.png");
ModLoader.AddName(plastic, "plastic");
ModLoader.AddSmelting(Block.stone.blockID, new ItemStack(plastic, 1));
discbase.iconIndex = ModLoader.addOverride("/gui/items.png", "/LOTR/discbase.png");
ModLoader.AddName(discbase, "disc base");
ModLoader.AddRecipe(new ItemStack(discbase, 1), new Object []
{" R ",
" R ",
" R ", Character.valueOf('R'), Item.plastic});
}
public String getVersion()
{
return "1.1";
}
}
It's because you had that ItemStack int in the file. You DON'T need it. The above is the correct code. You had the smelting recipe wrong. You needed to put .blockID after Block.stone, and you had Item. before plastic. Your item called "plastic" isn't in Item.java, so you don't use that.
The code above still isn't perfect, but it should run fine.
Please use tags around your code. It makes it a lot easier to read, and therefore easier to help YOU.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Mods loaded: 2
ModLoader 1.1
mod_cupcake 1.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected]
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT feff03ee --------
Generated 25/02/12 16:40
Minecraft: Minecraft 1.1
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_31, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: AMD M880G with ATI Mobility Radeon HD 4250 version 3.3.10179 Compatibility Profile Context, ATI Technologies Inc.
java.lang.RuntimeException: java.lang.Exception: Image not found: /mcp/bin/cupcake.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1356)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1069)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:18)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
at net.minecraft.client.Minecraft.run(Minecraft.java:634)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Exception: Image not found: /mcp/bin/cupcake.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1007)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1348)
... 5 more
--- END ERROR REPORT afa4a981 ----------
Edit:Sorry This was supposed to be jackd44 posting this is his little brothers account.
Mods loaded: 2
ModLoader 1.1
mod_cupcake 1.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected]
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT feff03ee --------
Generated 25/02/12 16:40
Minecraft: Minecraft 1.1
OS: Windows 7 (amd64) version 6.1
Java: 1.6.0_31, Sun Microsystems Inc.
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc.
LWJGL: 2.4.2
OpenGL: AMD M880G with ATI Mobility Radeon HD 4250 version 3.3.10179 Compatibility Profile Context, ATI Technologies Inc.
java.lang.RuntimeException: java.lang.Exception: Image not found: /mcp/bin/cupcake.png
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1356)
at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1069)
at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:18)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737)
at net.minecraft.client.Minecraft.run(Minecraft.java:634)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.Exception: Image not found: /mcp/bin/cupcake.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1007)
at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1348)
... 5 more
--- END ERROR REPORT afa4a981 ----------
Edit:Sorry This was supposed to be jackd44 posting this is his little brothers account.
You dont write mcp/bin/minecraft/filename.png. You just put your pictures in there and write /filename.png. It automatically looks in mcp/bin/minecraft
Stewiecraft has a good bow tutorial here. I'm going to make one, just not yet.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
The Meaning of Life, the Universe, and Everything.
Join Date:
10/27/2011
Posts:
41
Member Details
im coding an item but i dont know how to put cactus green the code is here:
"RRR",
"RIR",
"CCC", Character.valueOf('R'), Item.redstone, Character.valueOf('I'), Item.ingotIron, Character.valueOf('C'), Item.dyePowder
});
______________________________________________________________________________________________Thats only a part of it please help!!
Hey I am lost with this one error in my file, I would appreciate any help, as I am kinda being pushed to update this mode and add all these new things to it. Code Lyoko Mod.
Anyway here is my error:
== MCP 5.6 (data: 5.6, client: 1.1, server: 1.1) ==
> Recompiling client...
'"C:\Program Files (x86)\Java\jdk1.7.0\bin\javac.exe" -g -source 1.6 -target 1.6
-classpath "lib;lib\*;jars\bin\minecraft.jar;jars\bin\jinput.jar;jars\bin\lwjgl
.jar;jars\bin\lwjgl_util.jar" -sourcepath src\minecraft -d bin\minecraft src\min
ecraft\net\minecraft\client\*.java src\minecraft\net\minecraft\isom\*.java src\m
inecraft\net\minecraft\src\*.java conf\patches\ga.java conf\patches\Start.java'
failed : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Tower.java:5: error: <identifier> expected
public static final Tower = new BlockTower(170, 0).setBlockTower("Tower").setHar
dness(3F).setResistance(4F).setLightValue(1F);
^
1 error
1 warning
==================
Press any key to continue . . .
And here is my code:
package net.minecraft.src;
public class mod_Tower extends BaseMod
{
public static final Block Tower = new BlockTower(170, 0).setBlockTower("Tower").setHardness(3F).setResistance(4F).setLightValue(1F);
public void load()
{
Tower.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/LyokoImages/towerblock.png");
ModLoader.RegisterBlock(Tower);
ModLoader.AddName(Tower, "Tower");
ModLoader.AddRecipe(new ItemStack(itemtoreceive, quantity), new Object [] {"###", "@@@", "%%%", Character.valueOf('#'), Item.redstone, Character.valueOf('@'), Item.coal, Character.valueOf('%'), Item.lapislazuli});
}
public String getVersion()
{
return "1.1";
}
}
im coding an item but i dont know how to put cactus green the code is here:
"RRR",
"RIR",
"CCC", Character.valueOf('R'), Item.redstone, Character.valueOf('I'), Item.ingotIron, Character.valueOf('C'), Item.dyePowder
});
______________________________________________________________________________________________Thats only a part of it please help!!
Hey I am lost with this one error in my file, I would appreciate any help, as I am kinda being pushed to update this mode and add all these new things to it. Code Lyoko Mod.
Anyway here is my error:
== MCP 5.6 (data: 5.6, client: 1.1, server: 1.1) ==
> Recompiling client...
'"C:\Program Files (x86)\Java\jdk1.7.0\bin\javac.exe" -g -source 1.6 -target 1.6
-classpath "lib;lib\*;jars\bin\minecraft.jar;jars\bin\jinput.jar;jars\bin\lwjgl
.jar;jars\bin\lwjgl_util.jar" -sourcepath src\minecraft -d bin\minecraft src\min
ecraft\net\minecraft\client\*.java src\minecraft\net\minecraft\isom\*.java src\m
inecraft\net\minecraft\src\*.java conf\patches\ga.java conf\patches\Start.java'
failed : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Tower.java:5: error: <identifier> expected
public static final Tower = new BlockTower(170, 0).setBlockTower("Tower").setHar
dness(3F).setResistance(4F).setLightValue(1F);
^
1 error
1 warning
==================
Press any key to continue . . .
And here is my code:
package net.minecraft.src;
public class mod_Tower extends BaseMod
{
public static final Block Tower = new BlockTower(170, 0).setBlockTower("Tower").setHardness(3F).setResistance(4F).setLightValue(1F);
public void load()
{
Tower.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/LyokoImages/towerblock.png");
ModLoader.RegisterBlock(Tower);
ModLoader.AddName(Tower, "Tower");
ModLoader.AddRecipe(new ItemStack(itemtoreceive, quantity), new Object [] {"###", "@@@", "%%%", Character.valueOf('#'), Item.redstone, Character.valueOf('@'), Item.coal, Character.valueOf('%'), Item.lapislazuli});
}
public String getVersion()
{
return "1.1";
}
}
Once again, thanks for any help from anyone!
I think that this line:
.setBlockTower("Tower")
Should be:
setBlockName("Tower")
As that line is for setting the blocks name (although it gets overrode by ModLoader anyways)
im coding an item but i dont know how to put cactus green the code is here:
"RRR",
"RIR",
"CCC", Character.valueOf('R'), Item.redstone, Character.valueOf('I'), Item.ingotIron, Character.valueOf('C'), Item.dyePowder
});
______________________________________________________________________________________________Thats only a part of it please help!!
Have a look at using the dyes in recipes under the 'Crafting & Smelting Recipes' spoiler.
Hey I am lost with this one error in my file, I would appreciate any help, as I am kinda being pushed to update this mode and add all these new things to it. Code Lyoko Mod.
Anyway here is my error:
== MCP 5.6 (data: 5.6, client: 1.1, server: 1.1) ==
> Recompiling client...
'"C:\Program Files (x86)\Java\jdk1.7.0\bin\javac.exe" -g -source 1.6 -target 1.6
-classpath "lib;lib\*;jars\bin\minecraft.jar;jars\bin\jinput.jar;jars\bin\lwjgl
.jar;jars\bin\lwjgl_util.jar" -sourcepath src\minecraft -d bin\minecraft src\min
ecraft\net\minecraft\client\*.java src\minecraft\net\minecraft\isom\*.java src\m
inecraft\net\minecraft\src\*.java conf\patches\ga.java conf\patches\Start.java'
failed : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Tower.java:5: error: <identifier> expected
public static final Tower = new BlockTower(170, 0).setBlockTower("Tower").setHar
dness(3F).setResistance(4F).setLightValue(1F);
^
1 error
1 warning
==================
Press any key to continue . . .
And here is my code:
package net.minecraft.src;
public class mod_Tower extends BaseMod
{
public static final Block Tower = new BlockTower(170, 0).setBlockTower("Tower").setHardness(3F).setResistance(4F).setLightValue(1F);
public void load()
{
Tower.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/LyokoImages/towerblock.png");
ModLoader.RegisterBlock(Tower);
ModLoader.AddName(Tower, "Tower");
ModLoader.AddRecipe(new ItemStack(itemtoreceive, quantity), new Object [] {"###", "@@@", "%%%", Character.valueOf('#'), Item.redstone, Character.valueOf('@'), Item.coal, Character.valueOf('%'), Item.lapislazuli});
}
public String getVersion()
{
return "1.1";
}
}
Once again, thanks for any help from anyone!
It should be
public static final Block Tower = new BlockTower//and so on
public static final Block Tower = new BlockTower//and so on
You need to identify your creation or the recompiler doesn't know what it is.
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
To post a comment, please login or register a new account.
Make sure you're using the correct capitals.
should be
should be
should be
together they are powerful beyond imagination."
Within 2-3 days.
together they are powerful beyond imagination."
Thanks for your time TechGuy543, great set of tutorials here.
Use
The load() method is the main one. But there are others like world.entityJoinedWorld is now world.spawnEntityInWorld.
together they are powerful beyond imagination."
Mods loaded: 1
ModLoader 1.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected]
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT 9c4f49b2 --------
Generated 2/24/12 5:30 PM
Minecraft: Minecraft 1.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics Family version 3.0.0 - Build 8.15.10.2353, Intel
java.lang.NullPointerException
at net.minecraft.src.ItemStack.<init>(ItemStack.java:35)
at net.minecraft.src.mod_LOTR.<init>(mod_LOTR.java:11)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:234)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1217)
at net.minecraft.src.ModLoader.init(ModLoader.java:708)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:150)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:78)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:9)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:316)
at net.minecraft.client.Minecraft.run(Minecraft.java:620)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 4c787f6 ----------
if you need to see the code it is right here
------------------------------------------------------------------------------------------
package net.minecraft.src;
public class mod_LOTR extends BaseMod
{
public static final Item plastic = new plastic(5001).setItemName("plastic");
private static final int ItemStack = 0;
{
plastic.iconIndex = ModLoader.addOverride("/gui/items.png", "/LOTR/plastic.png");
ModLoader.AddName(plastic, "plastic");
ModLoader.AddSmelting(Block.stone, new ItemStack(Item.plastic, 1));
}
public static final Item discbase = new discbase(5000).setItemName("disc base");
public void load()
{
discbase.iconIndex = ModLoader.addOverride("/gui/items.png", "/LOTR/discbase.png");
ModLoader.AddName(discbase, "disc base");
ModLoader.AddRecipe(new ItemStack(discbase, 1), new Object []
{" R ",
" R ",
" R ", Character.valueOf('R'), Item.plastic});
}
private int ItemStack(ItemStack itemStack, Object[] objects) {
// TODO Auto-generated method stub
return 0;
}
public String getVersion()
{
return "1.1";
}
}
------------------------------------------------------------------------------------------
package net.minecraft.src;
public class plastic extends Item
{
public plastic(int i)
{
super(i);
maxStackSize = 64;
}
}
__________________________________________________________________________________________
package net.minecraft.src;
public class discbase extends Item
{
public discbase(int i)
{
super(i);
maxStackSize = 64;
}
}
______________________________________________________________ please help!!!!!
What are you try to do with that ItemStack int?
Your plastic iconIndex, AddName and AddRecipe codes all need to go in the load() method. You can't just have squiggly brackets and not define the method, and you can't have an identical method name in the same class twice. Please use code tags like I said in the OP.
together they are powerful beyond imagination."
thanks i tried that but i think i am not understanding because after that I got Mods loaded: 2
ModLoader 1.1
mod_LOTR 1.1
Minecraft has crashed!
----------------------
Minecraft has stopped running because it encountered a problem.
If you wish to report this, please copy this entire text and email it to [email protected]
Please include a description of what you did when the error occured.
--- BEGIN ERROR REPORT aad6e623 --------
Generated 2/24/12 8:20 PM
Minecraft: Minecraft 1.1
OS: Windows 7 (amd64) version 6.1
Java: 1.7.0_02, Oracle Corporation
VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: Intel(R) HD Graphics Family version 3.0.0 - Build 8.15.10.2353, Intel
java.lang.NullPointerException
at net.minecraft.src.ItemStack.<init>(ItemStack.java:35)
at net.minecraft.src.mod_LOTR.load(mod_LOTR.java:17)
at net.minecraft.src.ModLoader.init(ModLoader.java:714)
at net.minecraft.src.ModLoader.AddAllRenderers(ModLoader.java:150)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:78)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:9)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:316)
at net.minecraft.client.Minecraft.run(Minecraft.java:620)
at java.lang.Thread.run(Unknown Source)
--- END ERROR REPORT 84f454b ----------
and the code is
--------------------------------------------------------------
package net.minecraft.src;
public class mod_LOTR extends BaseMod
{
public static final Item discbase = new discbase(5000).setItemName("disc base");
public static final Item plastic = new plastic(5001).setItemName("plastic");
public void load()
{
{
plastic.iconIndex = ModLoader.addOverride("/gui/items.png", "/LOTR/plastic.png");
ModLoader.AddName(plastic, "plastic");
ModLoader.AddSmelting(Block.stone, new ItemStack(Item.plastic, 1));
}
discbase.iconIndex = ModLoader.addOverride("/gui/items.png", "/LOTR/discbase.png");
ModLoader.AddName(discbase, "disc base");
ModLoader.AddRecipe(new ItemStack(discbase, 1), new Object []
{" R ",
" R ",
" R ", Character.valueOf('R'), Item.plastic});
}
private int ItemStack(ItemStack itemStack, Object[] objects) {
// TODO Auto-generated method stub
return 0;
}
public String getVersion()
{
return "1.1";
}
}
--------------------------------------------------------------
package net.minecraft.src;
public class plastic extends Item
{
public plastic(int i)
{
super(i);
maxStackSize = 64;
}
}
-----------------------------------------------------------------
package net.minecraft.src;
public class discbase extends Item
{
public discbase(int i)
{
super(i);
maxStackSize = 64;
}
}
---------------------------------------------------------------
I'm kinda immature about this stuff
package net.minecraft.src; public class mod_LOTR extends BaseMod { public static final Item discbase = new discbase(5000).setItemName("disc base"); public static final Item plastic = new plastic(5001).setItemName("plastic"); public void load() { plastic.iconIndex = ModLoader.addOverride("/gui/items.png", "/LOTR/plastic.png"); ModLoader.AddName(plastic, "plastic"); ModLoader.AddSmelting(Block.stone.blockID, new ItemStack(plastic, 1)); discbase.iconIndex = ModLoader.addOverride("/gui/items.png", "/LOTR/discbase.png"); ModLoader.AddName(discbase, "disc base"); ModLoader.AddRecipe(new ItemStack(discbase, 1), new Object [] {" R ", " R ", " R ", Character.valueOf('R'), Item.plastic}); } public String getVersion() { return "1.1"; } }It's because you had that ItemStack int in the file. You DON'T need it. The above is the correct code. You had the smelting recipe wrong. You needed to put .blockID after Block.stone, and you had Item. before plastic. Your item called "plastic" isn't in Item.java, so you don't use that.
The code above still isn't perfect, but it should run fine.
Please use
together they are powerful beyond imagination."
Mods loaded: 2 ModLoader 1.1 mod_cupcake 1.1 Minecraft has crashed! ---------------------- Minecraft has stopped running because it encountered a problem. If you wish to report this, please copy this entire text and email it to [email protected] Please include a description of what you did when the error occured. --- BEGIN ERROR REPORT feff03ee -------- Generated 25/02/12 16:40 Minecraft: Minecraft 1.1 OS: Windows 7 (amd64) version 6.1 Java: 1.6.0_31, Sun Microsystems Inc. VM: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Sun Microsystems Inc. LWJGL: 2.4.2 OpenGL: AMD M880G with ATI Mobility Radeon HD 4250 version 3.3.10179 Compatibility Profile Context, ATI Technologies Inc. java.lang.RuntimeException: java.lang.Exception: Image not found: /mcp/bin/cupcake.png at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1356) at net.minecraft.src.ModLoader.OnTick(ModLoader.java:1069) at net.minecraft.src.EntityRendererProxy.updateCameraAndRender(EntityRendererProxy.java:18) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:737) at net.minecraft.client.Minecraft.run(Minecraft.java:634) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.Exception: Image not found: /mcp/bin/cupcake.png at net.minecraft.src.ModLoader.loadImage(ModLoader.java:1007) at net.minecraft.src.ModLoader.RegisterAllTextureOverrides(ModLoader.java:1348) ... 5 more --- END ERROR REPORT afa4a981 ----------Edit:Sorry This was supposed to be jackd44 posting this is his little brothers account.
You dont write mcp/bin/minecraft/filename.png. You just put your pictures in there and write /filename.png. It automatically looks in mcp/bin/minecraft
Stewiecraft has a good bow tutorial here. I'm going to make one, just not yet.
together they are powerful beyond imagination."
Not yet.
together they are powerful beyond imagination."
"RRR",
"RIR",
"CCC", Character.valueOf('R'), Item.redstone, Character.valueOf('I'), Item.ingotIron, Character.valueOf('C'), Item.dyePowder
});
______________________________________________________________________________________________Thats only a part of it please help!!
Anyway here is my error:
== MCP 5.6 (data: 5.6, client: 1.1, server: 1.1) == > Recompiling client... '"C:\Program Files (x86)\Java\jdk1.7.0\bin\javac.exe" -g -source 1.6 -target 1.6 -classpath "lib;lib\*;jars\bin\minecraft.jar;jars\bin\jinput.jar;jars\bin\lwjgl .jar;jars\bin\lwjgl_util.jar" -sourcepath src\minecraft -d bin\minecraft src\min ecraft\net\minecraft\client\*.java src\minecraft\net\minecraft\isom\*.java src\m inecraft\net\minecraft\src\*.java conf\patches\ga.java conf\patches\Start.java' failed : 1 == ERRORS FOUND == warning: [options] bootstrap class path not set in conjunction with -source 1.6 src\minecraft\net\minecraft\src\mod_Tower.java:5: error: <identifier> expected public static final Tower = new BlockTower(170, 0).setBlockTower("Tower").setHar dness(3F).setResistance(4F).setLightValue(1F); ^ 1 error 1 warning ================== Press any key to continue . . .And here is my code:
package net.minecraft.src; public class mod_Tower extends BaseMod { public static final Block Tower = new BlockTower(170, 0).setBlockTower("Tower").setHardness(3F).setResistance(4F).setLightValue(1F); public void load() { Tower.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/LyokoImages/towerblock.png"); ModLoader.RegisterBlock(Tower); ModLoader.AddName(Tower, "Tower"); ModLoader.AddRecipe(new ItemStack(itemtoreceive, quantity), new Object [] {"###", "@@@", "%%%", Character.valueOf('#'), Item.redstone, Character.valueOf('@'), Item.coal, Character.valueOf('%'), Item.lapislazuli}); } public String getVersion() { return "1.1"; } }Once again, thanks for any help from anyone!
Should be
ModLoader.AddRecipe(new ItemStack(Namehere, 1), new Object [] {"RRR", "RIR", "CCC", Character.valueOf('R'), Item.redstone, Character.valueOf('I'), Item.ingotIron, Character.valueOf('C'), Item.dyePowder});-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI think that this line:
.setBlockTower("Tower")Should be:
setBlockName("Tower")As that line is for setting the blocks name (although it gets overrode by ModLoader anyways)
Have a look at using the dyes in recipes under the 'Crafting & Smelting Recipes' spoiler.
What do you mean?
It should be
public static final Block Tower = new BlockTower//and so on
You need to identify your creation or the recompiler doesn't know what it is.
together they are powerful beyond imagination."