MinecraftScripterAI
Discord ↗
Link Copied to Clipboard
×
"create biome"
/* To create a custom biome in Minecraft Forge, you need to create a new class extending Biome and register it. Here's a basic example: */ // Create a new class for your custom biome public class CustomBiome extends Biome { public CustomBiome() { super(new Biome.Builder() .precipitation(Biome.RainType.RAIN) .biomeCategory(Biome.Category.PLAINS) .downfall(0.4f) .depth(0.125f) .scale(0.05f) .temperature(0.7f) .waterColor(4159204) .waterFogColor(329011) .parent(null) ); // Add features, spawn settings, etc. to your biome here } } // Register your custom biome in your mod's registry class public static final RegistryObject<Biome> CUSTOM_BIOME = BIOMES.register("custom_biome", CustomBiome::new); // Don't forget to add your biome to the world generation in your mod's setup method private void setup(final FMLCommonSetupEvent event) { event.enqueueWork(() -> { BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(CUSTOM_BIOME.get(), 10)); BiomeManager.addSpawnBiome(CUSTOM_BIOME.get()); }); }