Added the option to disable ocean generation

This commit is contained in:
Adubbz 2013-04-23 06:28:21 +10:00
parent 874824f924
commit 9013e314a3
7 changed files with 219 additions and 205 deletions

View File

@ -18,7 +18,7 @@
## Changelog ## ## Changelog ##
Version 0.5.3 (Unreleased) Version 0.5.2 (Unreleased)
- Added an API for other mod developers - Added an API for other mod developers
- Added support for Biomes O Plenty woods in Thermal Expansion sawmills - Added support for Biomes O Plenty woods in Thermal Expansion sawmills
- Significantly compressed the amount of Block IDs used, however breaks existing worlds (Sorry, we are looking into ways of converting them) - Significantly compressed the amount of Block IDs used, however breaks existing worlds (Sorry, we are looking into ways of converting them)
@ -33,6 +33,7 @@
- Fixed an issue causing sound files to be created on the desktop - Fixed an issue causing sound files to be created on the desktop
- Biomes O Plenty saplings now work in the Forestry fermenter - Biomes O Plenty saplings now work in the Forestry fermenter
- Biomes O Plenty flowers can now be used with bees - Biomes O Plenty flowers can now be used with bees
- Added a config option for generating vanilla ocean biomes
Version 0.5.1 '17-04-2013' Version 0.5.1 '17-04-2013'
- Fixed server crash with mudballs - Fixed server crash with mudballs

View File

@ -35,7 +35,7 @@ import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod; import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.LanguageRegistry; import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid="BiomesOPlenty", name="Biomes O' Plenty", version="0.6.0") @Mod(modid="BiomesOPlenty", name="Biomes O' Plenty", version="0.5.2")
@NetworkMod(clientSideRequired=true, serverSideRequired=false) @NetworkMod(clientSideRequired=true, serverSideRequired=false)
public class BiomesOPlenty public class BiomesOPlenty
{ {

View File

@ -93,6 +93,8 @@ public class BOPConfiguration {
public static boolean wetlandGen; public static boolean wetlandGen;
public static boolean woodlandGen; public static boolean woodlandGen;
public static boolean oceanGen;
public static boolean plainsGen; public static boolean plainsGen;
public static boolean desertGen; public static boolean desertGen;
public static boolean extremeHillsGen; public static boolean extremeHillsGen;
@ -414,6 +416,8 @@ public class BOPConfiguration {
wetlandGen = config.get("Biomes To Generate", "Wetland", true).getBoolean(false); wetlandGen = config.get("Biomes To Generate", "Wetland", true).getBoolean(false);
woodlandGen = config.get("Biomes To Generate", "Woodland", true).getBoolean(false); woodlandGen = config.get("Biomes To Generate", "Woodland", true).getBoolean(false);
oceanGen = config.get("Vanilla Biomes To Generate", "Ocean", true).getBoolean(false);
// Get Terrain Block ID's // Get Terrain Block ID's
mudID = config.getTerrainBlock("Terrain Block IDs", "Mud ID", 160, null).getInt(); mudID = config.getTerrainBlock("Terrain Block IDs", "Mud ID", 160, null).getInt();
driedDirtID = config.getTerrainBlock("Terrain Block IDs", "Dried Dirt ID", 161, null).getInt(); driedDirtID = config.getTerrainBlock("Terrain Block IDs", "Dried Dirt ID", 161, null).getInt();

View File

@ -19,6 +19,10 @@ public class WTBiomesOP extends WorldTypeBase
this.removeBiome(BiomeGenBase.taiga); this.removeBiome(BiomeGenBase.taiga);
this.removeBiome(BiomeGenBase.swampland); this.removeBiome(BiomeGenBase.swampland);
this.removeBiome(BiomeGenBase.jungle); this.removeBiome(BiomeGenBase.jungle);
if (BOPConfiguration.oceanGen)
{
this.removeBiome(BiomeGenBase.ocean);
}
if (BOPConfiguration.alpsGen == true) if (BOPConfiguration.alpsGen == true)
{ {

View File

@ -1,5 +1,6 @@
package biomesoplenty.worldtype; package biomesoplenty.worldtype;
import biomesoplenty.configuration.BOPConfiguration;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraft.world.WorldType; import net.minecraft.world.WorldType;
import net.minecraft.world.biome.BiomeGenBase; import net.minecraft.world.biome.BiomeGenBase;
@ -31,5 +32,9 @@ public class WorldTypeBase extends WorldType
this.removeBiome(BiomeGenBase.taiga); this.removeBiome(BiomeGenBase.taiga);
this.removeBiome(BiomeGenBase.swampland); this.removeBiome(BiomeGenBase.swampland);
this.removeBiome(BiomeGenBase.jungle); this.removeBiome(BiomeGenBase.jungle);
if (BOPConfiguration.oceanGen)
{
this.removeBiome(BiomeGenBase.ocean);
}
} }
} }

View File

@ -2,7 +2,7 @@
"modid": "BiomesOPlenty", "modid": "BiomesOPlenty",
"name": "Biomes O' Plenty", "name": "Biomes O' Plenty",
"description": "Adds 72 new, unique biomes!", "description": "Adds 72 new, unique biomes!",
"version": "0.6.0", "version": "0.5.2",
"mcversion": "1.5.1", "mcversion": "1.5.1",
"url": "www.minecraftforum.net/topic/1495041-", "url": "www.minecraftforum.net/topic/1495041-",
"updateUrl": "", "updateUrl": "",