tutorial:fluids
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:fluids [2019/09/24 11:28] – client side operations (rendering) alexiy | tutorial:fluids [2019/09/24 11:43] – lake generation alexiy | ||
---|---|---|---|
Line 337: | Line 337: | ||
Then what's left to do is to create necessary Json files and textures, but you should know how to do that at this point. | Then what's left to do is to create necessary Json files and textures, but you should know how to do that at this point. | ||
+ | |||
+ | ===== Generation in a world ===== | ||
+ | |||
+ | To make acid lakes generate in the world, you can use **net.minecraft.world.gen.feature.LakeFeature**, | ||
+ | <code java> | ||
+ | | ||
+ | LakeFeature acidFeature=Registry.register(Registry.FEATURE, | ||
+ | |||
+ | </ | ||
+ | Then put it into desired biomes to generate: | ||
+ | <code java> | ||
+ | // I tell it to generate like water lakes, with a rarity of 40 (the higher is the number, the lesser is the generation chance): | ||
+ | Biomes.FOREST.addFeature(GenerationStep.Feature.LOCAL_MODIFICATIONS, | ||
+ | </ | ||
+ | This is the end of the tutorial. | ||
+ |
tutorial/fluids.txt · Last modified: 2023/05/04 11:31 by solidblock