Jump to content

Recommended Posts

Posted

Hello modders, i had a question about world generation in a specific biome, in 1.7 i used this:

 

BiomeGenBase biomegenbase = world.getWorldChunkManager().getBiomeGenAt(chunkX, chunkZ);

if (biomegenbase == BiomeGenBase.desert)

{

for(int x = 0; x < 10; x++)

{

int i = chunkX + rand.nextInt(16);

int j = rand.nextInt(128);

int k = chunkZ + rand.nextInt(16);

pyramid.generate(world, rand, i, j, k);

}

}

 

 

but this doesn't work anymore in 1.8, thx for reading

 

Posted

there is an error,

getBiomeGenAt is changed, in 1.7.10 it was getBiomeGenAt(int x, int z), but in 1.8 it is:

getBiomeGenAt(BiomeGenBase[] listToReuse, int x, int z, int width, int length, boolean cacheFlag)

 

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.