MC Modding
Please register and join the community!


Join the forum, it's quick and easy

MC Modding
Please register and join the community!
MC Modding
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[Answered]Ore Generation Error

3 posters

MC Modding :: Help :: Help

Go down

[Answered]Ore Generation Error Empty [Answered]Ore Generation Error

Post by ejmejm Sat Oct 29, 2011 1:50 am

Please tell me what i'm doing wrong.

My code...
Code:
 public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
    {
        for(int i = 0; i < 20; i++)
        {
            int randPosX = chunkX + rand.nextInt(16);
            int randPosY = rand.nextInt(90);
            int randPosZ = chunkZ + rand.nextInt(16);
            (new WorldGenMinable(mod_GhostOre.GhostOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
        }
    }

And I would post the errors but i don't know how to copy things in terminal.

-Thanks for the help


Last edited by ejmejm on Sun Oct 30, 2011 6:10 am; edited 2 times in total (Reason for editing : Answered!)

ejmejm
Member

Posts : 11
Join date : 2011-10-29

Back to top Go down

[Answered]Ore Generation Error Empty Re: [Answered]Ore Generation Error

Post by breakyorself Sat Oct 29, 2011 6:38 am

go to your MCP logs to get error report.
breakyorself
breakyorself
Member

Posts : 60
Join date : 2011-10-19

Back to top Go down

[Answered]Ore Generation Error Empty Re: [Answered]Ore Generation Error

Post by jesshankin22 Sat Oct 29, 2011 9:15 am

incase you didn't know...

Code:
package net.minecraft.src;

import java.util.Random;

public class mod_RERE extends BaseMod
{
  public static Block rereore = new Blockrereore(190, 0).setHardness(1.0F).setResistance(6000.0F).setLightValue(1.0F).setBlockName("rereore");
 
  public String Version()
  {
      return "1.8.1";
  }
 
  public mod_RERE()
  {
      ModLoader.RegisterBlock(rereore);
      rereore.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/RERE/rereore.png");
      ModLoader.AddName(rereore, "RE-RE ore");
      ModLoader.AddRecipe(new ItemStack(rereore, 1), new Object[] {
      "**", "**", Character.valueOf('*'), Block.dirt
      });

 
  }
  public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
  {
      for(int i = 0; i < 8; i++)
      {
          int randPosX = chunkX + rand.nextInt(16);
          int randPosY = rand.nextInt(16);
          int randPosZ = chunkZ + rand.nextInt(16);
          (new WorldGenMinable(mod_RERE.rereore.blockID, 7)).generate(world, rand, randPosX, randPosY, randPosZ);
      }
  }
}
this is what it should look like when it's all said and done. It should be at the end of youre mod_Namehere class.


Last edited by jesshankin22 on Sat Oct 29, 2011 9:17 am; edited 1 time in total (Reason for editing : mistake in code thing)

jesshankin22
Member

Posts : 47
Join date : 2011-10-24

Back to top Go down

[Answered]Ore Generation Error Empty Re: [Answered]Ore Generation Error

Post by ejmejm Sat Oct 29, 2011 4:41 pm

Ok, here are my errors.


Code:

2011-10-29 08:39 -    commands.recompile - DEBUG - recompile: '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\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/patches/*.java'
2011-10-29 08:39 -    commands.recompile - ERROR - 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\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/patches/*.java failed.
2011-10-29 08:39 -    commands.recompile - ERROR - Return code : 1
2011-10-29 08:39 -    commands.recompile - DEBUG - warning: [options] bootstrap class path not set in conjunction with -source 1.6
2011-10-29 08:39 -    commands.recompile - DEBUG - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:1: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - DEBUG - public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
2011-10-29 08:39 -    commands.recompile - DEBUG - ^
2011-10-29 08:39 -    commands.recompile - DEBUG - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:3: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - DEBUG - for(int i = 0; i < 20; i++)
2011-10-29 08:39 -    commands.recompile - DEBUG - ^
2011-10-29 08:39 -    commands.recompile - DEBUG - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:3: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - DEBUG - for(int i = 0; i < 20; i++)
2011-10-29 08:39 -    commands.recompile - DEBUG - ^
2011-10-29 08:39 -    commands.recompile - DEBUG - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:6: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - DEBUG - int randPosY = rand.nextInt(90);
2011-10-29 08:39 -    commands.recompile - DEBUG - ^
2011-10-29 08:39 -    commands.recompile - DEBUG - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:7: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - DEBUG - int randPosZ = chunkZ + rand.nextInt(16);
2011-10-29 08:39 -    commands.recompile - DEBUG - ^
2011-10-29 08:39 -    commands.recompile - DEBUG - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:8: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - DEBUG - (new WorldGenMinable(mod_GhostOre.GhostOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
2011-10-29 08:39 -    commands.recompile - DEBUG - ^
2011-10-29 08:39 -    commands.recompile - DEBUG - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:9: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - DEBUG - }
2011-10-29 08:39 -    commands.recompile - DEBUG - ^
2011-10-29 08:39 -    commands.recompile - DEBUG - 7 errors
2011-10-29 08:39 -    commands.recompile - DEBUG - 1 warning
2011-10-29 08:39 -    commands.recompile - ERROR -
2011-10-29 08:39 -    commands.recompile - ERROR - == ERRORS FOUND ==
2011-10-29 08:39 -    commands.recompile - ERROR -
2011-10-29 08:39 -    commands.recompile - ERROR - warning: [options] bootstrap class path not set in conjunction with -source 1.6
2011-10-29 08:39 -    commands.recompile - ERROR - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:1: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - ERROR - public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
2011-10-29 08:39 -    commands.recompile - ERROR - ^
2011-10-29 08:39 -    commands.recompile - ERROR -
2011-10-29 08:39 -    commands.recompile - ERROR - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:3: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - ERROR - for(int i = 0; i < 20; i++)
2011-10-29 08:39 -    commands.recompile - ERROR - ^
2011-10-29 08:39 -    commands.recompile - ERROR -
2011-10-29 08:39 -    commands.recompile - ERROR - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:3: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - ERROR - for(int i = 0; i < 20; i++)
2011-10-29 08:39 -    commands.recompile - ERROR - ^
2011-10-29 08:39 -    commands.recompile - ERROR -
2011-10-29 08:39 -    commands.recompile - ERROR - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:6: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - ERROR - int randPosY = rand.nextInt(90);
2011-10-29 08:39 -    commands.recompile - ERROR - ^
2011-10-29 08:39 -    commands.recompile - ERROR -
2011-10-29 08:39 -    commands.recompile - ERROR - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:7: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - ERROR - int randPosZ = chunkZ + rand.nextInt(16);
2011-10-29 08:39 -    commands.recompile - ERROR - ^
2011-10-29 08:39 -    commands.recompile - ERROR -
2011-10-29 08:39 -    commands.recompile - ERROR - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:8: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - ERROR - (new WorldGenMinable(mod_GhostOre.GhostOre.blockID, 5)).generate(world, rand, randPosX, randPosY, randPosZ);
2011-10-29 08:39 -    commands.recompile - ERROR - ^
2011-10-29 08:39 -    commands.recompile - ERROR -
2011-10-29 08:39 -    commands.recompile - ERROR - src\minecraft\net\minecraft\src\mod_GhostOreGen.java:9: error: class, interface, or enum expected
2011-10-29 08:39 -    commands.recompile - ERROR - }
2011-10-29 08:39 -    commands.recompile - ERROR - ^
2011-10-29 08:39 -    commands.recompile - ERROR -
2011-10-29 08:39 -    commands.recompile - ERROR - 7 errors
2011-10-29 08:39 -    commands.recompile - ERROR - 1 warning
2011-10-29 08:39 -    commands.recompile - ERROR - ==================
2011-10-29 08:39 -    commands.recompile - ERROR -
2011-10-29 08:39 -  recompile.main - INFO - > Done in 3.17 seconds
2011-10-29 08:39 -  recompile.main - INFO - > Recompiling server...
2011-10-29 08:39 -    commands.checksources - WARNING - !! Can not find server sources !!


ejmejm
Member

Posts : 11
Join date : 2011-10-29

Back to top Go down

[Answered]Ore Generation Error Empty Re: [Answered]Ore Generation Error

Post by ejmejm Sat Oct 29, 2011 4:48 pm

I just put my generating ores part in my mod_name and i get 1 error 1 warning...

Code:

2011-10-29 08:44 -    commands.__init__ - INFO - == MCP v4.4 ==
2011-10-29 08:44 -    commands.__init__ - DEBUG - OS : win32
2011-10-29 08:44 -  recompile.main - INFO - > Recompiling client...
2011-10-29 08:44 -    commands.recompile - DEBUG - recompile: '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\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/patches/*.java'
2011-10-29 08:45 -    commands.recompile - ERROR - 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\minecraft\isom\*.java src/minecraft\net\minecraft\src\*.java  conf/patches/*.java failed.
2011-10-29 08:45 -    commands.recompile - ERROR - Return code : 1
2011-10-29 08:45 -    commands.recompile - DEBUG - warning: [options] bootstrap class path not set in conjunction with -source 1.6
2011-10-29 08:45 -    commands.recompile - DEBUG - src\minecraft\net\minecraft\src\mod_GhostOre.java:21: error: cannot find symbol
2011-10-29 08:45 -    commands.recompile - DEBUG - public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
2011-10-29 08:45 -    commands.recompile - DEBUG - ^
2011-10-29 08:45 -    commands.recompile - DEBUG - symbol:  class Random
2011-10-29 08:45 -    commands.recompile - DEBUG - location: class mod_GhostOre
2011-10-29 08:45 -    commands.recompile - DEBUG - Note: src\minecraft\net\minecraft\src\NetworkMasterThread.java uses or overrides a deprecated API.
2011-10-29 08:45 -    commands.recompile - DEBUG - Note: Recompile with -Xlint:deprecation for details.
2011-10-29 08:45 -    commands.recompile - DEBUG - Note: Some input files use unchecked or unsafe operations.
2011-10-29 08:45 -    commands.recompile - DEBUG - Note: Recompile with -Xlint:unchecked for details.
2011-10-29 08:45 -    commands.recompile - DEBUG - 1 error
2011-10-29 08:45 -    commands.recompile - DEBUG - 1 warning
2011-10-29 08:45 -    commands.recompile - ERROR -
2011-10-29 08:45 -    commands.recompile - ERROR - == ERRORS FOUND ==
2011-10-29 08:45 -    commands.recompile - ERROR -
2011-10-29 08:45 -    commands.recompile - ERROR - warning: [options] bootstrap class path not set in conjunction with -source 1.6
2011-10-29 08:45 -    commands.recompile - ERROR - src\minecraft\net\minecraft\src\mod_GhostOre.java:21: error: cannot find symbol
2011-10-29 08:45 -    commands.recompile - ERROR - public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
2011-10-29 08:45 -    commands.recompile - ERROR - ^
2011-10-29 08:45 -    commands.recompile - ERROR -
2011-10-29 08:45 -    commands.recompile - ERROR - symbol:  class Random
2011-10-29 08:45 -    commands.recompile - ERROR - location: class mod_GhostOre
2011-10-29 08:45 -    commands.recompile - ERROR - 1 error
2011-10-29 08:45 -    commands.recompile - ERROR - 1 warning
2011-10-29 08:45 -    commands.recompile - ERROR - ==================
2011-10-29 08:45 -    commands.recompile - ERROR -
2011-10-29 08:45 -  recompile.main - INFO - > Done in 3.43 seconds
2011-10-29 08:45 -  recompile.main - INFO - > Recompiling server...
2011-10-29 08:45 -    commands.checksources - WARNING - !! Can not find server sources !!


ejmejm
Member

Posts : 11
Join date : 2011-10-29

Back to top Go down

[Answered]Ore Generation Error Empty Re: [Answered]Ore Generation Error

Post by jesshankin22 Sat Oct 29, 2011 11:12 pm

this looks like you didn't make your path to java JDK correctly. you might want to try to restart completely and try writing your class path. but before you do that, type in CMP to your search bar and do "run javac" and see if it recognizes the class path

jesshankin22
Member

Posts : 47
Join date : 2011-10-24

Back to top Go down

[Answered]Ore Generation Error Empty Re: [Answered]Ore Generation Error

Post by ejmejm Sat Oct 29, 2011 11:38 pm

when i type javac it works and it worked before i put in the generation part

ejmejm
Member

Posts : 11
Join date : 2011-10-29

Back to top Go down

[Answered]Ore Generation Error Empty Re: [Answered]Ore Generation Error

Post by jesshankin22 Sun Oct 30, 2011 3:36 am

hmmm. I'm sorry I really don't know what to tell ya then. hope you find the answer =/

jesshankin22
Member

Posts : 47
Join date : 2011-10-24

Back to top Go down

[Answered]Ore Generation Error Empty Re: [Answered]Ore Generation Error

Post by ejmejm Sun Oct 30, 2011 6:09 am

I fixed it! thanks anyway.

ejmejm
Member

Posts : 11
Join date : 2011-10-29

Back to top Go down

[Answered]Ore Generation Error Empty Re: [Answered]Ore Generation Error

Post by jesshankin22 Sun Oct 30, 2011 6:13 am

sorry I couldn't help ya

jesshankin22
Member

Posts : 47
Join date : 2011-10-24

Back to top Go down

[Answered]Ore Generation Error Empty Re: [Answered]Ore Generation Error

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

MC Modding :: Help :: Help

 
Permissions in this forum:
You cannot reply to topics in this forum