Jump to content

Recommended Posts

Posted

Hello. This is the second time that I have gotten this error report. It seems to happen whenever I try to add world generation. Even when I take all the mods affiliated with world generation out of the build path, it still happens.

 

Here is the error:

 

  Reveal hidden contents

 

 

WorldGenGrapeTree.java:

 

  Reveal hidden contents

 

Posted

 

  Reveal hidden contents

 

Well first, you are creating 10 instances of your class within the class.

And your "grape tree", should it spawn at the lava level ? underground ?

Posted
  On 8/5/2013 at 6:31 PM, GotoLink said:

 

  Reveal hidden contents

 

Well first, you are creating 10 instances of your class within the class.

And your "grape tree", should it spawn at the lava level ? underground ?

 

So then, should I raise the y coordinates to 256 to where I end up with something like this instead?

 

int yCoord = random.nextInt(256);

 

EDIT: Thank you, that helped. Now I'm getting an error with a different part of the code where I'm trying to make sure that the block below is dirt:

 

Error:

 

  Reveal hidden contents

 

 

The troubled lines:

Line 66:

k1 = par1World.getBlockId(l1, i1 -1, j1);

 

Line 175:

(new WorldGenGrapeTree(false, 9, 0, 0, false)).generate(world, random, xCoord, yCoord, zCoord);

 

Entire code available in first post.

Posted

No actually, I would go with this:

int xCoord, yCoord, zCoord;
for(int i = 0; i < 10; i++)
{
       xCoord = chunkX + random.nextInt(16);
       yCoord = 50 + random.nextInt(206);//try generate between 50 and 256
       zCoord = chunkZ + random.nextInt(16);
if(generate(world, random, xCoord, yCoord, zCoord))
       break;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.