Guest User

Untitled

a guest
Sep 10th, 2011
20
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package net.minecraft.src;
  2. public class mod_Block extends BaseMod
  3. {
  4. public static int blockBaseTexture;
  5. public static int blockBlank1Texture;
  6. public static int blockBlank2Texture;
  7. public static Block blockBase = new BlockBase(225, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBase");
  8. public static Block blockBlank1 = new BlockBlank1(224, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank1");
  9. public static Block blockBlank2 = new BlockBlank2(223, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank2");
  10. public static Block blockBlank3 = new BlockBlank3(222, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank3");
  11. public static Block blockBlank4 = new BlockBlank4(221, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank4");
  12. public static Block blockBlank5 = new BlockBlank5(220, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank5");
  13. public static Block blockBlank6 = new BlockBlank6(219, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank6");
  14. public static Block blockBlank7 = new BlockBlank7(218, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank7");
  15. public static Block blockBlank8 = new BlockBlank8(217, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank8");
  16. public static Block blockBlank9 = new BlockBlank9(216, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank9");
  17. public static Block blockBlank10 = new BlockBlank10(215, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank10");
  18. public static Block blockBlank11 = new BlockBlank11(214, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank11");
  19. public static Block blockBlank12 = new BlockBlank12(213, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank12");
  20. public static Block blockBlank13 = new BlockBlank13(212, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank13");
  21. public static Block blockBlank14 = new BlockBlank14(211, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank14");
  22. public static Block blockBlank15 = new BlockBlank15(210, 0).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("blockBlank15");
  23. public static final Block stairBase = (new BlockStairs(133, blockBase)).setBlockName("stairBase");
  24. public static final Block stairBlock1 = (new BlockStairs(132, blockBlank1)).setBlockName("stairBlock1");
  25. public static final Block stairBlock2 = (new BlockStairs(131, blockBlank2)).setBlockName("stairBlock2");
  26. public static final Block stairBlock3 = (new BlockStairs(130, blockBlank3)).setBlockName("stairBlock3");
  27. public static final Block stairBlock4 = (new BlockStairs(129, blockBlank4)).setBlockName("stairBlock4");
  28. public static final Block stairBlock5 = (new BlockStairs(128, blockBlank5)).setBlockName("stairBlock5");
  29. public static final Block stairBlock6 = (new BlockStairs(127, blockBlank6)).setBlockName("stairBlock6");
  30. public static final Block stairBlock7 = (new BlockStairs(126, blockBlank7)).setBlockName("stairBlock7");
  31. public static final Block stairBlock8 = (new BlockStairs(125, blockBlank8)).setBlockName("stairBlock8");
  32. public static final Block stairBlock9 = (new BlockStairs(124, blockBlank9)).setBlockName("stairBlock9");
  33. public static final Block stairBlock10 = (new BlockStairs(123, blockBlank10)).setBlockName("stairBlock10");
  34. public static final Block stairBlock11 = (new BlockStairs(122, blockBlank11)).setBlockName("stairBlock11");
  35. public static final Block stairBlock12 = (new BlockStairs(121, blockBlank12)).setBlockName("stairBlock12");
  36. public static final Block stairBlock13 = (new BlockStairs(120, blockBlank13)).setBlockName("stairBlock13");
  37. public static final Block stairBlock14 = (new BlockStairs(119, blockBlank14)).setBlockName("stairBlock14");
  38. public static final Block stairBlock15 = (new BlockStairs(118, blockBlank15)).setBlockName("stairBlock15");
  39. public static Block blockStepBase = (new BlockStepBase(110, 0)).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("BlockStepBase");
  40. public static Block blockDStepBase = (new BlockStepBase(111, 0)).setHardness(0.1F).setResistance(6000.0F).setLightValue(0.0F).setBlockName("BlockDStepBase");
  41.  
  42. public String Version()
  43. {
  44. return "1.7.3";
  45. }
  46.  
  47. public mod_Block()
  48. {
  49. Item.itemsList[blockStepBase.blockID] = (new ItemBlank(blockStepBase.blockID - 256)).setItemName("BlankBlock Step");
  50. ModLoader.RegisterBlock(blockBase);
  51. ModLoader.RegisterBlock(blockBlank1);
  52. ModLoader.RegisterBlock(blockBlank2);
  53. ModLoader.RegisterBlock(blockBlank3);
  54. ModLoader.RegisterBlock(blockBlank4);
  55. ModLoader.RegisterBlock(blockBlank5);
  56. ModLoader.RegisterBlock(blockBlank6);
  57. ModLoader.RegisterBlock(blockBlank7);
  58. ModLoader.RegisterBlock(blockBlank8);
  59. ModLoader.RegisterBlock(blockBlank9);
  60. ModLoader.RegisterBlock(blockBlank10);
  61. ModLoader.RegisterBlock(blockBlank11);
  62. ModLoader.RegisterBlock(blockBlank12);
  63. ModLoader.RegisterBlock(blockBlank13);
  64. ModLoader.RegisterBlock(blockBlank14);
  65. ModLoader.RegisterBlock(blockBlank15);
  66. ModLoader.RegisterBlock(stairBase);
  67. ModLoader.RegisterBlock(stairBlock1);
  68. ModLoader.RegisterBlock(stairBlock2);
  69. ModLoader.RegisterBlock(stairBlock3);
  70. ModLoader.RegisterBlock(stairBlock4);
  71. ModLoader.RegisterBlock(stairBlock5);
  72. ModLoader.RegisterBlock(stairBlock6);
  73. ModLoader.RegisterBlock(stairBlock7);
  74. ModLoader.RegisterBlock(stairBlock8);
  75. ModLoader.RegisterBlock(stairBlock9);
  76. ModLoader.RegisterBlock(stairBlock10);
  77. ModLoader.RegisterBlock(stairBlock11);
  78. ModLoader.RegisterBlock(stairBlock12);
  79. ModLoader.RegisterBlock(stairBlock13);
  80. ModLoader.RegisterBlock(stairBlock14);
  81. ModLoader.RegisterBlock(stairBlock15);
  82. ModLoader.RegisterBlock(blockStepBase);
  83. ModLoader.RegisterBlock(blockDStepBase);
  84. blockBaseTexture = ModLoader.addOverride("/terrain.png", "/Block/Base.png");
  85. blockBlank1Texture = ModLoader.addOverride("/terrain.png", "/Block/One.png");
  86. blockBlank2Texture = ModLoader.addOverride("/terrain.png", "/Block/Two.png");
  87. blockBase.blockIndexInTexture = blockBaseTexture;
  88. blockBlank1.blockIndexInTexture = blockBlank1Texture;
  89. blockBlank2.blockIndexInTexture = blockBlank2Texture;
  90. blockBlank3.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Three.png");
  91. blockBlank4.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Four.png");
  92. blockBlank5.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Five.png");
  93. blockBlank6.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Six.png");
  94. blockBlank7.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Seven.png");
  95. blockBlank8.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Eight.png");
  96. blockBlank9.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Nine.png");
  97. blockBlank10.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Ten.png");
  98. blockBlank11.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Eleven.png");
  99. blockBlank12.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Twelve.png");
  100. blockBlank13.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Thirteen.png");
  101. blockBlank14.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Fourteen.png");
  102. blockBlank15.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "/Block/Fifteen.png");
  103. ModLoader.AddName(blockBase, "Base");
  104. ModLoader.AddName(blockBlank1, "One");
  105. ModLoader.AddName(blockBlank2, "two");
  106. ModLoader.AddName(blockBlank3, "Three");
  107. ModLoader.AddName(blockBlank4, "Four");
  108. ModLoader.AddName(blockBlank5, "Five");
  109. ModLoader.AddName(blockBlank6, "Six");
  110. ModLoader.AddName(blockBlank7, "Seven");
  111. ModLoader.AddName(blockBlank8, "Eight");
  112. ModLoader.AddName(blockBlank9, "Nine");
  113. ModLoader.AddName(blockBlank10, "Ten");
  114. ModLoader.AddName(blockBlank11, "Eleven");
  115. ModLoader.AddName(blockBlank12, "Twelve");
  116. ModLoader.AddName(blockBlank13, "Thirteen");
  117. ModLoader.AddName(blockBlank14, "Fourteen");
  118. ModLoader.AddName(blockBlank15, "Fifteen");
  119. ModLoader.AddName(stairBase, "stairBase");
  120. ModLoader.AddName(stairBlock1, "StairOne");
  121. ModLoader.AddName(stairBlock2, "StairTwo");
  122. ModLoader.AddName(stairBlock3, "StairThree");
  123. ModLoader.AddName(stairBlock4, "StairFour");
  124. ModLoader.AddName(stairBlock5, "StairFive");
  125. ModLoader.AddName(stairBlock6, "StairSix");
  126. ModLoader.AddName(stairBlock7, "StairSeven");
  127. ModLoader.AddName(stairBlock8, "StairEight");
  128. ModLoader.AddName(stairBlock9, "StairNine");
  129. ModLoader.AddName(stairBlock10, "StairTen");
  130. ModLoader.AddName(stairBlock11, "StairEleven");
  131. ModLoader.AddName(stairBlock12, "StairTwelve");
  132. ModLoader.AddName(stairBlock13, "StairThirteen");
  133. ModLoader.AddName(stairBlock14, "StairFourteen");
  134. ModLoader.AddName(stairBlock15, "StairFifteen");
  135. ModLoader.AddName(blockStepBase, "BaseStep");
  136. ModLoader.AddName(blockDStepBase, "BaseDStep");
  137. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "##","##", Character.valueOf('#'), Block.cobblestone});
  138. ModLoader.AddRecipe(new ItemStack(blockBlank1, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 1)});
  139. ModLoader.AddRecipe(new ItemStack(blockBlank2, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 1)});
  140. ModLoader.AddRecipe(new ItemStack(blockBlank3, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 2)});
  141. ModLoader.AddRecipe(new ItemStack(blockBlank4, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 4)});
  142. ModLoader.AddRecipe(new ItemStack(blockBlank5, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 5)});
  143. ModLoader.AddRecipe(new ItemStack(blockBlank6, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 6)});
  144. ModLoader.AddRecipe(new ItemStack(blockBlank7, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 7)});
  145. ModLoader.AddRecipe(new ItemStack(blockBlank8, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 8)});
  146. ModLoader.AddRecipe(new ItemStack(blockBlank9, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 9)});
  147. ModLoader.AddRecipe(new ItemStack(blockBlank10, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 10)});
  148. ModLoader.AddRecipe(new ItemStack(blockBlank11, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 11)});
  149. ModLoader.AddRecipe(new ItemStack(blockBlank12, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 12)});
  150. ModLoader.AddRecipe(new ItemStack(blockBlank13, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 13)});
  151. ModLoader.AddRecipe(new ItemStack(blockBlank14, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 14)});
  152. ModLoader.AddRecipe(new ItemStack(blockBlank15, 1), new Object[]{ "#X", Character.valueOf('#'), blockBase, Character.valueOf('X'), new ItemStack(Item.dyePowder, 1, 15)});
  153. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank1});
  154. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank2});
  155. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank3});
  156. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank4});
  157. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank5});
  158. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank6});
  159. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank7});
  160. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank8});
  161. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank9});
  162. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank10});
  163. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank11});
  164. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank12});
  165. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank13});
  166. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank14});
  167. ModLoader.AddRecipe(new ItemStack(blockBase, 1), new Object[]{ "#", Character.valueOf('#'), blockBlank15});
  168. ModLoader.AddRecipe(new ItemStack(stairBase, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBase});
  169. ModLoader.AddRecipe(new ItemStack(stairBlock1, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank1});
  170. ModLoader.AddRecipe(new ItemStack(stairBlock2, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank2});
  171. ModLoader.AddRecipe(new ItemStack(stairBlock3, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank3});
  172. ModLoader.AddRecipe(new ItemStack(stairBlock4, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank4});
  173. ModLoader.AddRecipe(new ItemStack(stairBlock5, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank5});
  174. ModLoader.AddRecipe(new ItemStack(stairBlock6, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank6});
  175. ModLoader.AddRecipe(new ItemStack(stairBlock7, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank7});
  176. ModLoader.AddRecipe(new ItemStack(stairBlock8, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank8});
  177. ModLoader.AddRecipe(new ItemStack(stairBlock9, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank9});
  178. ModLoader.AddRecipe(new ItemStack(stairBlock10, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank10});
  179. ModLoader.AddRecipe(new ItemStack(stairBlock11, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank11});
  180. ModLoader.AddRecipe(new ItemStack(stairBlock12, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank12});
  181. ModLoader.AddRecipe(new ItemStack(stairBlock13, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank13});
  182. ModLoader.AddRecipe(new ItemStack(stairBlock14, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank14});
  183. ModLoader.AddRecipe(new ItemStack(stairBlock15, 6), new Object[]{ "# ", "## ", "###", Character.valueOf('#'), blockBlank15});
  184. ModLoader.AddRecipe(new ItemStack(blockStepBase, 3,0), new Object[]{ "###", Character.valueOf('#'), blockBase});
  185. ModLoader.AddRecipe(new ItemStack(blockStepBase, 3,1), new Object[]{ "###", Character.valueOf('#'), blockBlank1});
  186. ModLoader.AddRecipe(new ItemStack(blockStepBase, 3,2), new Object[]{ "###", Character.valueOf('#'), blockBlank2});
  187. ModLoader.AddRecipe(new ItemStack(blockStepBase, 1), new Object[]{ "#", Character.valueOf('#'), blockStepBase});
  188. }
  189. }
RAW Paste Data