Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. import net.minecraft.src.Block;
  4. import net.minecraft.src.Item;
  5.  
  6. public class mod_dirtreprive extends BaseMod{
  7.  
  8. public static final Block manureblock;
  9. public static final Item manurehunk;
  10. public static final Item adobeclay;
  11. public static final Item adobebrick;
  12. public static final Block adobeblock;
  13. public static final Item phosphate;
  14. public static final Block phosphateblock;
  15.  
  16. static
  17. {
  18. manureblock = (new BlockDirt(100, 1)).setHardness(0.1F).setStepSound(Block.soundGravelFootstep).setBlockName("manure");
  19. manurehunk = (new Item(2010)).setItemName("Hunk of Manure");
  20. adobeclay = (new Item(2011)).setItemName("Adobe Clay");
  21. adobebrick = (new Item(2012)).setItemName("Adobe Brick");
  22. adobeblock = (new BlockDirt(101, 1).setHardness(5.0F).setStepSound(Block.soundStoneFootstep).setBlockName("Adobe Block"));
  23. phosphate = (new Item(2013)).setItemName("Phosphates");
  24. phosphateblock = (new BlockDirt(102, 1).setHardness(0.5F).setStepSound(Block.soundGravelFootstep).setBlockName("Phosphate Block"));
  25. }
  26.  
  27. public mod_dirtreprive(){
  28. ModLoader.RegisterBlock( manureblock );
  29.  
  30. ModLoader.AddName( manureblock, "Manure" );
  31. ModLoader.AddName( manurehunk, "Hunk of Manure");
  32. ModLoader.AddName( adobeclay, "Adobe Clay");
  33. ModLoader.AddName( adobebrick, "Adobe Brick");
  34. ModLoader.AddName( adobeblock, "Adobe");
  35. ModLoader.AddName( phosphate, "Phosphates");
  36. ModLoader.AddName( phosphateblock, "Phosphates Block");
  37.  
  38. manureblock.blockIndexInTexture
  39. = ModLoader.addOverride("/terrain.png","/rallias/manure.png");
  40. manurehunk.iconIndex
  41. = ModLoader.addOverride("/gui/items.png","/rallias/manurehunk.png");
  42. adobeclay.iconIndex
  43. = ModLoader.addOverride("/gui/items.png","/rallias/adobeclay.png");
  44. adobebrick.iconIndex
  45. = ModLoader.addOverride("/gui/items.png","/rallias/adobebrick.png");
  46. adobeblock.blockIndexInTexture
  47. = ModLoader.addOverride("/terrain.png","/rallias/adobeblock.png");
  48. phosphate.iconIndex
  49. = ModLoader.addOverride("/gui/items.png","/rallias/phosphates.png");
  50. phosphateblock.blockIndexInTexture
  51. = ModLoader.addOverride("/terrain.png","/rallias/phosphatesblock.png");
  52.  
  53. ModLoader.AddRecipe(new ItemStack(manureblock, 1), new Object[] {
  54. "XX","XX",
  55. Character.valueOf('X'), manurehunk
  56. }
  57. );
  58. ModLoader.AddRecipe(new ItemStack(manurehunk, 4), new Object[] {
  59. "X",
  60. Character.valueOf('X'), manureblock
  61. }
  62. );
  63. ModLoader.AddRecipe(new ItemStack(manurehunk, 1), new Object[] {
  64. "X",
  65. Character.valueOf('X'), Block.dirt
  66. }
  67. );
  68. ModLoader.AddShapelessRecipe(new ItemStack(adobeclay, 1), new Object[] {
  69. new ItemStack(Item.bucketWater),
  70. new ItemStack(Block.dirt)
  71. }
  72. );
  73. ModLoader.AddRecipe(new ItemStack(adobeblock, 1), new Object[] {
  74. "XX", "XX",
  75. Character.valueOf('X'), adobebrick
  76. }
  77. );
  78. ModLoader.AddRecipe(new ItemStack(adobebrick, 4), new Object[] {
  79. "X",
  80. Character.valueOf('X'), adobeblock
  81. }
  82. );
  83.  
  84. ModLoader.AddSmelting(2010, new ItemStack(phosphate, 1));
  85. ModLoader.AddSmelting(2011, new ItemStack(adobebrick, 1));
  86. }
  87.  
  88. public int AddFuel(int i)
  89. {
  90. if (i == 100)
  91. {
  92. return 100;
  93. }
  94. if (i == 2010)
  95. {
  96. return 16;
  97. }
  98. if (i == 2013)
  99. {
  100. return 2000;
  101. }
  102. if (i == 102)
  103. {
  104. return 8000;
  105. }
  106. return 0;
  107. }
  108. public String Version(){
  109. return "0.99";
  110. }
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement