public BiomeGenStorage() { super( new BiomeProperties( "Storage Cell" ).setBaseBiome( "void" ).setRainDisabled().setTemperature( -100 ) ); this.decorator.treesPerChunk = 0; this.decorator.flowersPerChunk = 0; this.decorator.grassPerChunk = 0; this.spawnableMonsterList.clear(); this.spawnableCreatureList.clear(); this.spawnableWaterCreatureList.clear(); this.spawnableCaveCreatureList.clear(); } }
@Nonnull @Override public Biome getBiomeForCoords(@Nonnull BlockPos pos) { return new BiomeUnderWorld(new Biome.BiomeProperties("torikki")); }
public BiomeGenVampireForest() { super(new BiomeProperties(name).setWaterColor(0xEE2505).setBaseHeight(0.1F).setHeightVariation(0.025F)); this.spawnableCreatureList.clear(); this.spawnableMonsterList.clear(); this.spawnableWaterCreatureList.clear(); this.spawnableCaveCreatureList.clear(); this.spawnableMonsterList.add(new SpawnListEntry(EntityGhost.class, 3, 1, 1)); this.spawnableMonsterList.add(new SpawnListEntry(EntityBasicVampire.class, 7, 1, 3)); this.spawnableMonsterList.add(new SpawnListEntry(EntityVampireBaron.class, 2, 1, 1)); this.spawnableCaveCreatureList.add(new SpawnListEntry(EntityBlindingBat.class, 8, 2, 4)); this.spawnableCreatureList.add(new SpawnListEntry(EntityDummyBittenAnimal.class, 15, 3, 6)); this.topBlock = ModBlocks.cursed_earth.getDefaultState(); this.fillerBlock = ModBlocks.cursed_earth.getDefaultState(); this.decorator.treesPerChunk = 5; this.decorator.grassPerChunk = 4; this.decorator.deadBushPerChunk = 3; this.worldGenTrees = new WorldGenTrees(false, 4, Blocks.LOG.getDefaultState().withProperty(BlockOldLog.VARIANT, BlockPlanks.EnumType.SPRUCE), Blocks.LEAVES.getDefaultState().withProperty(BlockOldLeaf.VARIANT, BlockPlanks.EnumType.OAK), false); }
throw new IllegalStateException("No biome registry avilable! Make sure you're using the biome registry script stage!"); if(this.toCopy == null){ final BiomeTweakerBiome biome = new BiomeTweakerBiome(new BiomeProperties("BiomeTweaker Biome").setBaseHeight(0.125F).setHeightVariation(0.05F).setTemperature(0.8F).setRainfall(0.4F)); if(!MinecraftForge.EVENT_BUS.post(new BiomeTweakEvent.Create(this, biome))){ biome.setRegistryName(ModData.MOD_ID, this.rLoc.toLowerCase()); if(construct == null){ LogHelper.warn("Unable to copy biome class "+toCopy.getBiomeClass().getCanonicalName()+"! Some functionality may not be copied!"); biome = new BiomeTweakerBiome(new BiomeProperties("BiomeTweaker Biome").setBaseHeight(0.125F).setHeightVariation(0.05F).setTemperature(0.8F).setRainfall(0.4F)); } else switch(construct.getParameterCount()) { break; case 1: biome = construct.newInstance(new BiomeProperties(BiomePropertyManager.NAME.get(toCopy))); break; default: for(int i = 0; i < props.size(); i++) objs[i] = props.get(i).get(toCopy); objs[objs.length-1] = new BiomeProperties(BiomePropertyManager.NAME.get(toCopy)); biome = construct.newInstance(objs); break;
@SubscribeEvent public static void registerBiomes(RegistryEvent.Register<Biome> event) { IForgeRegistry<Biome> r = event.getRegistry(); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " Ocean").setBaseHeight(-3.6f).setHeightVariation(-2.69999f)), BiomeDictionary.Type.OCEAN, BiomeDictionary.Type.WET, BiomeDictionary.Type.WATER); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " River").setBaseHeight(-3.2f).setHeightVariation(-3f)), BiomeDictionary.Type.RIVER, BiomeDictionary.Type.WET, BiomeDictionary.Type.WATER); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " Beach").setBaseHeight(-2.69f).setHeightVariation(-2.68f)), BiomeDictionary.Type.BEACH); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " Gravel Beach").setBaseHeight(-2.69f).setHeightVariation(-2.68f).setBaseBiome("tfc:beach")), BiomeDictionary.Type.BEACH); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " High Hills").setBaseHeight(-1.9000001f).setHeightVariation(-1.1f)), BiomeDictionary.Type.HILLS); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " Plains").setBaseHeight(-2.6000001f).setHeightVariation(-2.54f)), BiomeDictionary.Type.PLAINS); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " Swampland").setBaseHeight(-2.8f).setHeightVariation(-2.6000001f), 8, 45), BiomeDictionary.Type.SWAMP); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " High Hills Edge").setBaseHeight(-2.5f).setHeightVariation(-2.3f).setBaseBiome("tfc:high_hills")), BiomeDictionary.Type.HILLS, BiomeDictionary.Type.PLAINS); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " Rolling Hills").setBaseHeight(-2.6000001f).setHeightVariation(-2.3f)), BiomeDictionary.Type.HILLS); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " Mountains").setBaseHeight(-1.9000001f).setHeightVariation(-1.1f)), BiomeDictionary.Type.MOUNTAIN); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " Mountains Edge").setBaseHeight(-2.3f).setHeightVariation(-1.9000001f).setBaseBiome("tfc:mountains")), BiomeDictionary.Type.MOUNTAIN); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " High Plains").setBaseHeight(-2.3f).setHeightVariation(-2.27f)), BiomeDictionary.Type.HILLS, BiomeDictionary.Type.PLAINS); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " Deep Ocean").setBaseHeight(-4.2f).setHeightVariation(-2.69999f).setBaseBiome("tfc:ocean")), BiomeDictionary.Type.OCEAN, BiomeDictionary.Type.WET, BiomeDictionary.Type.WATER); register(r, new BiomeTFC(new Biome.BiomeProperties(MOD_NAME + " Lake").setBaseHeight(-3.2f).setHeightVariation(-2.6990001f).setBaseBiome("tfc:ocean"), 2, 5), BiomeDictionary.Type.RIVER, BiomeDictionary.Type.WET, BiomeDictionary.Type.WATER); // register(r, new BiomeTFC(new Biome.BiomeProperties("tfc_hell").setRainDisabled().setTemperature(2.0F).setRainfall(0.0F))); }
public static void init() { UNDERGROUND_JUNGLE = new BiomeUndergroundJungle(new BiomeProperties("Underground Jungle")); VOLCANIC_DESERT = new BiomeVolcanicDesert(new BiomeProperties("Volcanic Desert")); SUBTERRANEAN_SAVANNAH = new BiomeSubterraneanSavannah(new BiomeProperties("Subterranean Savannah")); ELYSIAN_FIELDS = new BiomeElysianFields(new BiomeProperties("Elysian Fields")); ULTERIOR_OUTBACK = new BiomeUlteriorOutback(new BiomeProperties("Ulterior Outback")); FUNGAL_FOREST = new BiomeFungalForest(new BiomeProperties("Fungal Forest")); SUBMERGED_SWAMP = new BiomeSubmergedSwamp(new BiomeProperties("Submerged Swamp")); FIELDS_SUB_FOREST = new BiomeElysianFields.BiomeElysianForest(new BiomeProperties("Elysian Forest")); PETRIFIED_FOREST = new BiomePetrifiedForest(new BiomeProperties("Petrified Forest")); // MUTATIONS UNDERGROUND_JUNGLE.getMutationForBiome(UNDERGROUND_JUNGLE); VOLCANIC_DESERT.getMutationForBiome(VOLCANIC_DESERT); SUBTERRANEAN_SAVANNAH.getMutationForBiome(SUBTERRANEAN_SAVANNAH); ELYSIAN_FIELDS.getMutationForBiome(ELYSIAN_FIELDS); ULTERIOR_OUTBACK.getMutationForBiome(ULTERIOR_OUTBACK); FUNGAL_FOREST.getMutationForBiome(FUNGAL_FOREST); SUBMERGED_SWAMP.getMutationForBiome(SUBMERGED_SWAMP); FIELDS_SUB_FOREST.getMutationForBiome(FIELDS_SUB_FOREST); PETRIFIED_FOREST.getMutationForBiome(PETRIFIED_FOREST); }
/** * Instantiates a new biome cloud. */ public BiomeCloud() { super(new BiomeProperties(ModWorldGen.CLOUD_NAME) .setBaseHeight(1.0F) .setHeightVariation(0.2F) .setRainDisabled() .setTemperature(0.2F) ); topBlock = ModBlocks.cloud.getDefaultState(); fillerBlock = ModBlocks.cloud.getDefaultState(); setSpawnables(); addFlowers(); }
public static void preInit() { biomeFluxed = new BiomeFluxed(new BiomeProperties("Fluxed").setTemperature(0.8F).setRainfall(0.7F).setBaseHeight(0.1F).setHeightVariation(0.0F)); MinecraftForge.EVENT_BUS.register(INSTANCE); }
public BiomeGlacier() { super(false, new BiomeProperties("Glacier").setBaseHeight(2.125F).setHeightVariation(0.025F).setTemperature(0.0F).setRainfall(0.5F).setSnowEnabled()); this.topBlock = Blocks.SNOW.getDefaultState(); this.fillerBlock = Blocks.PACKED_ICE.getDefaultState(); }