Advertisement
Guest User

Untitled

a guest
Feb 6th, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. package com.vinctweaks.generation;
  2.  
  3. import java.util.Random;
  4.  
  5. import com.vinctweaks.init.ModBlocks;
  6.  
  7. import net.minecraft.block.Block;
  8. import net.minecraft.init.Blocks;
  9. import net.minecraft.util.ChunkCoordinates;
  10. import net.minecraft.world.World;
  11. import net.minecraft.world.biome.BiomeGenBase;
  12. import net.minecraft.world.chunk.IChunkProvider;
  13. import net.minecraft.world.gen.feature.WorldGenMinable;
  14.  
  15. public class VincTweaksWorldGeneration {
  16.  
  17.  
  18. public void generate(Random random, int chunkX, int chunkZ, World world, IChunkProvider chunkGenerator, IChunkProvider chunkProvider)
  19. {
  20. switch (world.provider.dimensionId)
  21. {
  22. case 0:
  23. generateSurface(world, random, chunkX * 16, chunkZ * 16);
  24. case -1:
  25. generateNether(world, random, chunkX * 16, chunkZ * 16);
  26. case 1:
  27. generateEnd(world, random, chunkX * 16, chunkZ * 16);
  28. }
  29. }
  30.  
  31. /**
  32. * addOreSpawn(block, world, random, x, z, 16, 16, amount per vein, spawn chance, minY, maxY)
  33. */
  34. private void generateSurface(World world, Random random, int x, int z)
  35. {
  36. addOreSpawn(ModBlocks.slimeOre, world, random, x, z, 16, 16, 4 + random.nextInt(3), 100, 10, 100);
  37. }
  38.  
  39. private void generateNether(World world, Random random, int x, int z)
  40. {
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement