Advertisement
Guest User

Hotfix for UBC.

a guest
Mar 5th, 2016
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.55 KB | None | 0 0
  1. import minetweaker.item.IItemStack;
  2. var rockTypes = [
  3. <UndergroundBiomes:igneousStone>,
  4. <UndergroundBiomes:igneousCobblestone>,
  5. <UndergroundBiomes:igneousStoneBrick>,
  6. <UndergroundBiomes:metamorphicStone>,
  7. <UndergroundBiomes:metamorphicCobblestone>,
  8. <UndergroundBiomes:metamorphicStoneBrick>,
  9. <UndergroundBiomes:sedimentaryStone>
  10. ] as IItemStack[];
  11. var stairsTypes = [
  12. <UndergroundBiomes:stairs.tile.igneousStone0>,
  13. <UndergroundBiomes:stairs.tile.igneousStone1>,
  14. <UndergroundBiomes:stairs.tile.igneousStone2>,
  15. <UndergroundBiomes:stairs.tile.igneousStone3>,
  16. <UndergroundBiomes:stairs.tile.igneousCobblestone0>,
  17. <UndergroundBiomes:stairs.tile.igneousCobblestone1>,
  18. <UndergroundBiomes:stairs.tile.igneousCobblestone2>,
  19. <UndergroundBiomes:stairs.tile.igneousCobblestone3>,
  20. <UndergroundBiomes:stairs.tile.igneousStoneBrick0>,
  21. <UndergroundBiomes:stairs.tile.igneousStoneBrick1>,
  22. <UndergroundBiomes:stairs.tile.igneousStoneBrick2>,
  23. <UndergroundBiomes:stairs.tile.igneousStoneBrick3>,
  24. <UndergroundBiomes:stairs.tile.metamorphicStone0>,
  25. <UndergroundBiomes:stairs.tile.metamorphicStone1>,
  26. <UndergroundBiomes:stairs.tile.metamorphicStone2>,
  27. <UndergroundBiomes:stairs.tile.metamorphicStone3>,
  28. <UndergroundBiomes:stairs.tile.metamorphicCobblestone0>,
  29. <UndergroundBiomes:stairs.tile.metamorphicCobblestone1>,
  30. <UndergroundBiomes:stairs.tile.metamorphicCobblestone2>,
  31. <UndergroundBiomes:stairs.tile.metamorphicCobblestone3>,
  32. <UndergroundBiomes:stairs.tile.metamorphicStoneBrick0>,
  33. <UndergroundBiomes:stairs.tile.metamorphicStoneBrick1>,
  34. <UndergroundBiomes:stairs.tile.metamorphicStoneBrick2>,
  35. <UndergroundBiomes:stairs.tile.metamorphicStoneBrick3>,
  36. <UndergroundBiomes:stairs.tile.sedimentaryStone0>,
  37. <UndergroundBiomes:stairs.tile.sedimentaryStone1>,
  38. <UndergroundBiomes:stairs.tile.sedimentaryStone2>,
  39. <UndergroundBiomes:stairs.tile.sedimentaryStone3>
  40. ] as IItemStack[];
  41. var buttonTypes = [
  42. <UndergroundBiomes:button.tile.igneousStone0>,
  43. <UndergroundBiomes:button.tile.igneousStone1>,
  44. <UndergroundBiomes:button.tile.igneousStone2>,
  45. <UndergroundBiomes:button.tile.igneousStone3>,
  46. <UndergroundBiomes:button.tile.igneousCobblestone0>,
  47. <UndergroundBiomes:button.tile.igneousCobblestone1>,
  48. <UndergroundBiomes:button.tile.igneousCobblestone2>,
  49. <UndergroundBiomes:button.tile.igneousCobblestone3>,
  50. <UndergroundBiomes:button.tile.igneousStoneBrick0>,
  51. <UndergroundBiomes:button.tile.igneousStoneBrick1>,
  52. <UndergroundBiomes:button.tile.igneousStoneBrick2>,
  53. <UndergroundBiomes:button.tile.igneousStoneBrick3>,
  54. <UndergroundBiomes:button.tile.metamorphicStone0>,
  55. <UndergroundBiomes:button.tile.metamorphicStone1>,
  56. <UndergroundBiomes:button.tile.metamorphicStone2>,
  57. <UndergroundBiomes:button.tile.metamorphicStone3>,
  58. <UndergroundBiomes:button.tile.metamorphicCobblestone0>,
  59. <UndergroundBiomes:button.tile.metamorphicCobblestone1>,
  60. <UndergroundBiomes:button.tile.metamorphicCobblestone2>,
  61. <UndergroundBiomes:button.tile.metamorphicCobblestone3>,
  62. <UndergroundBiomes:button.tile.metamorphicStoneBrick0>,
  63. <UndergroundBiomes:button.tile.metamorphicStoneBrick1>,
  64. <UndergroundBiomes:button.tile.metamorphicStoneBrick2>,
  65. <UndergroundBiomes:button.tile.metamorphicStoneBrick3>,
  66. <UndergroundBiomes:button.tile.sedimentaryStone0>,
  67. <UndergroundBiomes:button.tile.sedimentaryStone1>,
  68. <UndergroundBiomes:button.tile.sedimentaryStone2>,
  69. <UndergroundBiomes:button.tile.sedimentaryStone3>
  70. ] as IItemStack[];
  71. var metadata = [0, 1, 2, 3, 4, 5, 6, 7] as int[];
  72. var prefixes = [0, 0, 1, 1, 2, 2, 3, 3] as int[];
  73. var postfixes = [0, 8, 0, 8, 0, 8, 0, 8] as int[];
  74. for i in metadata
  75. {
  76. for j, rockType in rockTypes
  77. {
  78. var rock = rockType.definition.makeStack(i);
  79. var prefix = prefixes[i] + j * 4;
  80. var postfix = postfixes[i];
  81. var stairs = stairsTypes[prefix].definition.makeStack(postfix);
  82. var button = buttonTypes[prefix].definition.makeStack(postfix);
  83. recipes.remove(stairs);
  84. recipes.addShapedMirrored(stairs * 4, [
  85. [rock, null, null],
  86. [rock, rock, null],
  87. [rock, rock, rock]
  88. ]);
  89. recipes.remove(button);
  90. recipes.removeShapeless(<minecraft:stone_button>, [rock]);
  91. recipes.addShapeless(button, [rock]);
  92. recipes.addShapeless(<minecraft:stone_button>, [button]);
  93. }
  94. }
  95. recipes.addShapeless(<minecraft:stone_button>, [<ore:stone>]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement