Skytanic Posted July 4, 2014 Posted July 4, 2014 How would i go about make a world gen file for liquids that only generates the liquid 1-2 levels deep at the surface (similar to lava in vanilla or oil in certain mods)? I can't seem to find a relevant topic on this so any help is appreciated! Quote http://i.imgur.com/bkongSe.png[/img]
Elyon Posted July 4, 2014 Posted July 4, 2014 Inherit from WorldGenLiquids, Override generate , set the blocks you need in there. Give it a go, show us what you come up with and any issues that arise. Become inspired by vanilla worldgen classes Quote
Skytanic Posted July 5, 2014 Author Posted July 5, 2014 Inherit from WorldGenLiquids, Override generate , set the blocks you need in there. Give it a go, show us what you come up with and any issues that arise. Become inspired by vanilla worldgen classes I should really look at vanilla classes more often before bothering you helpful people Thanks for the tip! Quote http://i.imgur.com/bkongSe.png[/img]
Skytanic Posted July 7, 2014 Author Posted July 7, 2014 Can you please post your code here? I actually haven't got it working. I've extended the correct class and overloaded generate, however I'm not sure how to register a fluidworldgen as registering it as a normal world gen throws errors. Quote http://i.imgur.com/bkongSe.png[/img]
Guest Abrynos Posted July 7, 2014 Posted July 7, 2014 I made this too. But it doesn't work. That's why I wanted to see your code. Please send it to me if you got it. Quote
makromoo Posted July 7, 2014 Posted July 7, 2014 FluidRegistry.registerFluid(yourFluid); Source: http://www.minecraftforge.net/wiki/Create_a_Fluid Quote
Guest Abrynos Posted July 8, 2014 Posted July 8, 2014 The problem is not that we don't have our fluid! The fluid already exists, but it doesn't get generatet inside the world. Quote
Recommended Posts
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.