Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import com.meepshadow.mysticsbiomes.core.Config;
- import com.meepshadow.mysticsbiomes.core.MysticsBiomes;
- import net.minecraft.util.RegistryKey;
- import net.minecraft.util.ResourceLocation;
- import net.minecraft.util.registry.Registry;
- import net.minecraft.world.biome.*;
- import net.minecraftforge.common.BiomeDictionary;
- import net.minecraftforge.common.BiomeManager;
- import net.minecraftforge.eventbus.api.SubscribeEvent;
- import net.minecraftforge.fml.common.Mod;
- @Mod.EventBusSubscriber(modid = MysticsBiomes.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
- public class ModBiomes {
- public static RegistryKey<Biome> STRAWBERRY_FIELD = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, new ResourceLocation(MysticsBiomes.MOD_ID, "strawberry_field"));
- public static RegistryKey<Biome> LAVENDER_MEADOW = RegistryKey.getOrCreateKey(Registry.BIOME_KEY, new ResourceLocation(MysticsBiomes.MOD_ID, "lavender_meadow"));
- public static void load() { }
- @SubscribeEvent
- public static void setupBiomes() {
- BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(STRAWBERRY_FIELD, Config.COMMON.strawberryFieldWeight.get()));
- BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeManager.BiomeEntry(LAVENDER_MEADOW, Config.COMMON.lavenderMeadowWeight.get()));
- BiomeDictionary.addTypes(STRAWBERRY_FIELD, BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.OVERWORLD);
- BiomeDictionary.addTypes(LAVENDER_MEADOW, BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.OVERWORLD);
- }
- }
Add Comment
Please, Sign In to add comment