Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.8] World Gen


Recommended Posts

I'm looking into world gen, but I'm having a difficult time understanding where I should actually start with what I want to do.


I want to create an underground stream that can spawn in any biome, yet can span multiple chunks.  I've looked at vanilla and the closest thing I could find is GenLayerRiver, but I'm not sure how it works.  Can anyone point me in the right direction of maybe a mod that does something similar, or a tutorial that could help me out?

Link to comment
Share on other sites

I've done some work on the world gen, but I'm stuck again.  I am trying to emulate the way that buildcraft adds oil resevoirs to the game, so I'm subscribing to a populate event, and then running my code when that event gets called.  The populate method in question looks like this:



public void populate(PopulateChunkEvent.Pre event) {
        boolean doGen = TerrainGen.populate(event.chunkProvider, event.world, event.rand, event.chunkX, event.chunkZ, event.hasVillageGenerated, EVENT_TYPE);

        if (!doGen) {

        generateLifestream(event.world, event.rand, event.chunkX, event.chunkZ);



Am I missing something?  Because based off of my logging, it isn't entering this populate method at all.  Do I need to register something, or am I going about this the wrong way?

Link to comment
Share on other sites

Hmm, I was thinking that there was some kind of issue with using world gen accross chunk boundaries, but with a little more messing around I got it to work .... kinda.






Just need to reverse it so that air part of the bottom half is liquid, and put it underground.  Maybe even put a little noise generation to deform the ellipsoid, but that's for another day.

Link to comment
Share on other sites

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.

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.


  • Create New...

Important Information

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