Jump to content

How to Make Biomes/Structures Only Generate within Certain Coordinate Ranges


coleam

Recommended Posts

Hello!

I'm working on a Forge mod for 1.20.1 where I have a bunch of custom structures that I only want to generate in certain parts of the world. If I could make my custom biomes generate only within certain coordinate range, even better!

For example, I have a custom "trading post" structure that I only want to generate between Z=0 and Z=-5000.

I've tried messing around with creating a custom chunk generator, but I can't figure out how to actually register the chunk generator. I found in Fabric you can simply use:

Registry.register(Registry.CHUNK_GENERATOR, new Identifier("wiki-example", "example"), ExampleChunkGenerator.CODEC);

But in Forge the Registry object doesn't have a bunch of different registries to choose from, and the ForgeRegistries object doesn't have a chunk generator registry.

Any help with this would be greatly appreciated!

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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