Advertisement
jayhillx

ModBiomes Class01

Dec 10th, 2020
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. package com.meepshadow.mysticsbiomes.core.registry;
  2.  
  3.  
  4.  
  5. @Mod.EventBusSubscriber(modid = MysticsBiomes.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD)
  6. public class ModBiomes {
  7.  
  8. public static RegistryKey<Biome> STRAWBERRY_FIELD;
  9. public static RegistryKey<Biome> LAVENDER_MEADOW;
  10.  
  11. public static void load() { }
  12.  
  13. @SubscribeEvent
  14. public static void setupBiomes() {
  15. BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(STRAWBERRY_FIELD, Config.COMMON.strawberryFieldWeight.get()));
  16. BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeManager.BiomeEntry(LAVENDER_MEADOW, Config.COMMON.lavenderMeadowWeight.get()));
  17.  
  18. BiomeDictionary.addTypes(STRAWBERRY_FIELD, BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.OVERWORLD);
  19. BiomeDictionary.addTypes(LAVENDER_MEADOW, BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.OVERWORLD);
  20. }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement