Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Registrations of Items, blocks (Itemblocks) and sounds functions.
But the Biome spawnen no more.

 

======================================================

In 1.11.2:

 

public static void registerBiome(Biome biome, BiomeType type, boolean isSpawnBiome, int weight) {
        GameRegistry.register(biome); //<-------------not in 1.12
        BiomeManager.addBiome(type, new BiomeEntry(biome, weight));
        if(isSpawnBiome){
            BiomeManager.addSpawnBiome(biome);
        }
        BiomeManager.addStrongholdBiome(biome);
   }

======================================================

In 1.12?

 

@SubscribeEvent
    public void registerBiome(RegistryEvent.Register<Biome> event) {
        event.getRegistry().registerAll(
            //================================
            biome1, biome2
            //================================
        );
    }

 

Or must be registered biome other?

  • Author

I have this in another method. But even if I write it directly in this method, the Biome are missed in the old world.

  • Author

In Mod Main Class:

 

public static Biome Meadow;

 

@EventHandler
    public void Init(FMLInitializationEvent event){  

 

Meadow = new Biome_Meadow(new BiomeProperties("Meadow").setBaseHeight(0.0F).setHeightVariation(0.2F).setTemperature(0.5F));

 

regi_biomes.registerOverworldBiomes(Meadow, BiomeType.WARM, true, 6);

MinecraftForge.EVENT_BUS.register(new regi_biomes());

 

}//end of Init

 

//=========================================================

And in regi_biomes Class:

 

public class regi_biomes {

 

  public static void registerOverworldBiomes(Biome biome, BiomeType type, boolean isSpawnBiome, int weight) {
        
        BiomeManager.addBiome(type, new BiomeEntry(biome, weight));
        if(isSpawnBiome){
            BiomeManager.addSpawnBiome(biome);
        }
        BiomeManager.addStrongholdBiome(biome);
    }

 

 

@SubscribeEvent
    public void registerBiome(RegistryEvent.Register<Biome> event) {
        event.getRegistry().registerAll(
            //================================
            ModMainClass.Meadow
            //================================
        );

  }

}

  • Author

Thank you very much. In the PreInit work it.

What is strange, since 1.8 it was with me in the Init an area and functioned. And from 1.12 it has to go in the PreInit... Central issue functions. Thanks to you.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.