Jump to content

Recommended Posts

Posted

So I'm having trouble with registering the biomes for my dimensions. Each dimension only has one biome, but each of them generates in the overworld instead of only generating in their respective dimensions, which they correctly generate in. I used this method to register my biomes, but after some research I found it to be the incorrect way to register dimension biomes, but it's the proper way to register overworld biomes.

 

I guess the proper way is to subscribe an IForgeRegistry event that registers the individual biomes like this: 

    @SubscribeEvent
    public static void registerBiomes(IForgeRegistry<Biome> iForgeRegistry) {
        IForgeRegistry<Biome> registry = iForgeRegistry;
        registry.registerAll(BIOME_1, BIOME_2...)
    }

However, when I use this instead, the biomes don't get registered at all. Any help?

Posted

I believe you should be creating your biomes in the event too.

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
11 hours ago, Dizzlepop12 said:

the biomes don't get registered at all.

Yes they do get registered. That is the whole purpose of the registry event. They just don't generate. There is a difference. A registered object doesn't necessairly need to appear in the game at all.

Also as @Cadiboo said instantinate your biomes in the event too.

 

BiomeManager.addBiome(biomeType, new BiomeEntry(biome, 10));
BiomeManager.addSpawnBiome(biome);

This is why your biomes were spawning in the first place. This adds the biome to the biome entry list that the biomes will get pulled from. The second line allows the player's spawn biome to be yours.

 

To have your biome spawn in your dimension you need to change the BiomeProvider in your WorldProvider and make that BiomeProvider have your biome as a possible biome to spawn. See WorldProviderEnd#init for an example of a single biome per dimension that only generates in that dimension or look at BiomeProvider itself to see how it keeps an array of biomes that can be generated.

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.