Problème lors de la recompilation

Neo_plasm

Aventurier
19 Septembre 2011
4
0
1
Bonjour à tous et à toutes!
J'ai commencé à créer un mod mais hélàs j'ai eu plusieurs erreurs lors de la recompilation.

Voici le code de recompile.bat:

== MCP v4.4 ==
> Recompiling client...
"C:\Program Files\Java\jdk1.7.0\bin\javac.exe" -g -source 1.6 -target 1.6 -class
path "lib/;lib/*;jars/bin/minecraft.jar;jars/bin/jinput.jar;jars/bin/lwjgl.jar;j
ars/bin/lwjgl_util.jar" -sourcepath src/minecraft -d bin/minecraft src/minecraft
\*.java src/minecraft\net\minecraft\client\*.java src/minecraft\net\minecraft\is
om\*.java src/minecraft\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_FantasyOre.java:2: error: duplicate class: n
et.minecraft.src.mod_FantasyOre
public class mod_FantasyOre extends BaseMod
^
src\minecraft\mod_FantasyOre.java:2: error: cannot find symbol
public class mod_FantasyOre extends BaseMod
^
symbol: class BaseMod
src\minecraft\mod_FantasyOre.java:11: error: cannot find symbol
BlockScarlatiteOre(99,224)).setHardness(2.0F).setResistance(10F)
^
symbol: class BlockScarlatiteOre
location: class mod_FantasyOre
src\minecraft\mod_FantasyOre.java:6: error: cannot find symbol
ModLoader.RegisterBlock(scarlatiteOre);
^
symbol: variable ModLoader
location: class mod_FantasyOre
src\minecraft\mod_FantasyOre.java:7: error: cannot find symbol
ModLoader.AddRecipe(new ItemStack(scarlatiteOre, 1), new Object[]
^
symbol: variable ModLoader
location: class mod_FantasyOre
5 errors
1 warning
==================
> Done in 7.87 seconds
> Recompiling server...
!! Can not find server sources !!
Appuyez sur une touche pour continuer...

Voici celui de BlockScarlatiteOre.java:

package net.minecraft.src;
import java.util.Random;
public class BlockScarlatiteOre extends Block
{
public BlockScarlatiteOre(int i, int j)
{
super(i, j, Material.rock);
}
public int idDropped(int i, Random random)
{
return mod_FantasyOre.scarlatiteOre.blockID;
}
}

Et enfin celui de mod_FantasyOre.java:

package net.minecraft.src;
public class mod_FantasyOre extends BaseMod
{
public mod_FantasyOre()
{
ModLoader.RegisterBlock(scarlatiteOre);
ModLoader.AddRecipe(new ItemStack(scarlatiteOre, 1), new Object[]
{"#",Character.valueOf('#'), Block.cobblestone});
}
public static final Block scarlatiteOre = (new
BlockScarlatiteOre(99,224)).setHardness(2.0F).setResistance(10F)
.setStepSound(Block.soundStoneFootstep);
public String Version()
{
return "1.5_01";
}
}

En espérant que l'un d'entre vous puisse m'aider, je vous remercie d'avance!