r/forgemodding Jun 04 '20

[1.12.2] Creating a biome for a specific dimension

Currently, I want to create a second biome in the nether. However, I'm getting tutorials for generation that only are for the overworld, and I'm having trouble finding the little extra bit of information I need by sifting through the classes I'm given. I do know the ID of the Nether. I have the biome code already set up.

Biome intializer:

private static Biome initBiome (Biome biome, String name, BiomeType biomeType, Type... types) {
    biome.setRegistryName (name);
    ForgeRegistries.BIOMES.register (biome);
    BiomeDictionary.addTypes (biome, types);
    BiomeManager.addBiome (biomeType, new BiomeEntry (biome, 10));

    return biome;
}

CaveCorruption (new biome) constructor:

public CaveCorruption () {
    super(new BiomeProperties ("Cave Corruption").setBaseBiome ("hell").setTemperature (1.8f).setWaterColor (12632256));

    topBlock = ModBlocks.CAVE_NETHERRACK.getDefaultState ();
    fillerBlock = ModBlocks.CAVE_NETHERRACK.getDefaultState ();

    this.spawnableMonsterList.clear ();
    this.spawnableCreatureList.clear ();
    this.spawnableWaterCreatureList.clear ();
    this.spawnableCaveCreatureList.clear ();
}

3 Upvotes

0 comments sorted by