Guest User

Untitled

a guest
Jan 23rd, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. package net.minecraft.src;
  2. import java.util.Random;
  3.  
  4. public class mod_Client extends BaseMod
  5. {
  6.  
  7. public static final Block BlockClient = new BlockClient(227,0).setHardness(5F).setLightValue(0.975F).setResistance(2000.0F).setBlockName("blockcleint");
  8.  
  9. public mod_Client()
  10. {
  11.  
  12. ModLoader.RegisterBlock(BlockClient);
  13.  
  14. ModLoader.AddName(BlockClient, "Sapphire");
  15.  
  16. BlockTest.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Sapphire.png");
  17.  
  18. ModLoader.AddRecipe(new ItemStack(BlockTest, 1), new Object[] {
  19. "***", Character.valueOf('*'), Item.ironIngot
  20. });
  21.  
  22. }
  23.  
  24. public String Version()
  25. {
  26. return "1.8.1";
  27. }
  28. }
  29.  
  30.  
  31. --------------------------------------------------------------------------
  32.  
  33.  
  34. package net.minecraft.src;
  35. import java.util.Random;
  36.  
  37. public class BlockClient extends Block
  38. {
  39. protected BlockClient(int i, int j)
  40. {
  41. super (i,j,Material.rock);
  42. }
  43.  
  44. public int idDropped(int i, Random random)
  45. {
  46. return mod_Client.BlockClient.blockID;
  47. }
  48.  
  49. public int quantityDropped(Random random)
  50. {
  51. return 1;
  52. }
  53. }
Add Comment
Please, Sign In to add comment