Advertisement
Guest User

mod_Meteorite

a guest
Nov 1st, 2011
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. package net.minecraft.src;
  2. import java.util.Random;
  3.  
  4.  
  5. public class mod_Meteorite extends BaseMod
  6. {
  7. private static StepSound soundStoneFootstep;
  8. public static final Block Meteorite = (new BlockMeteorite(111,0)).setHardness(3.0F).setResistance(6000F).setStepSound(soundStoneFootstep).setBlockName("ElieseStone").setRequiresSelfNotify();
  9.  
  10. public mod_Meteorite()
  11. {
  12. ModLoader.RegisterBlock(Meteorite);
  13. Meteorite.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Meteorite.png");
  14. ModLoader.AddName(Meteorite, "Meteorite");
  15. };
  16.  
  17. public void addSmelting()
  18. {
  19. ModLoader.AddSmelting(Meteorite.blockID, new ItemStack(Item.MysteriousRock, 1));
  20. }
  21.  
  22.  
  23. public void GenerateSurface(World world, Random rand, int chunkX, int chunkZ)
  24. {
  25. for (int i=0; i < 25; i++)
  26. {
  27. int randPosX = chunkX + rand.nextInt(16);
  28. int randPosY = rand.nextInt(65);
  29. int randPosZ = chunkZ + rand.nextInt(16);
  30. (new WorldGenMinable(Meteorite.blockID, 50)). generate(world, rand, randPosX, randPosY, randPosZ);
  31. }
  32. }
  33.  
  34. public String Version()
  35. {
  36. return "1.8.1";
  37. }
  38. }
  39.  
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement