Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void generateSurface(World world, Random random, int i2, int k2){
- int i = i2 + random.nextInt(15);
- int k = k2 + random.nextInt(15);
- int j = world.getHeightValue(i,k)-1;
- if((random.nextInt(1000000)+1)<=710){
- boolean place = true;
- if(place){
- spawn(world, i, j, k);
- }}
- }
- public void generateNether(World world, Random random, int chunkX, int chunkZ){}
- public int addFuel(ItemStack fuel){
- return 0;
- }
- public void serverLoad(FMLServerStartingEvent event){}
- public void preInit(FMLPreInitializationEvent event){}
- public void registerRenderers(){}
- public static void spawn(World world, int x, int y, int z) {
- world.setBlock(x+0, y+0, z+0, Block.getBlockById(2));
- world.setBlock(x+1, y+0, z+0, Block.getBlockById(2));
- world.setBlock(x+2, y+0, z+0, Block.getBlockById(2));
- ...
- ....
- //some thousands lines later...
- world.setBlock(x+37, y+0, z+39, Block.getBlockById(173));
- world.setBlock(x+38, y+0, z+39, Block.getBlockById(173));
- world.setBlock(x+39, y+0, z+39, Block.getBlockById(2));
- spawn1(world, x, y, z);
- }
- private static void spawn1(World world, int x, int y, int z) {
- world.setBlock(x+0, y+0, z+40, Block.getBlockById(2));
- world.setBlock(x+1, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+2, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+3, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+4, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+5, y+0, z+40, Block.getBlockById(173));
- ...
- ....
- //some thousands lines later...
- world.setBlock(x+37, y+0, z+39, Block.getBlockById(173));
- world.setBlock(x+38, y+0, z+39, Block.getBlockById(173));
- world.setBlock(x+39, y+0, z+39, Block.getBlockById(2));
- spawn2(world, x, y, z);
- }
- private static void spawn2(World world, int x, int y, int z) {
- world.setBlock(x+0, y+0, z+40, Block.getBlockById(2));
- world.setBlock(x+1, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+2, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+3, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+4, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+5, y+0, z+40, Block.getBlockById(173));
- ...
- ....
- //some thousands lines later...
- world.setBlock(x+37, y+0, z+39, Block.getBlockById(173));
- world.setBlock(x+38, y+0, z+39, Block.getBlockById(173));
- world.setBlock(x+39, y+0, z+39, Block.getBlockById(2));
- spawn3(world, x, y, z);
- }
- private static void spawn3(World world, int x, int y, int z) {
- world.setBlock(x+0, y+0, z+40, Block.getBlockById(2));
- world.setBlock(x+1, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+2, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+3, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+4, y+0, z+40, Block.getBlockById(173));
- world.setBlock(x+5, y+0, z+40, Block.getBlockById(173));
- ...
- ....
- //some thousands lines later...
- world.setBlock(x+37, y+0, z+39, Block.getBlockById(173));
- world.setBlock(x+38, y+0, z+39, Block.getBlockById(173));
- world.setBlock(x+39, y+0, z+39, Block.getBlockById(2));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement