Guest User

Untitled

a guest
Jan 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import java.util.Random;
  4.  
  5. import net.minecraft.src.forge.MinecraftForgeClient;
  6.  
  7. public class mod_Soulcrystal extends BaseMod
  8. {
  9. public static final Block soulcrystal = new BlockSoulcrystal(111, 0).setHardness(2.0F).setResistance(5.0F).setBlockName("soulcrystal");
  10. public static final Item souldust = new ItemHolo(407).setIconCoord(1, 5).setItemName("souldust");
  11. public static final Item soulcrystals = new ItemHolo(408).setIconCoord(1, 6).setItemName("soulcrystal");
  12. public static final Item soulcoal = new ItemHolo(409).setIconCoord(1, 7).setItemName("soulcoul");
  13. public void ModsLoaded()
  14. {
  15. MinecraftForgeClient.preloadTexture("/holocraft/items.png");
  16. MinecraftForgeClient.preloadTexture("/holocraft/terrain.png");
  17.  
  18. }
  19. public mod_Soulcrystal()
  20. {
  21. ModLoader.RegisterBlock(soulcrystal);
  22. ModLoader.AddName(soulcrystal, "Soul Cyrstal Ore");
  23. ModLoader.AddName(soulcrystals, "Soul Crystals");
  24. ModLoader.AddName(souldust, "Soul Dust");
  25. ModLoader.AddName(soulcoal, "Soul Coal");
  26. ModLoader.AddRecipe(new ItemStack(soulcoal, 1), new Object[] {
  27. " X ", "XCX", " X ", Character.valueOf('X'), souldust, Character.valueOf('C'), Item.coal
  28. });
  29. }
  30. public String Version()
  31. {
  32. return "1.8.1";
  33. }
  34.  
  35. public int AddFuel(int id)
  36. {
  37. if(id == soulcoal.shiftedIndex)
  38. {
  39. return 3200;
  40. }
  41. return 0;
  42. }
  43.  
  44. public void GenerateNether(World world, Random random, int i, int j)
  45. {
  46.  
  47. for(int k = 0; k < 20; k++)
  48. {
  49. int j1 = i + random.nextInt(16);
  50. int i2 = random.nextInt(128);
  51. int l2 = j + random.nextInt(16);
  52. (new WorldGenMinable(soulcrystal.blockID, 12)).generate(world, random, j1, i2, l2);
  53. }
  54. }
  55. }
Add Comment
Please, Sign In to add comment