Tweaked the cloud collision box, made the sky colour of the Promised Land Biomes configurable, prevented fall damage if landing on a cloud
This commit is contained in:
parent
092c6c180c
commit
fd7f2aa2ff
5 changed files with 17 additions and 5 deletions
|
@ -91,7 +91,7 @@ public class BiomeGenPromisedLandForest extends BiomeGenBase
|
|||
{
|
||||
if (BOPConfiguration.skyColors = true)
|
||||
{
|
||||
return 50175;
|
||||
return BOPConfiguration.pLForestSkyColour;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -90,7 +90,7 @@ public class BiomeGenPromisedLandPlains extends BiomeGenBase
|
|||
{
|
||||
if (BOPConfiguration.skyColors = true)
|
||||
{
|
||||
return 50175;
|
||||
return BOPConfiguration.pLPlainsSkyColour;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -91,7 +91,7 @@ public class BiomeGenPromisedLandSwamp extends BiomeGenBase
|
|||
{
|
||||
if (BOPConfiguration.skyColors = true)
|
||||
{
|
||||
return 50175;
|
||||
return BOPConfiguration.pLSwampSkyColour;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -32,7 +32,7 @@ public class BlockCloud extends Block
|
|||
*/
|
||||
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
|
||||
{
|
||||
float var5 = 0.125F;
|
||||
float var5 = 0.500F;
|
||||
return AxisAlignedBB.getAABBPool().getAABB((double)par2, (double)par3, (double)par4, (double)(par2 + 1), (double)((float)(par3 + 1) - var5), (double)(par4 + 1));
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,7 @@ public class BlockCloud extends Block
|
|||
*/
|
||||
public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
|
||||
{
|
||||
par5Entity.fallDistance = 0.0F;
|
||||
par5Entity.motionX *= 0.8D;
|
||||
par5Entity.motionZ *= 0.8D;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,10 @@ public class BOPConfiguration {
|
|||
|
||||
public static int promisedLandDimID;
|
||||
|
||||
public static int pLSwampSkyColour;
|
||||
public static int pLPlainsSkyColour;
|
||||
public static int pLForestSkyColour;
|
||||
|
||||
public static boolean alpsGen;
|
||||
public static boolean arcticGen;
|
||||
public static boolean badlandsGen;
|
||||
|
@ -406,7 +410,6 @@ public class BOPConfiguration {
|
|||
{
|
||||
config.load();
|
||||
|
||||
skyColors = true;
|
||||
biomeSize = config.get("Biomes O\' Plenty World Type Settings", "Biome Size", 4, "Default World Type has 4. Large Biomes World Type has 6.").getInt();
|
||||
achievements = config.get("Achievement Settings", "Add Biomes O\' Plenty Achievements", true).getBoolean(false);
|
||||
vanillaEnhanced = config.get("Biome Settings", "Enhanced Vanilla Biomes", true).getBoolean(false);
|
||||
|
@ -418,6 +421,14 @@ public class BOPConfiguration {
|
|||
if (villageDistance < 8)
|
||||
villageDistance = 8;
|
||||
|
||||
//Sky colour
|
||||
skyColors = config.get("Sky Colours", "Enable Sky Colours", true).getBoolean(false);
|
||||
|
||||
pLSwampSkyColour = config.get("Sky Colours", "Promised Land Swamp Sky Colour", 50175, null).getInt();
|
||||
pLPlainsSkyColour = config.get("Sky Colours", "Promised Land Plains Sky Colour", 50175, null).getInt();
|
||||
pLForestSkyColour = config.get("Sky Colours", "Promised Land Forest Sky Colour", 50175, null).getInt();
|
||||
|
||||
//Biome generation
|
||||
alpsGen = config.get("Biomes To Generate", "Alps", true).getBoolean(false);
|
||||
arcticGen = config.get("Biomes To Generate", "Arctic", true).getBoolean(false);
|
||||
badlandsGen = config.get("Biomes To Generate", "Badlands", true).getBoolean(false);
|
||||
|
|
Loading…
Reference in a new issue