Welche java version hast du den ??Quote:
Ich hab ein paar Problemchen : D
1) Wenn ich bei der Installation decompile ausführe kommt bei mir:
== Errors found ==
2out of 2 hunks ignored -- saving rejects to file
´net\minecraft \src\IntegratedSer#`
das:
1 out of 1 hunk FAILED -- saving rejects to file 'net\minecraft\src\RenderBlocks
.#'
kommt hingegen nicht.
2)Wenn ich nun eclipse starte steht unten schon die warnung:
Java Build Path Problems (1 item)
Description Resource Path Location Type
Build path specifies execution environment JavaSE-1.6.
There are no JREs installed in the workspace that are strictly compatible
with this environment. Client Build path JRE System Library Problem
Wenn ich nun den Code reinschreibe kommen unten mehrere Problem Meldungen
hauptsächlich: Block cannot be resolved.
3) Wenn ich das ganze nun starte stürzt Minecraft ab und es kommt folgendes Log:
java.lang.RuntimeException: java.lang.Exception: Image not found: /tutorial/block/rubin_erz.png
at net.minecraft.src.ModLoader.registerAllTextureOver rides(ModLoader.java:1607)
at net.minecraft.src.ModLoader.onTick(ModLoader.java: 1163)
at net.minecraft.src.EntityRendererProxy.updateCamera AndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecra ft.java:857)
at net.minecraft.client.Minecraft.run(Minecraft.java: 751)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: /tutorial/block/rubin_erz.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.ja va:1080)
at net.minecraft.src.ModLoader.registerAllTextureOver rides(ModLoader.java:1599)
... 5 more
Quote:
Wie kann man verschiedene Hölzer machen z.B.
"XXX", "XXX", "XXX", Character.valueOf('X'), Block.Spruceplanks
});
das ich dann NUR durch ein bestimmten Woodplank was bekomme wäre cool wenn ihr schnell antwortet
ModLoader.AddRecipe(new ItemStack(Block.DEINBLOCK, 1), new Object[] {
"X", Character.valueOf('X'), new ItemStack(Block.planks, 1, 1)
});
ModLoader.AddRecipe(new ItemStack(Block.DEINBLOCK, 1), new Object[] {
"X", Character.valueOf('X'), new ItemStack(Block.planks, ANZAHL, STRING)
});
Du musst mit Gimp oder Photoshop ein Bild erstellen das unter /mcp/eclipse/tutorial/block zu finden ist und dann auch Rubin_erz.png heißt es MUSS PNG sein :)Quote:
Ich hab ein paar Problemchen : D
1) Wenn ich bei der Installation decompile ausführe kommt bei mir:
== Errors found ==
2out of 2 hunks ignored -- saving rejects to file
´net\minecraft \src\IntegratedSer#`
das:
1 out of 1 hunk FAILED -- saving rejects to file 'net\minecraft\src\RenderBlocks
.#'
kommt hingegen nicht.
2)Wenn ich nun eclipse starte steht unten schon die warnung:
Java Build Path Problems (1 item)
Description Resource Path Location Type
Build path specifies execution environment JavaSE-1.6.
There are no JREs installed in the workspace that are strictly compatible
with this environment. Client Build path JRE System Library Problem
Wenn ich nun den Code reinschreibe kommen unten mehrere Problem Meldungen
hauptsächlich: Block cannot be resolved.
3) Wenn ich das ganze nun starte stürzt Minecraft ab und es kommt folgendes Log:
java.lang.RuntimeException: java.lang.Exception: Image not found: /tutorial/block/rubin_erz.png
at net.minecraft.src.ModLoader.registerAllTextureOver rides(ModLoader.java:1607)
at net.minecraft.src.ModLoader.onTick(ModLoader.java: 1163)
at net.minecraft.src.EntityRendererProxy.updateCamera AndRender(EntityRendererProxy.java:21)
at net.minecraft.client.Minecraft.runGameLoop(Minecra ft.java:857)
at net.minecraft.client.Minecraft.run(Minecraft.java: 751)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.Exception: Image not found: /tutorial/block/rubin_erz.png
at net.minecraft.src.ModLoader.loadImage(ModLoader.ja va:1080)
at net.minecraft.src.ModLoader.registerAllTextureOver rides(ModLoader.java:1599)
... 5 more
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(256);
int randPosZ = chunkZ + rand.nextInt(16);
if(world.getBlockId(randPosX, randPosY, randPosZ) == Block.grass.blockID) {
(new WorldGenFlowers(blueflower.blockID)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
}
//Gen Rubinerz
public void generateSurface(World world, Random rand, int chunkX, int chunkZ){
for(int i = 0; i < (13); i++) {
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(256);
int randPosZ = chunkZ + rand.nextInt(16);
if(world.getBlockId(randPosX, randPosY, randPosZ) == Block.grass.blockID) {
(new WorldGenFlowers(blueflower.blockID)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
}
//Gen Rubinerz
public void generateSurface(World world, Random rand, int chunkX, int chunkZ){
for(int i = 0; i < (13); i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(world.getHeight());
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(rubinerz.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
//Gen Saphirerz
public void generateSurface1(World world, Random rand, int chunkX, int chunkZ){
for(int i = 0; i < (9); i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(world.getHeight());
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(saphirerz.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(256);
int randPosZ = chunkZ + rand.nextInt(16);
if(world.getBlockId(randPosX, randPosY, randPosZ) == Block.grass.blockID) {
(new WorldGenFlowers(blueflower.blockID)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
}
//Gen BlueFlower
public void generateSurface2(World world, Random rand, int chunkX, int chunkZ){
for(int i = 0; i < (13); i++) {
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(256);
int randPosZ = chunkZ + rand.nextInt(16);
if(world.getBlockId(randPosX, randPosY, randPosZ) == Block.grass.blockID) {
(new WorldGenFlowers(blueflower.blockID)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
}
//Gen Rubinerz
public void generateSurface(World world, Random rand, int chunkX, int chunkZ){
for(int i = 0; i < (13); i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(world.getHeight());
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(rubinerz.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
//Gen Saphirerz
public void generateSurface1(World world, Random rand, int chunkX, int chunkZ){
for(int i = 0; i < (9); i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(world.getHeight());
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(saphirerz.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
Warum willst du items generieren oder hab ich da was falsch verstanden ihn deiner frageQuote:
Hey ich habe eine Frage wenn ich ein weiteren GEN für Items mache fordert Eclipse mich auf
aus einen der generatesurface einen generatesurface1 zumachen und bis jetzt habe ich die nicht gefunden nur den mit den normalen generatesurface
Natürlich stürzt das nicht ab oder so kann ganz normal starten.
Hab ich was falsch gemacht oder muss ich die Erze/Blume weitersuchen?
Hier nochmal meine codes(ohne den public static dingens undso )
PHP Code:int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(256);
int randPosZ = chunkZ + rand.nextInt(16);
if(world.getBlockId(randPosX, randPosY, randPosZ) == Block.grass.blockID) {
(new WorldGenFlowers(blueflower.blockID)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
}
//Gen BlueFlower
public void generateSurface2(World world, Random rand, int chunkX, int chunkZ){
for(int i = 0; i < (13); i++) {
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(256);
int randPosZ = chunkZ + rand.nextInt(16);
if(world.getBlockId(randPosX, randPosY, randPosZ) == Block.grass.blockID) {
(new WorldGenFlowers(blueflower.blockID)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
}
//Gen Rubinerz
public void generateSurface(World world, Random rand, int chunkX, int chunkZ){
for(int i = 0; i < (13); i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(world.getHeight());
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(rubinerz.blockID, 4)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}
//Gen Saphirerz
public void generateSurface1(World world, Random rand, int chunkX, int chunkZ){
for(int i = 0; i < (9); i++)
{
int randPosX = chunkX + rand.nextInt(16);
int randPosY = rand.nextInt(world.getHeight());
int randPosZ = chunkZ + rand.nextInt(16);
(new WorldGenMinable(saphirerz.blockID, 8)).generate(world, rand, randPosX, randPosY, randPosZ);
}
}