warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:7: error: mod_Desk is not abstract
and does not override abstract method load() in BaseMod
public class mod_Desk extends BaseMod {
^
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: cannot find symbol
public static final Block desk = new BlockDesk(123,0).setHardness(2,0F).setResis
tance(5.0F).setBlockName("Desk");
^
symbol: class BlockDesk
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:16: error: cannot find symbol
ModLoader.RegisterBlcok(desk);
^
symbol: method RegisterBlcok(Block)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
ModLoader.addRecipe(new ItemStack(Item.Desk, 64), new Object[] {
^
symbol: variable Desk
location: class Item
src\minecraft\net\minecraft\src\mod_Desk.java:20: error: cannot find symbol
"#", Character.valueOf('#'), Item.dirt
^
symbol: variable dirt
location: class Item
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
ModLoader.addRecipe(new ItemStack(Item.Desk, 64), new Object[] {
^
> Done in 20.75 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
and here is my mod code:
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// Block, Material
public class mod_Desk extends BaseMod {
public static final Block desk = new BlockDesk(123,0).setHardness(2,0F).setResistance(5.0F).setBlockName("Desk");
public String Version()
{
return "1.0.0";
}
public mod_Desk()
{
ModLoader.RegisterBlcok(desk);
desk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/desk.png");
ModLoader.AddName(desk, "Just a Desk, what else?");
ModLoader.addRecipe(new ItemStack(Item.Desk, 64), new Object[] {
"#", Character.valueOf('#'), Item.dirt
});
}
}
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:7: error: mod_Desk is not abstract
and does not override abstract method load() in BaseMod
public class mod_Desk extends BaseMod {
^
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: cannot find symbol
public static final Block desk = new BlockDesk(123,0).setHardness(2,0F).setResis
tance(5.0F).setBlockName("Desk");
^
symbol: class BlockDesk
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:16: error: cannot find symbol
ModLoader.RegisterBlcok(desk);
^
symbol: method RegisterBlcok(Block)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
ModLoader.addRecipe(new ItemStack(Item.Desk, 64), new Object[] {
^
symbol: variable Desk
location: class Item
src\minecraft\net\minecraft\src\mod_Desk.java:20: error: cannot find symbol
"#", Character.valueOf('#'), Item.dirt
^
symbol: variable dirt
location: class Item
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
ModLoader.addRecipe(new ItemStack(Item.Desk, 64), new Object[] {
^
> Done in 20.75 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
and here is my mod code:
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// Block, Material
public class mod_Desk extends BaseMod {
public static final Block desk = new BlockDesk(123,0).setHardness(2,0F).setResistance(5.0F).setBlockName("Desk");
public String Version()
{
return "1.0.0";
}
public mod_Desk()
{
ModLoader.RegisterBlcok(desk);
desk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/desk.png");
ModLoader.AddName(desk, "Just a Desk, what else?");
ModLoader.addRecipe(new ItemStack(Item.Desk, 64), new Object[] {
"#", Character.valueOf('#'), Item.dirt
});
}
}
Well, change
public mod_***()
to
public void load()
Change
public String Version()
to
public String getVersion()
You have a comma in the .setHardness float instead of a decimal.
dirt is a block, not an item.
Your addRecipe needs to have a capital: ModLoader.AddRecipe
You are saying that Desk in the recipe is in Item.java, which it isnt. Just write desk, not Item.Desk
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: cannot find symbol
public static final Block desk = new BlockDesk(123,0).setHardness(2.0F).setResis
tance(5.0F).setBlockName("Desk");
^
symbol: class BlockDesk
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
ModLoader.AddRecipe (new ItemStack(Desk, 64), new Object[] {
^
symbol: variable Desk
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:20: error: cannot find symbol
"#", Character.valueOf('#'), Item.dirt
^
> Done in 19.06 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
and heres the updated code:
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// Block, Material
public class mod_Desk extends BaseMod{
public static final Block desk = new BlockDesk(123,0).setHardness(2.0F).setResistance(5.0F).setBlockName("Desk");
public String getVersion()
{
return "1.0.0";
}
public void load()
{
ModLoader.RegisterBlock(desk);
desk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/desk.png");
ModLoader.AddName (desk, "Just a Desk, what else?");
ModLoader.AddRecipe (new ItemStack(Desk, 64), new Object[] {
"#", Character.valueOf('#'), Item.dirt
});
}
}
I am just trying to get started in Java and I would figure making a Minecraft mod would help.
Also I am not getting others to do all my errors I am trying to figure out what's wrong by reading all this too but I coded this with help from a tutorial.
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: cannot find symbol
public static final Block desk = new BlockDesk(123,0).setHardness(2.0F).setResis
tance(5.0F).setBlockName("Desk");
^
symbol: class BlockDesk
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
ModLoader.AddRecipe (new ItemStack(Desk, 64), new Object[] {
^
symbol: variable Desk
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:20: error: cannot find symbol
"#", Character.valueOf('#'), Item.dirt
^
> Done in 19.06 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
and heres the updated code:
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// Block, Material
public class mod_Desk extends BaseMod{
public static final Block desk = new BlockDesk(123,0).setHardness(2.0F).setResistance(5.0F).setBlockName("Desk");
public String getVersion()
{
return "1.0.0";
}
public void load()
{
ModLoader.RegisterBlock(desk);
desk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/desk.png");
ModLoader.AddName (desk, "Just a Desk, what else?");
ModLoader.AddRecipe (new ItemStack(Desk, 64), new Object[] {
"#", Character.valueOf('#'), Item.dirt
});
}
}
I am just trying to get started in Java and I would figure making a Minecraft mod would help.
Saying ' = new BlockDesk' means that you need another file called BlockDesk. If the block doesnt have anything special about it, just say ' = new Block(ID, 0)'
You called the item 'desk' in the public static final line, you have to use that with correct casing everywhere else in the file. '(new ItemStack(desk, 1), new Object []'
Dirt is a block not an item. 'Block.dirt', not 'Item.dirt'
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Saying ' = new BlockDesk' means that you need another file called BlockDesk. If the block doesnt have anything special about it, just say ' = new Block(ID, 0)'
You called the item 'desk' in the public static final line, you have to use that with correct casing everywhere else in the file. '(new ItemStack(desk, 1), new Object []'
Dirt is a block not an item. 'Block.dirt', not 'Item.dirt'
Thank you so much!
All I got left is a bootstrap error and a javac.exe error which I tried to google without avail.
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: <identifier> expected
public static final Desk = new Block(123,0).setHardness(2.0F).setResistance(5.0F
).setBlockName("Desk");
^
1 error
1 warning
==================
> Done in 4.82 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
and this is the part of the code that I am not sure how to fix
public static final Desk = new Block(123,0).setHardness(2.0F).setResistance(5.0F).setBlockName("Desk");
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: <identifier> expected
public static final Desk = new Block(123,0).setHardness(2.0F).setResistance(5.0F
).setBlockName("Desk");
^
1 error
1 warning
==================
> Done in 4.82 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
and this is the part of the code that I am not sure how to fix
public static final Desk = new Block(123,0).setHardness(2.0F).setResistance(5.0F).setBlockName("Desk");
Sorry, I missed that when I checked. It should be like this. You have to identify the new creation before you state it's name.
public static final Block Desk = new Block(123,0).setHardness(2.0F).setResistance(5.0F).setBlockName("Desk");
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: <identifier> expected
public static final Desk = new Block(123,0).setHardness(2.0F).setResistance(5.0F
).setBlockName("Desk");
^
1 error
1 warning
==================
> Done in 4.82 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
and this is the part of the code that I am not sure how to fix
public static final Desk = new Block(123,0).setHardness(2.0F).setResistance(5.0F).setBlockName("Desk");
exactly what are you trying to make if Ur making a block with special properties try making your on BlockDesk.java and then it shouldn't give you errors unless you have done something wrong in that class or in the code public static final Desk... so n so
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: no suitable constructor
found for Block(int,int)
public static final Block Desk = new Block(123,0).setHardness(2.0F).setResistanc
e(5.0F).setBlockName("Desk");
^
constructor Block.Block(int,int,Material) is not applicable
(actual and formal argument lists differ in length)
constructor Block.Block(int,Material) is not applicable
(actual argument int cannot be converted to Material by method invocation conver
sion)
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
desk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/desk.png");
^
exactly what are you trying to make if Ur making a block with special properties try making your on BlockDesk.java and then it shouldn't give you errors unless you have done something wrong in that class or in the code public static final Desk... so n so
An identifier is what I added to the line. It's the type of creation, between the 'public static final' and the name of the new creation
public static final Block GreenBlock...
@Lolerking
public static final Block desk = new Block(123, 0, Material.wood).setBlockName("Desk")//and so on.
You can change that material to anything you want, as long as it's in Material.java. They all do different things.
“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:
1/18/2011
Posts:
810
Minecraft:
mightydanp
Member Details
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// Block, Material
public static final Block Desk = new Block(123,0).setHardness(2.0F).setResistance(5.0F).setBlockName("Desk");
public class mod_Desk extends BaseMod{
ModLoader.RegisterBlock(Desk);
desk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/desk.png");
ModLoader.AddName (Desk,"Desk");
ModLoader.AddRecipe (new ItemStack(Desk, 64), new Object[] {
"#", Character.valueOf('#'), Block.dirt
});
}
@Override
public void load(){}
public String getVersion()
{
return "1.0.0";
}
package net.minecraft.src;
// Referenced classes of package net.minecraft.src:
// Block, Material
public static final Block Desk = new Block(123,0).setHardness(2.0F).setResistance(5.0F).setBlockName("Desk");
public class mod_Desk extends BaseMod{
ModLoader.RegisterBlock(Desk);
desk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/desk.png");
ModLoader.AddName (Desk,"Desk");
ModLoader.AddRecipe (new ItemStack(Desk, 64), new Object[] {
"#", Character.valueOf('#'), Block.dirt
});
}
@Override
public void load(){}
public String getVersion()
{
return "1.0.0";
}
try this to make it more orginized
That code is VERY wrong. And is no where near as organized. You haven't got load() as the constructor, which you should, and you have code, outside of the class {}
@ Lolerking
Dont use this. You will most likely get 100 errors, MCP's limit is 100, even though there can be more in the file.
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
An identifier is what I added to the line. It's the type of creation, between the 'public static final' and the name of the new creation
public static final Block GreenBlock...
@Lolerking
public static final Block desk = new Block(123, 0, Material.wood).setBlockName("Desk")//and so on.
You can change that material to anything you want, as long as it's in Material.java. They all do different things.
Thanks and I swear I added a material in there but I must have missed it. Now I updated the code and I only got 2 errors highlighted here along with a javac.exe error:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
BlockIndexInTexture = ModLoader.AddOverride("/terrain.png", "/desk.png");
^
symbol: variable BlockIndexInTexture
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
BlockIndexInTexture = ModLoader.AddOverride("/terrain.png", "/desk.png");
^
and the parts of the code that are troublesome for me because of the errors:
{ ModLoader.RegisterBlock(Desk);
BlockIndexInTexture = ModLoader.AddOverride("/terrain.png", "/desk.png");
ModLoader.AddName (Desk,"Desk");
ModLoader.AddRecipe (new ItemStack(Desk, 64), new Object[] {
"#", Character.valueOf('#'), Block.dirt
P.S I feel really bad having you deal with my problems and I really thank you for this because it helps me out a lot. and I +1'd all of your posts for helping out, if that helps.
Thanks and I swear I added a material in there but I must have missed it. Now I updated the code and I only got 2 errors highlighted here along with a javac.exe error:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
BlockIndexInTexture = ModLoader.AddOverride("/terrain.png", "/desk.png");
^
symbol: variable BlockIndexInTexture
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
BlockIndexInTexture = ModLoader.AddOverride("/terrain.png", "/desk.png");
^
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
Seriously, if you don't know what you're talking about, don't say anything
I just have 1 more error left and its the bootstrap in the same piece of code.
Error:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
desk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/desk.png");
^
public static final Block desk = new Block(Id, 0, Material)//and so on
then you use the name you wrote after 'public static final Block' in each spot in the file. In this case it would be 'desk', with a lowercase.
Change the RegisterBlock line to a lowercase desk, in the brackets. MCP might be getting confused. Remember to use correct cases! :smile.gif:
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
I just have 1 more error left and its the bootstrap in the same piece of code.
Error:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
desk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/desk.png");
^
If he doesnt use a capital in his public static final line. Then he doesnt have to anywhere else!
Rollback Post to RevisionRollBack
“Computers are incredibly fast, accurate and stupid; humans are incredibly slow, inaccurate and brilliant; together they are powerful beyond imagination."
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\src\*.java conf/patches/*.java failed.
Return code : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:7: error: mod_Desk is not abstract
and does not override abstract method load() in BaseMod
public class mod_Desk extends BaseMod {
^
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: cannot find symbol
public static final Block desk = new BlockDesk(123,0).setHardness(2,0F).setResis
tance(5.0F).setBlockName("Desk");
^
symbol: class BlockDesk
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:16: error: cannot find symbol
ModLoader.RegisterBlcok(desk);
^
symbol: method RegisterBlcok(Block)
location: class ModLoader
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
ModLoader.addRecipe(new ItemStack(Item.Desk, 64), new Object[] {
^
symbol: variable Desk
location: class Item
src\minecraft\net\minecraft\src\mod_Desk.java:20: error: cannot find symbol
"#", Character.valueOf('#'), Item.dirt
^
symbol: variable dirt
location: class Item
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
ModLoader.addRecipe(new ItemStack(Item.Desk, 64), new Object[] {
^
symbol: method addRecipe(ItemStack,Object[])
location: class ModLoader
6 errors
1 warning
==================
> Done in 20.75 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
and here is my mod code:
together they are powerful beyond imagination."
Thank you for replying and I did all the changes you said to do and I still get these errors:
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\src\*.java conf/patches/*.java failed.
Return code : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: cannot find symbol
public static final Block desk = new BlockDesk(123,0).setHardness(2.0F).setResis
tance(5.0F).setBlockName("Desk");
^
symbol: class BlockDesk
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
ModLoader.AddRecipe (new ItemStack(Desk, 64), new Object[] {
^
symbol: variable Desk
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:20: error: cannot find symbol
"#", Character.valueOf('#'), Item.dirt
^
symbol: variable dirt
location: class Item
3 errors
1 warning
==================
> Done in 19.06 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
and heres the updated code:
I am just trying to get started in Java and I would figure making a Minecraft mod would help.
Also I am not getting others to do all my errors I am trying to figure out what's wrong by reading all this too but I coded this with help from a tutorial.
together they are powerful beyond imagination."
Thank you so much!
All I got left is a bootstrap error and a javac.exe error which I tried to google without avail.
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\src\*.java conf/patches/*.java failed.
Return code : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: <identifier> expected
public static final Desk = new Block(123,0).setHardness(2.0F).setResistance(5.0F
).setBlockName("Desk");
^
1 error
1 warning
==================
> Done in 4.82 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
and this is the part of the code that I am not sure how to fix
Sorry, I missed that when I checked. It should be like this. You have to identify the new creation before you state it's name.
together they are powerful beyond imagination."
exactly what are you trying to make if Ur making a block with special properties try making your on BlockDesk.java and then it shouldn't give you errors unless you have done something wrong in that class or in the code public static final Desk... so n so
Odd. I put Block infront of Desk in the code you shown and it cleared that error but gave me 2 more.
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\src\*.java conf/patches/*.java failed.
Return code : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:9: error: no suitable constructor
found for Block(int,int)
public static final Block Desk = new Block(123,0).setHardness(2.0F).setResistanc
e(5.0F).setBlockName("Desk");
^
constructor Block.Block(int,int,Material) is not applicable
(actual and formal argument lists differ in length)
constructor Block.Block(int,Material) is not applicable
(actual argument int cannot be converted to Material by method invocation conver
sion)
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
desk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/desk.png");
^
symbol: variable desk
location: class mod_Desk
2 errors
1 warning
==================
> Done in 19.88 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
and I am looking over the tutorial for anything I missed. Here is my current code:
EDIT: I think I messed up 1 thing by putting "desk" infront.
An identifier is what I added to the line. It's the type of creation, between the 'public static final' and the name of the new creation
public static final Block GreenBlock...
@Lolerking
You can change that material to anything you want, as long as it's in Material.java. They all do different things.
together they are powerful beyond imagination."
try this to make it more orginized
That code is VERY wrong. And is no where near as organized. You haven't got load() as the constructor, which you should, and you have code, outside of the class {}
@ Lolerking
Dont use this. You will most likely get 100 errors, MCP's limit is 100, even though there can be more in the file.
together they are powerful beyond imagination."
Thanks and I swear I added a material in there but I must have missed it. Now I updated the code and I only got 2 errors highlighted here along with a javac.exe error:
> Recompiling client...
javac.exe -g -source 1.6 -target 1.6 -classpath "lib/;lib/*;jars/bin/minecraft.j
ar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath s
rc/minecraft -d bin/minecraft src/minecraft\net\minecraft\client\*.java src/mine
craft\net\minecraft\src\*.java conf/patches/*.java failed.
Return code : 1
== ERRORS FOUND ==
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
BlockIndexInTexture = ModLoader.AddOverride("/terrain.png", "/desk.png");
^
symbol: variable BlockIndexInTexture
location: class mod_Desk
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
BlockIndexInTexture = ModLoader.AddOverride("/terrain.png", "/desk.png");
^
symbol: method AddOverride(String,String)
location: class ModLoader
2 errors
1 warning
==================
and the parts of the code that are troublesome for me because of the errors:
P.S I feel really bad having you deal with my problems and I really thank you for this because it helps me out a lot. and I +1'd all of your posts for helping out, if that helps.
change to
Desk.BlockIndexInTexture = ModLoader.AddOverride("/terrain.png", "/desk.png");
@mightdanp
Seriously, if you don't know what you're talking about, don't say anything
together they are powerful beyond imagination."
I just have 1 more error left and its the bootstrap in the same piece of code.
Error:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
src\minecraft\net\minecraft\src\mod_Desk.java:19: error: cannot find symbol
desk.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/desk.png");
^
symbol: variable desk
location: class mod_Desk
Code:
Thanks for all that you done so far.
dude this isnt going to work
there has to be this
not this
public static final Block desk = new Block(Id, 0, Material)//and so on
then you use the name you wrote after 'public static final Block' in each spot in the file. In this case it would be 'desk', with a lowercase.
Change the RegisterBlock line to a lowercase desk, in the brackets. MCP might be getting confused. Remember to use correct cases! :smile.gif:
together they are powerful beyond imagination."
you forgot to capitalize the D in Desk in
If he doesnt use a capital in his public static final line. Then he doesnt have to anywhere else!
together they are powerful beyond imagination."