Posted May 22, 20214 yr I am currently working on a mod with custom dimension. The dimension had only one biome so far, but now i would like to add more biomes to the world, which has already presented me with a few problems, which i was able to fix myself. but now I'm stuck when it comes to creating a custom biome layer. I have already looked at the vanilla code and understand it partially, unfortunately not entirely, this leads me to the following questions: how do I prevent the biome from changing on the y axis? What is the difference between the IAreaTransformers (e.g. IAreaTransformer0, IAreaTransformer1, IAreaTransformer2, ICastleTransformer, and so on)? what does the ZoomLayer do? how do i change the size of the biomes because these are currently changing very often? how exactly change the value that I put in the long function the biomes which is create/add? is there also an easy way to generate multiple biomes? I hope someone can help me because I had to find out that not many people here in the forum are familiar with world generation. Thanks for replies Edited September 13, 20214 yr by Luis_ST
September 13, 20214 yr Author 1.17 After testing a lot i found a solution for the problem, for people how have the same error i will explain here how the Layer System from vanilla works in 1.17 itrm: in the run method (of the transformer) On 5/22/2021 at 6:25 PM, Luis_ST said: how do I prevent the biome from changing on the y axis? this was a bug in my code but I just had to ignore the y value in BiomeSource#getNoiseBiome On 5/22/2021 at 6:25 PM, Luis_ST said: What is the difference between the IAreaTransformers (e.g. IAreaTransformer0, IAreaTransformer1, IAreaTransformer2, ICastleTransformer, and so on)? AreaTransformer0: can be used as base biome "layer", the parameters are: the LazyAreaContext, x pos in the area, y (z) pos in the area AreaTransformer1: transformer to add a biome "layer" to an existing AreaFactory, the parameters are: the LazyAreaContext, the Area which is create from the AreaFactory itrm the x pos in the area, y (z) pos in the area AreaTransformer2: transformer to combine two AreaFactory for example the current BiomeLayer and a ClimateLayer, the parameters are: the LazyAreaContext, the Area which in create from the first AreaFactory itrm, the Area which is create from the second AreaFactory itrm, the x pos in the area, y (z) pos in the area BishopTransformer: transformer to add a biome "layer" to an existing AreaFactory with a bit more logic, the parameters are: the LazyAreaContext, the biome id north west from the AreaFactory itrm, the biome id north east from the AreaFactory itrm, the biome id south east from the AreaFactory itrm, the biome id south west from the AreaFactory itrm, the center biome id from the AreaFactory itrm C0Transformer: can also be used as base biome "layer", the parameters are: the LazyAreaContext, biome id of the x and y (z) pos in the area with offset 0 C1Transformer: can also be used as base biome "layer", the parameters are: the LazyAreaContext, biome id of the x and y (z) pos in the area with offset 1 in x+/y+ CastleTransformer: transformer to add a biome "layer" to an existing AreaFactory with a bit more logic, the parameters are: the LazyAreaContext, the biome id north from the AreaFactory itrm, the biome id east from the AreaFactory itrm, the biome id south from the AreaFactory itrm, the biome id west from the AreaFactory itrm, the center biome id from the AreaFactory itrm On 5/22/2021 at 6:25 PM, Luis_ST said: what does the ZoomLayer do? very simple zooms the Area so biomes are larger On 5/22/2021 at 6:25 PM, Luis_ST said: how do i change the size of the biomes because these are currently changing very often? this was an error in my Layer, because i used the wrong transformer, and i used BigContext#nextRandom to get the biome On 5/22/2021 at 6:25 PM, Luis_ST said: how exactly change the value that I put in the long function the biomes which is create/add? is a simple long value, you can choose a random one or you use scheme like 1, 2, 3, 4, ... note if you use a value twice it could lead problems (particularly if you used the same Layer) On 5/22/2021 at 6:25 PM, Luis_ST said: is there also an easy way to generate multiple biomes? vanilla has only the system which is explained above and forge has unfortunately nothing I hope my explanation was helpful, if something is wrong let me know this and i will edit the post i will create soon a Example Mod about the Biome generation and the different Layers and possible implementations, when the mod is finished i will edit this post and add the link to the repo -> since Minecraft change the Biome generation, I won't publish an Example Mod for the 1.17 anymore, i will wait till the final release for 1.18.x Edited December 11, 20213 yr by Luis_ST
September 25, 20214 yr On 9/13/2021 at 3:56 PM, Luis_ST said: i will create soon a Example Mod about the Biome generation and the different Layers and possible implementations, when the mod is finished i will edit this post and add the link to the repo sorry for the question but when will the example mod be released
September 25, 20214 yr Author maybe in the coming week, currently I don't have enough the time to work on the mod but I will finish it in the next few days and publishing after adding the javadocs
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.