Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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?

  • Author

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:

 

 

@SubscribeEvent
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) {
            event.setResult(Result.ALLOW);
            return;
        }

        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?

  • Author

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.

 

 

HX4tAis.png

 

 

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.