Advertisement
riking

Untitled

Oct 24th, 2012
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import java.util.Random;
  4.  
  5. public class mod_BlocksGalore extends BaseMod
  6. {
  7.  
  8. public static final Block bluecobblestone;
  9.  
  10. public void load()
  11. {
  12. bluecobblestone = new BlockBlueCobbleStone(148, ModLoader.addOverride("/terrian.png", "/Mods/BlueCobble.png")).setLightValue(.5F).setHardness(1.5F).setResistance(10.0F).setBlockName("Blue CobbleStone");
  13. ModLoader.registerBlock(bluecobblestone);
  14. ModLoader.addName(bluecobblestone, "Blue CobbleStone");
  15.  
  16. }
  17.  
  18. public void generateSurface(World world, Random random, int i, int j)
  19. {
  20. for(int i4 = 0; i4 < 20; i4++)
  21. {
  22. int j7 = i + random.nextInt(16);
  23. int k10 = random.nextInt(128);
  24. int j13 = j + random.nextInt(16);
  25. (new WorldGenMinable(mod_BlocksGalore.bluecobblestone.blockID, 8)).generate(world, random, j7, k10, j13);
  26. }
  27.  
  28. }
  29.  
  30.  
  31.  
  32.  
  33.  
  34. public String getVersion()
  35. {
  36. return ("Blocks Galore v1");
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement