Tweaked clouds. Lowered the amount of Amethyst Ore generated per chunk in the Promised Land.

This commit is contained in:
Matt Caughey 2013-05-11 07:25:43 -04:00
parent f5079e83ce
commit d7bfeb8cda
3 changed files with 24 additions and 1 deletions

View file

@ -3,6 +3,9 @@ package biomesoplenty.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.entity.Entity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.World;
import net.minecraft.world.IBlockAccess;
import biomesoplenty.BiomesOPlenty;
import cpw.mods.fml.relauncher.Side;
@ -22,6 +25,26 @@ public class BlockCloud extends Block
this.blockIcon = par1IconRegister.registerIcon("BiomesOPlenty:cloud");
}
/**
* Returns a bounding box from the pool of bounding boxes (this means this box can change after the pool has been
* cleared to be reused)
*/
public AxisAlignedBB getCollisionBoundingBoxFromPool(World par1World, int par2, int par3, int par4)
{
float var5 = 0.125F;
return AxisAlignedBB.getAABBPool().getAABB((double)par2, (double)par3, (double)par4, (double)(par2 + 1), (double)((float)(par3 + 1) - var5), (double)(par4 + 1));
}
/**
* Triggered whenever an entity collides with this block (enters into the block). Args: world, x, y, z, entity
*/
public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity)
{
par5Entity.motionX *= 0.8D;
par5Entity.motionZ *= 0.8D;
}
@Override
@SideOnly(Side.CLIENT)

View file

@ -503,7 +503,7 @@ public class ChunkProviderPromised implements IChunkProvider
int var5 = par3 * 16;
BiomeGenBase var6 = this.endWorld.getBiomeGenForCoords(var4 + 16, var5 + 16);
for (int a = 0; a < 100; ++a)
for (int a = 0; a < 25; ++a)
{
int x = var4 + endWorld.rand.nextInt(16);
int y = endWorld.rand.nextInt(30) + 30;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 B

After

Width:  |  Height:  |  Size: 302 B