Added spires to the wasteland

This commit is contained in:
Matt Caughey 2013-07-30 19:10:47 -04:00
parent 3f3f17134d
commit d79a52f5cd
3 changed files with 303 additions and 2 deletions

View file

@ -4,10 +4,14 @@ import java.awt.Color;
import java.util.Random;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.gen.feature.WorldGenTaiga1;
import net.minecraft.world.gen.feature.WorldGenTaiga2;
import net.minecraft.world.gen.feature.WorldGenerator;
import biomesoplenty.api.Blocks;
import biomesoplenty.configuration.BOPConfiguration;
import biomesoplenty.worldgen.WorldGenDeadTree3;
import biomesoplenty.worldgen.WorldGenWasteland;
import biomesoplenty.worldgen.WorldGenWasteland2;
public class BiomeGenWasteland extends BiomeGenBase
{
@ -20,7 +24,7 @@ public class BiomeGenWasteland extends BiomeGenBase
fillerBlock = (byte)Blocks.driedDirt.get().blockID;
theBiomeDecorator = new BiomeDecoratorBOP(this);
customBiomeDecorator = (BiomeDecoratorBOP)theBiomeDecorator;
customBiomeDecorator.treesPerChunk = 0;
customBiomeDecorator.treesPerChunk = 1;
customBiomeDecorator.deadGrassPerChunk = 14;
customBiomeDecorator.poisonWaterPerChunk = 10;
waterColorMultiplier = 15073024;
@ -34,7 +38,7 @@ public class BiomeGenWasteland extends BiomeGenBase
@Override
public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
{
return new WorldGenDeadTree3(false);
return par1Random.nextInt(4) == 0 ? new WorldGenDeadTree3(false) : (par1Random.nextInt(2) == 0 ? new WorldGenWasteland2() : new WorldGenWasteland());
}
/**

View file

@ -0,0 +1,127 @@
package biomesoplenty.worldgen;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;
import biomesoplenty.api.Blocks;
public class WorldGenWasteland extends WorldGenerator
{
@Override
public boolean generate(World var1, Random var2, int var3, int var4, int var5)
{
while (var1.isAirBlock(var3, var4, var5) && var4 > 2)
{
--var4;
}
int var6 = var1.getBlockId(var3, var4, var5);
if (var6 != Blocks.driedDirt.get().blockID)
return false;
else
{
for (int var7 = -2; var7 <= 2; ++var7)
{
for (int var8 = -2; var8 <= 2; ++var8)
{
if (var1.isAirBlock(var3 + var7, var4 - 1, var5 + var8) && var1.isAirBlock(var3 + var7, var4 - 2, var5 + var8) && !var1.isAirBlock(var3 + var7, var4, var5 + var8))
return false;
}
}
var1.setBlock(var3, var4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 1, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 1, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 1, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 1, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 1, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 1, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 1, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 1, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 1, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4 + 1, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4 + 1, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4 + 1, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4 + 1, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4 + 1, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4 + 1, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 1, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 1, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 1, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 1, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 1, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 1, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 2, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 2, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 2, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 2, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 2, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 2, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 2, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 2, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 2, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 3, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 3, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 3, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 3, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 3, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 3, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 3, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 3, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 3, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 5, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 5, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 5, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 5, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 5, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 6, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 7, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 8, var5, Blocks.driedDirt.get().blockID);
return true;
}
}
}

View file

@ -0,0 +1,170 @@
package biomesoplenty.worldgen;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.world.gen.feature.WorldGenerator;
import biomesoplenty.api.Blocks;
public class WorldGenWasteland2 extends WorldGenerator
{
@Override
public boolean generate(World var1, Random var2, int var3, int var4, int var5)
{
while (var1.isAirBlock(var3, var4, var5) && var4 > 2)
{
--var4;
}
int var6 = var1.getBlockId(var3, var4, var5);
if (var6 != Blocks.driedDirt.get().blockID)
return false;
else
{
for (int var7 = -2; var7 <= 2; ++var7)
{
for (int var8 = -2; var8 <= 2; ++var8)
{
if (var1.isAirBlock(var3 + var7, var4 - 1, var5 + var8) && var1.isAirBlock(var3 + var7, var4 - 2, var5 + var8) && !var1.isAirBlock(var3 + var7, var4, var5 + var8))
return false;
}
}
var1.setBlock(var3, var4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 1, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 1, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 1, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 1, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 1, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 1, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 1, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 1, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 1, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4 + 1, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4 + 1, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4 + 1, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4 + 1, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4 + 1, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4 + 1, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 1, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 1, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 1, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 1, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 1, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 1, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 2, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 2, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 2, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 2, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 2, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 2, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 2, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 2, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4 + 2, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4 + 2, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 2, var4 + 2, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4 + 2, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4 + 2, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 2, var4 + 2, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 2, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 2, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 2, var5 - 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 2, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 2, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 2, var5 + 2, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 2, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 3, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 3, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 3, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 3, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 3, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 3, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 3, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 3, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 3, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 4, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 4, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 4, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 5, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 5, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 5, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 5, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 5, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 5, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 5, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 5, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 5, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 6, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 6, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 6, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 6, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 6, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 7, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 7, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 7, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 7, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 7, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 - 1, var4 + 8, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3 + 1, var4 + 8, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 8, var5 - 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 8, var5 + 1, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 8, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 9, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 10, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 11, var5, Blocks.driedDirt.get().blockID);
var1.setBlock(var3, var4 + 12, var5, Blocks.driedDirt.get().blockID);
return true;
}
}
}