[Tutorial] Modding with MCP and Modloader Videos [Blocks][1.0.0]
#41
Posted 13 May 2011 - 07:53 PM
#43
Posted 13 May 2011 - 07:59 PM
Tjaden said:
== MCP v3.1 ==
> Recompiling client...
javac.exe -g -verbose -classpath "jars/bin/minecraft.jar;jars/bin/jinput.jar;jar
s/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecr
aft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minecraft\isom\*
.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java failed.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Fireproofplank.java:12: cannot find symbol
symbol : variable FireproofwooD
location: class net.minecraft.src.Block
{"X", "#", Character.valueOf('X'), Block.FireproofwooD, Character.valueOf('#'),
Item.redstone});
^
1 error
==================
> Done in 3.88 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
I have tried so many different syntaxes case sensitivitys and so on, Also this happens on some items which are by default already in the game.
Anyone know what to do?
remove the Block. =]
and make it fireproofwood
#44
Posted 13 May 2011 - 08:07 PM
Joshj5hawk said:
Tjaden said:
== MCP v3.1 ==
> Recompiling client...
javac.exe -g -verbose -classpath "jars/bin/minecraft.jar;jars/bin/jinput.jar;jar
s/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecr
aft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minecraft\isom\*
.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java failed.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Fireproofplank.java:12: cannot find symbol
symbol : variable FireproofwooD
location: class net.minecraft.src.Block
{"X", "#", Character.valueOf('X'), Block.FireproofwooD, Character.valueOf('#'),
Item.redstone});
^
1 error
==================
> Done in 3.88 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
I have tried so many different syntaxes case sensitivitys and so on, Also this happens on some items which are by default already in the game.
Anyone know what to do?
remove the Block. =]
and make it fireproofwood
Ok I tried this and it didnt work
Here is my actual code for both blocks, I also have the blockFireproofwood and blockFireproofplank files, but I don't think they would need anything new.
mod_Fireproofwood:
package net.minecraft.src;
import java.util.Random;
public class mod_Fireproofwood extends BaseMod
{
public mod_Fireproofwood()
{
ModLoader.RegisterBlock(Fireproofwood);
ModLoader.AddName(Fireproofwood, "Fire Proofed Wood");
ModLoader.AddRecipe(new ItemStack(Fireproofwood, 2), new Object[] {
"X", "#", Character.valueOf('X'), Block.sapling, Character.valueOf('#'), Item.redstone
});
}
public static Block Fireproofwood;
static
{
Fireproofwood = new BlockFireproofwood(109, ModLoader.addOverride("/terrain.png", "/tjaden/blocks/trunk.png")).setHardness(0.6F).setResistance(2.0F).setBlockName("Fireproofwood");
}
public String Version()
{
return "Fireproofwood 1.0";
}
}
And then
mod_Fireproofplank:
package net.minecraft.src;
import java.util.Random;
public class mod_Fireproofplank extends BaseMod
{
public mod_Fireproofplank()
{
ModLoader.RegisterBlock(Fireproofplank);
ModLoader.AddName(Fireproofplank, "Fire Proofed Plank");
ModLoader.AddRecipe(new ItemStack(Fireproofplank, 4), new Object[] {
"#X#", Character.valueOf('#'), Fireproofwood, Character.valueOf('X'), Item.redstone
});
}
public static Block Fireproofplank;
static
{
Fireproofplank = new BlockFireproofplank(110, ModLoader.addOverride("/terrain.png", "/tjaden/blocks/wood.png")).setHardness(0.5F).setResistance(0.5F).setBlockName("Fireproofplank");
}
public String Version()
{
return "Fireproofplank 1.0";
}
}
And whatever i type in that recipe it comes up in the error log:
package net.minecraft.src;
import java.util.Random;
public class mod_Fireproofplank extends BaseMod
{
public mod_Fireproofplank()
{
ModLoader.RegisterBlock(Fireproofplank);
ModLoader.AddName(Fireproofplank, "Fire Proofed Plank");
ModLoader.AddRecipe(new ItemStack(Fireproofplank, 4), new Object[] {
"#X#", Character.valueOf('#'), Fireproofwood, Character.valueOf('X'), Item.redstone
});
}
public static Block Fireproofplank;
static
{
Fireproofplank = new BlockFireproofplank(110, ModLoader.addOverride("/terrain.png", "/tjaden/blocks/wood.png")).setHardness(0.5F).setResistance(0.5F).setBlockName("Fireproofplank");
}
public String Version()
{
return "Fireproofplank 1.0";
}
}
This is so annoyying, I'm having to make the second material out of a basic item for the time being.
#46
Posted 13 May 2011 - 08:19 PM
#47
Posted 13 May 2011 - 08:32 PM
Joshj5hawk said:
Tjaden said:
This is so annoyying, I'm having to make the second material out of a basic item for the time being.
Sorry it's still quite not working, this is my compile log now:
== MCP v3.1 ==
> Recompiling client...
javac.exe -g -verbose -classpath "jars/bin/minecraft.jar;jars/bin/jinput.jar;jar
s/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecr
aft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minecraft\isom\*
.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java failed.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Fireproofwood.java:29: class mod_Fireproofpl
ank is public, should be declared in a file named mod_Fireproofplank.java
public class mod_Fireproofplank extends BaseMod
^
src\minecraft\net\minecraft\src\mod_Fireproofwood.java:36: cannot find symbol
symbol : variable fireproofwood
location: class net.minecraft.src.mod_Fireproofplank
"#X#", Character.valueOf('#'), fireproofwood, Character.valueOf('X'), Item.redst
one
^
2 errors
==================
> Done in 2.57 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
And then this is the one mod_Fireproofwood file:
package net.minecraft.src;
import java.util.Random;
public class mod_Fireproofwood extends BaseMod
{
public mod_Fireproofwood()
{
ModLoader.RegisterBlock(Fireproofwood);
ModLoader.AddName(Fireproofwood, "Fire Proof Wood");
ModLoader.AddRecipe(new ItemStack(Fireproofwood, 2), new Object[] {
"X", "#", Character.valueOf('X'), Block.sapling, Character.valueOf('#'), Item.redstone
});
}
public static Block Fireproofwood;
static
{
Fireproofwood = new BlockFireproofwood(109, ModLoader.addOverride("/terrain.png", "/tjaden/blocks/trunk.png")).setHardness(0.6F).setResistance(2.0F).setBlockName("Fireproofwood");
}
public String Version()
{
return "Fireproofwood 1.0";
}
}
public class mod_Fireproofplank extends BaseMod
{
public mod_Fireproofplank()
{
ModLoader.RegisterBlock(Fireproofplank);
ModLoader.AddName(Fireproofplank, "Fire Proofed Plank");
ModLoader.AddRecipe(new ItemStack(Fireproofplank, 4), new Object[] {
"#X#", Character.valueOf('#'), fireproofwood, Character.valueOf('X'), Item.redstone
});
}
public static Block Fireproofplank;
static
{
Fireproofplank = new BlockFireproofplank(110, ModLoader.addOverride("/terrain.png", "/tjaden/blocks/wood.png")).setHardness(0.5F).setResistance(0.5F).setBlockName("Fireproofplank");
}
public String Version()
{
return "Fireproofplank 1.0";
}
}
And then the two Block files are called:
"BlockFireproofwood.java"
"BlockFireproofplank.java"
Sorry this is turning out to be a right pain.
#48
Posted 13 May 2011 - 09:08 PM
Tjaden said:
Joshj5hawk said:
Tjaden said:
This is so annoyying, I'm having to make the second material out of a basic item for the time being.
Sorry it's still quite not working, this is my compile log now:
== MCP v3.1 ==
> Recompiling client...
javac.exe -g -verbose -classpath "jars/bin/minecraft.jar;jars/bin/jinput.jar;jar
s/bin/lwjgl.jar;jars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecr
aft src/minecraft\net\minecraft\client\*.java src/minecraft\net\minecraft\isom\*
.java src/minecraft\net\minecraft\src\*.java conf/patches/*.java failed.
Return code : 1
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\mod_Fireproofwood.java:29: class mod_Fireproofpl
ank is public, should be declared in a file named mod_Fireproofplank.java
public class mod_Fireproofplank extends BaseMod
^
src\minecraft\net\minecraft\src\mod_Fireproofwood.java:36: cannot find symbol
symbol : variable fireproofwood
location: class net.minecraft.src.mod_Fireproofplank
"#X#", Character.valueOf('#'), fireproofwood, Character.valueOf('X'), Item.redst
one
^
2 errors
==================
> Done in 2.57 seconds
> Recompiling server...
!! Can not find server sources !!
Press any key to continue . . .
And then this is the one mod_Fireproofwood file:
package net.minecraft.src;
import java.util.Random;
public class mod_Fireproofwood extends BaseMod
{
public mod_Fireproofwood()
{
ModLoader.RegisterBlock(Fireproofwood);
ModLoader.AddName(Fireproofwood, "Fire Proof Wood");
ModLoader.AddRecipe(new ItemStack(Fireproofwood, 2), new Object[] {
"X", "#", Character.valueOf('X'), Block.sapling, Character.valueOf('#'), Item.redstone
});
}
public static Block Fireproofwood;
static
{
Fireproofwood = new BlockFireproofwood(109, ModLoader.addOverride("/terrain.png", "/tjaden/blocks/trunk.png")).setHardness(0.6F).setResistance(2.0F).setBlockName("Fireproofwood");
}
public String Version()
{
return "Fireproofwood 1.0";
}
}
public class mod_Fireproofplank extends BaseMod
{
public mod_Fireproofplank()
{
ModLoader.RegisterBlock(Fireproofplank);
ModLoader.AddName(Fireproofplank, "Fire Proofed Plank");
ModLoader.AddRecipe(new ItemStack(Fireproofplank, 4), new Object[] {
"#X#", Character.valueOf('#'), fireproofwood, Character.valueOf('X'), Item.redstone
});
}
public static Block Fireproofplank;
static
{
Fireproofplank = new BlockFireproofplank(110, ModLoader.addOverride("/terrain.png", "/tjaden/blocks/wood.png")).setHardness(0.5F).setResistance(0.5F).setBlockName("Fireproofplank");
}
public String Version()
{
return "Fireproofplank 1.0";
}
}
And then the two Block files are called:
"BlockFireproofwood.java"
"BlockFireproofplank.java"
Sorry this is turning out to be a right pain.
#49
Posted 13 May 2011 - 09:30 PM
#50
Posted 13 May 2011 - 09:33 PM
#51
Posted 13 May 2011 - 11:37 PM
#52
Posted 14 May 2011 - 01:04 AM
#53
Posted 14 May 2011 - 01:11 AM
== MCP v3.1 == > Recompiling client... "C:\Program Files\Java\jdk1.6.0_20\bin\javac.exe" -g -verbose -classpath "jars/b in/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\minecraft\isom\*.java src/minecraft\net\minecraft\src\*. java conf/patches/*.java failed. Return code : 1 == ERRORS FOUND == src\minecraft\net\minecraft\src\mod_ImpureDiamond.java:5: cannot find symbol symbol: class BaseMod public class mod_ImpureDiamond extends BaseMod ^ src\minecraft\net\minecraft\src\mod_ImpureDiamond.java:16: cannot find symbol symbol : class Block location: class net.minecraft.source.mod_ImpureDiamond public static Block impurediamond; ^ src\minecraft\net\minecraft\src\mod_ImpureDiamond.java:5: duplicate class: net.m inecraft.source.mod_ImpureDiamond public class mod_ImpureDiamond extends BaseMod ^ src\minecraft\net\minecraft\src\BlockImpureDiamond.java:13: cannot access net.mi necraft.src.mod_ImpureDiamond bad class file: src\minecraft\net\minecraft\src\mod_ImpureDiamond.java file does not contain class net.minecraft.src.mod_ImpureDiamond Please remove or make sure it appears in the correct subdirectory of the classpa th. return mod_ImpureDiamond.ImpureDiamond.blockID; ^ 4 errors ================== > Done in 2.36 seconds > Recompiling server... !! Can not find server sources !! Press any key to continue . . .
help would be appreciated, but its still a good tutorial (I like how its a vid so we can follow everything you do and do the same for ours)
EDIT: fixed it, I must have screwed something up in the coding, because I copied yours into mine and just changed names and it worked fine...
EDIT2: Thanks so much for the tut, it got me started into modding
Thank you for the tutorial.
#54
Posted 14 May 2011 - 05:03 AM
reobfuscate it, it freaks out and gives me this. :S

Any ideas?
I'm going to try redownloading MCP and some other stuff... :S
#55
Posted 14 May 2011 - 05:19 AM
MiniatureLimo said:
reobfuscate it, it freaks out and gives me this. :S

Any ideas?
I'm going to try redownloading MCP and some other stuff... :S
#56
Posted 14 May 2011 - 05:42 AM
Me being a complete idiot.
Now it sits at 1 error, that being it says:
Error Log said:
public class mod_SlimeBlock extends BaseMod;
What I can gather is it wants a curved bracket on the " public class mod_[mod name] extends BaseMod; " line, but where?
#57
Posted 14 May 2011 - 07:24 AM
#58
Posted 14 May 2011 - 09:08 AM
#59
Posted 14 May 2011 - 04:08 PM
eejin said:
#60
Posted 14 May 2011 - 04:27 PM
Joshj5hawk said:
eejin said:
i think he was suggesting that you make more tutorials about making a new ore or making new mobs
Curse
MMO-Champion
WowStead
Arena Junkies
Minecraft Forums
DarthHater
Diablo Fans
Terraria Online











