Posted October 12, 201510 yr 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?
October 17, 201510 yr 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?
October 17, 201510 yr Have you tried looking at a tutorial? If not, I would recommend bedrockminer's tutorials. http://bedrockminer.jimdo.com/modding-tutorials/basic-modding-1-8/world-generation/
October 17, 201510 yr 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. 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.