Jump to content

Recommended Posts

Posted

I need to get a biome to generate in a very specific shape, and as far as I've found there isn't any way to change much about the generation noise from all the data files. So basically I was just wondering what classes are used for generating the noise and where they're registered so I can try and make a new noise type.

Posted

there unfortunately no easy way to do this, the BiomeLayer is generate in the Layers class, if you want to modify the Layer you will need a custom one, you also need a custom BiomeSource (old: BiomeProvider), which you can set in the dimension.json file

Posted

I couldn't really figure out how to do that, but I did find the ChunkGenerator class and tried to make my own class extending it, I have no idea how to register it though as that seems to be done inside of the ChunkGenerator class in a static {} thing (I'm not sure the proper name). So is there any forge registry for registering a ChunkGenerator

Posted

use the vanilla registry in FMLCommonSetupEvent, in which dimension do you want to modify the Biome generation, a custom one? can you please show the your .json files you currently use. 

Posted (edited)

Okay the repo of your mod makes a bit easier, as I already told you, you only need a custom BiomeProvider, you can then register the Provider in FMLCommonSetupEvent using the vanilla Registry system then you can replace this line with the ID of your BiomeProvider

Edited by Luis_ST
Posted

Ah okay I now understand what you mean, and I feel like this'll be obvious but how do I register the provider? You say using the vanilla registry system but the only way I see one registered in the vanilla things requires arguments from something being executed

 

Posted

This?

private static Path createPath(Path p_244199_0_, ResourceLocation p_244199_1_) {
	return p_244199_0_.resolve("reports/biomes/" + p_244199_1_.getPath() + ".json");
}

If so, I'm not sure what I should put the path to

  • 2 weeks later...

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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