WitherDoggie

ModBiomeRegistry

May 26th, 2016
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1. package com.wither.withermod.worldgen.biome;
  2.  
  3. import com.wither.withermod.blocks.BlockRegistry;
  4. import com.wither.withermod.worldgen.biome.ModBiome.EnumBiomeDecorator;
  5.  
  6. import net.minecraft.init.Blocks;
  7. import net.minecraft.world.biome.BiomeGenBase;
  8. import net.minecraftforge.common.BiomeManager;
  9. import net.minecraftforge.common.BiomeManager.BiomeEntry;
  10. import net.minecraftforge.common.BiomeManager.BiomeType;
  11.  
  12. public class ModBiomeRegistry {
  13.    
  14.     public static BiomeGenBase witherBiome;
  15.    
  16.     public static void registerBiome(){
  17.        
  18.         witherBiome = new ModBiome(48).setTopFillerBlock(BlockRegistry.witheredGrass.getDefaultState(), BlockRegistry.witheredDirt.getDefaultState()).setMinMaxHeight(0.3f, 1.0f).setBiomeName("Withered Plains").setTemperatureRainfall(0.7f, 0.1f);
  19.         BiomeManager.addBiome(BiomeType.DESERT, new BiomeEntry(witherBiome, 10));
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment