more of project "FUN"

This commit is contained in:
Progwml6 committed 2013-12-31 14:11:05 -05:00
1 parent 7d8f58ea88
commit ad96fbfa61
17 files changed
+512 -500

No files matched your search

@@ -4,6 +4,7 @@ import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.WorldType;
import net.minecraft.world.chunk.IChunkProvider;
@@ -16,19 +17,19 @@ public class TBaseWorldGenerator implements IWorldGenerator
{
public TBaseWorldGenerator()
{
copper = new WorldGenMinable(TRepo.oreSlag.blockID, 3, 8, Block.stone.blockID);
tin = new WorldGenMinable(TRepo.oreSlag.blockID, 4, 8, Block.stone.blockID);
aluminum = new WorldGenMinable(TRepo.oreSlag.blockID, 5, 6, Block.stone.blockID);
copper = new WorldGenMinable(TRepo.oreSlag, 3, 8, Block.stone);
tin = new WorldGenMinable(TRepo.oreSlag, 4, 8, Block.stone);
aluminum = new WorldGenMinable(TRepo.oreSlag, 5, 6, Block.stone);
cobalt = new WorldGenMinable(TRepo.oreSlag.blockID, 1, 3, Block.netherrack.blockID);
ardite = new WorldGenMinable(TRepo.oreSlag.blockID, 2, 3, Block.netherrack.blockID);
cobalt = new WorldGenMinable(TRepo.oreSlag, 1, 3, Block.netherrack);
ardite = new WorldGenMinable(TRepo.oreSlag, 2, 3, Block.netherrack);
ironBush = new OreberryBushGen(TRepo.oreBerry.blockID, 12, 12);
goldBush = new OreberryBushGen(TRepo.oreBerry.blockID, 13, 6);
copperBush = new OreberryBushGen(TRepo.oreBerry.blockID, 14, 12);
tinBush = new OreberryBushGen(TRepo.oreBerry.blockID, 15, 12);
aluminumBush = new OreberryBushGen(TRepo.oreBerrySecond.blockID, 12, 14);
silverBush = new OreberryBushGen(TRepo.oreBerrySecond.blockID, 13, 8);
ironBush = new OreberryBushGen(TRepo.oreBerry, 12, 12);
goldBush = new OreberryBushGen(TRepo.oreBerry, 13, 6);
copperBush = new OreberryBushGen(TRepo.oreBerry, 14, 12);
tinBush = new OreberryBushGen(TRepo.oreBerry, 15, 12);
aluminumBush = new OreberryBushGen(TRepo.oreBerrySecond, 12, 14);
silverBush = new OreberryBushGen(TRepo.oreBerrySecond, 13, 8);
}
@Override
@@ -262,7 +263,7 @@ public class TBaseWorldGenerator implements IWorldGenerator
{
/*for (int x = 0; x < 16; x++)
for (int z = 0; z < 16; z++)
world.setBlock(x+chunkX, 192, z+chunkZ, Block.glowStone.blockID);*/
world.setBlock(x+chunkX, 192, z+chunkZ, Block.glowStone);*/
for (int x = 0; x < 16; x++)
{
@@ -275,15 +276,15 @@ public class TBaseWorldGenerator implements IWorldGenerator
if (block != null)
{
if (block.blockMaterial == Material.leaves)
world.setBlock(x + chunkX, y, z + chunkZ, Block.lavaStill.blockID, 0, 0);
world.setBlock(x + chunkX, y, z + chunkZ, Block.lavaStill, 0, 0);
if (block.blockMaterial == Material.wood)
world.setBlock(x + chunkX, y, z + chunkZ, Block.netherrack.blockID, 0, 0);
if (block.blockID == Block.stone.blockID)
world.setBlock(x + chunkX, y, z + chunkZ, Block.whiteStone.blockID, 0, 0);
world.setBlock(x + chunkX, y, z + chunkZ, Block.netherrack, 0, 0);
if (block == Blocks.stone)
world.setBlock(x + chunkX, y, z + chunkZ, Block.whiteStone, 0, 0);
if (y > 40 && (block.blockMaterial == Material.ground || block.blockMaterial == Material.grass))
world.setBlock(x + chunkX, y, z + chunkZ, Block.slowSand.blockID, 0, 0);
world.setBlock(x + chunkX, y, z + chunkZ, Block.slowSand, 0, 0);
if (block.blockMaterial == Material.sand)
world.setBlock(x + chunkX, y, z + chunkZ, Block.silverfish.blockID, 0, 0);
world.setBlock(x + chunkX, y, z + chunkZ, Block.silverfish, 0, 0);
}
}
}
@@ -300,7 +301,7 @@ public class TBaseWorldGenerator implements IWorldGenerator
{
for (int y = 0; y < 256; y++)
{
world.setBlock(x + chunkX, y, z + chunkZ, Block.bedrock.blockID, 0, 0);
world.setBlock(x + chunkX, y, z + chunkZ, Blocks.bedrock, 0, 0);
}
}
}
@@ -5,16 +5,15 @@ import java.util.Random;
import tconstruct.TConstruct;
import tconstruct.common.TRepo;
import net.minecraft.block.Block;
import net.minecraft.world.World;
import net.minecraft.world.gen.structure.ComponentVillage;
import net.minecraft.world.gen.structure.ComponentVillageStartPiece;
import net.minecraft.world.gen.structure.MapGenStructureIO;
import net.minecraft.world.gen.structure.MapGenVillage;
import net.minecraft.world.gen.structure.StructureBoundingBox;
import net.minecraft.world.gen.structure.StructureComponent;
import net.minecraft.world.gen.structure.StructureVillagePieces;
public class ComponentSmeltery extends ComponentVillage
public class ComponentSmeltery extends MapGenVillage
{
private int averageGroundLevel = -1;
@@ -22,9 +21,9 @@ public class ComponentSmeltery extends ComponentVillage
{
}
public ComponentSmeltery(ComponentVillageStartPiece par1ComponentVillageStartPiece, int par2, Random par3Random, StructureBoundingBox par4StructureBoundingBox, int par5)
public ComponentSmeltery(StructureVillagePieces par1ComponentVillageStartPiece, int par2, Random par3Random, StructureBoundingBox par4StructureBoundingBox, int par5)
{
super(par1ComponentVillageStartPiece, par2);
super();
this.coordBaseMode = par5;
this.boundingBox = par4StructureBoundingBox;
}
@@ -7,15 +7,16 @@ import tconstruct.blocks.logic.CraftingStationLogic;
import tconstruct.blocks.logic.PatternChestLogic;
import tconstruct.common.TRepo;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.util.WeightedRandomChestContent;
import net.minecraft.world.World;
import net.minecraft.world.gen.structure.ComponentVillage;
import net.minecraft.world.gen.structure.ComponentVillageStartPiece;
import net.minecraft.world.gen.structure.MapGenStructureIO;
import net.minecraft.world.gen.structure.MapGenVillage;
import net.minecraft.world.gen.structure.StructureBoundingBox;
import net.minecraft.world.gen.structure.StructureComponent;
import net.minecraft.world.gen.structure.StructureVillagePieces;
public class ComponentToolWorkshop extends ComponentVillage
public class ComponentToolWorkshop extends MapGenVillage
{
private int averageGroundLevel = -1;
@@ -23,9 +24,9 @@ public class ComponentToolWorkshop extends ComponentVillage
{
}
public ComponentToolWorkshop(ComponentVillageStartPiece par1ComponentVillageStartPiece, int par2, Random par3Random, StructureBoundingBox par4StructureBoundingBox, int par5)
public ComponentToolWorkshop(StructureVillagePieces par1ComponentVillageStartPiece, int par2, Random par3Random, StructureBoundingBox par4StructureBoundingBox, int par5)
{
super(par1ComponentVillageStartPiece, par2);
super();
this.coordBaseMode = par5;
this.boundingBox = par4StructureBoundingBox;
}
@@ -141,7 +142,7 @@ public class ComponentToolWorkshop extends ComponentVillage
for (int i1 = 0; i1 < 9; ++i1)
{
this.clearCurrentPositionBlocksUpwards(world, i1, 9, l, sbb);
this.fillCurrentPositionBlocksDownwards(world, Block.cobblestone.blockID, 0, i1, -1, l, sbb);
this.fillCurrentPositionBlocksDownwards(world, Blocks.cobblestone.blockID, 0, i1, -1, l, sbb);
}
}
this.spawnVillagers(world, sbb, 3, 1, 3, 1);