Guest User

Untitled

a guest
Mar 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.66 KB | None | 0 0
  1. import crafttweaker.item.IItemStack;
  2. import crafttweaker.item.IIngredient;
  3. import mods.jei.JEI;
  4.  
  5. // Needed Mods: Iron Chests and Tech Reborn
  6.  
  7. var oreDictPlates as IIngredient[] = [
  8. <ore:plateCopper>, <ore:plateIron>, <ore:plateSilver>, <ore:plateGold>, <ore:plateDiamond>, <ore:plateObsidian>, <ore:glassReinforced>
  9. ];
  10. var ironChests as IItemStack[][] =[
  11. [<ironchest:iron_chest:3>, <ironchest:iron_chest:0>, <ironchest:iron_chest:4>, <ironchest:iron_chest:1>, <ironchest:iron_chest:2>, <ironchest:iron_chest:6>, <ironchest:iron_chest:5>],
  12. [<ironchest:iron_shulker_box_black:3>, <ironchest:iron_shulker_box_black:0>, <ironchest:iron_shulker_box_black:4>, <ironchest:iron_shulker_box_black:1>, <ironchest:iron_shulker_box_black:2>, <ironchest:iron_shulker_box_black:6>, <ironchest:iron_shulker_box_black:5>],
  13. [<ironchest:iron_shulker_box_blue:3>, <ironchest:iron_shulker_box_blue:0>, <ironchest:iron_shulker_box_blue:4>, <ironchest:iron_shulker_box_blue:1>, <ironchest:iron_shulker_box_blue:2>, <ironchest:iron_shulker_box_blue:6>, <ironchest:iron_shulker_box_blue:5>],
  14. [<ironchest:iron_shulker_box_brown:3>, <ironchest:iron_shulker_box_brown:0>, <ironchest:iron_shulker_box_brown:4>, <ironchest:iron_shulker_box_brown:1>, <ironchest:iron_shulker_box_brown:2>, <ironchest:iron_shulker_box_brown:6>, <ironchest:iron_shulker_box_brown:5>],
  15. [<ironchest:iron_shulker_box_cyan:3>, <ironchest:iron_shulker_box_cyan:0>, <ironchest:iron_shulker_box_cyan:4>, <ironchest:iron_shulker_box_cyan:1>, <ironchest:iron_shulker_box_cyan:2>, <ironchest:iron_shulker_box_cyan:6>, <ironchest:iron_shulker_box_cyan:5>],
  16. [<ironchest:iron_shulker_box_gray:3>, <ironchest:iron_shulker_box_gray:0>, <ironchest:iron_shulker_box_gray:4>, <ironchest:iron_shulker_box_gray:1>, <ironchest:iron_shulker_box_gray:2>, <ironchest:iron_shulker_box_gray:6>, <ironchest:iron_shulker_box_gray:5>],
  17. [<ironchest:iron_shulker_box_green:3>, <ironchest:iron_shulker_box_green:0>, <ironchest:iron_shulker_box_green:4>, <ironchest:iron_shulker_box_green:1>, <ironchest:iron_shulker_box_green:2>, <ironchest:iron_shulker_box_green:6>, <ironchest:iron_shulker_box_green:5>],
  18. [<ironchest:iron_shulker_box_light_blue:3>, <ironchest:iron_shulker_box_light_blue:0>, <ironchest:iron_shulker_box_light_blue:4>, <ironchest:iron_shulker_box_light_blue:1>, <ironchest:iron_shulker_box_light_blue:2>, <ironchest:iron_shulker_box_light_blue:6>, <ironchest:iron_shulker_box_light_blue:5>],
  19. [<ironchest:iron_shulker_box_lime:3>, <ironchest:iron_shulker_box_lime:0>, <ironchest:iron_shulker_box_lime:4>, <ironchest:iron_shulker_box_lime:1>, <ironchest:iron_shulker_box_lime:2>, <ironchest:iron_shulker_box_lime:6>, <ironchest:iron_shulker_box_lime:5>],
  20. [<ironchest:iron_shulker_box_magenta:3>, <ironchest:iron_shulker_box_magenta:0>, <ironchest:iron_shulker_box_magenta:4>, <ironchest:iron_shulker_box_magenta:1>, <ironchest:iron_shulker_box_magenta:2>, <ironchest:iron_shulker_box_magenta:6>, <ironchest:iron_shulker_box_magenta:5>],
  21. [<ironchest:iron_shulker_box_orange:3>, <ironchest:iron_shulker_box_orange:0>, <ironchest:iron_shulker_box_orange:4>, <ironchest:iron_shulker_box_orange:1>, <ironchest:iron_shulker_box_orange:2>, <ironchest:iron_shulker_box_orange:6>, <ironchest:iron_shulker_box_orange:5>],
  22. [<ironchest:iron_shulker_box_pink:3>, <ironchest:iron_shulker_box_pink:0>, <ironchest:iron_shulker_box_pink:4>, <ironchest:iron_shulker_box_pink:1>, <ironchest:iron_shulker_box_pink:2>, <ironchest:iron_shulker_box_pink:6>, <ironchest:iron_shulker_box_pink:5>],
  23. [<ironchest:iron_shulker_box_purple:3>, <ironchest:iron_shulker_box_purple:0>, <ironchest:iron_shulker_box_purple:4>, <ironchest:iron_shulker_box_purple:1>, <ironchest:iron_shulker_box_purple:2>, <ironchest:iron_shulker_box_purple:6>, <ironchest:iron_shulker_box_purple:5>],
  24. [<ironchest:iron_shulker_box_red:3>, <ironchest:iron_shulker_box_red:0>, <ironchest:iron_shulker_box_red:4>, <ironchest:iron_shulker_box_red:1>, <ironchest:iron_shulker_box_red:2>, <ironchest:iron_shulker_box_red:6>, <ironchest:iron_shulker_box_red:5>],
  25. [<ironchest:iron_shulker_box_silver:3>, <ironchest:iron_shulker_box_silver:0>, <ironchest:iron_shulker_box_silver:4>, <ironchest:iron_shulker_box_silver:1>, <ironchest:iron_shulker_box_silver:2>, <ironchest:iron_shulker_box_silver:6>, <ironchest:iron_shulker_box_silver:5>],
  26. [<ironchest:iron_shulker_box_white:3>, <ironchest:iron_shulker_box_white:0>, <ironchest:iron_shulker_box_white:4>, <ironchest:iron_shulker_box_white:1>, <ironchest:iron_shulker_box_white:2>, <ironchest:iron_shulker_box_white:6>, <ironchest:iron_shulker_box_white:5>],
  27. [<ironchest:iron_shulker_box_yellow:3>, <ironchest:iron_shulker_box_yellow:0>, <ironchest:iron_shulker_box_yellow:4>, <ironchest:iron_shulker_box_yellow:1>, <ironchest:iron_shulker_box_yellow:2>, <ironchest:iron_shulker_box_yellow:6>, <ironchest:iron_shulker_box_yellow:5>]
  28. ];
  29.  
  30. // Recipe Removal
  31. for i, chestList in ironChests {
  32. var boxChest = chestList[0];
  33. var boxBlack = chestList[1];
  34. var boxBlue = chestList[2];
  35. var boxBrown = chestList[3];
  36. var boxCyan = chestList[4];
  37. var boxGray = chestList[5];
  38. var boxGreen = chestList[6];
  39. var boxLightBlue = chestList[7];
  40. var boxLime = chestList[8];
  41. var boxMagenta = chestList[9];
  42. var boxOrange = chestList[10];
  43. var boxPink = chestList[11];
  44. var boxPurple = chestList[12];
  45. var boxRed = chestList[13];
  46. var boxSilver = chestList[14];
  47. var boxWhite = chestList[15];
  48. var boxYellow = chestList[16];
  49.  
  50. recipes.remove(boxChest);
  51. # recipes.remove(boxBlack);
  52. # recipes.remove(boxBlue);
  53. # recipes.remove(boxBrown);
  54. # recipes.remove(boxCyan);
  55. # recipes.remove(boxGray);
  56. # recipes.remove(boxGreen);
  57. # recipes.remove(boxLightBlue);
  58. # recipes.remove(boxLime);
  59. # recipes.remove(boxMagenta);
  60. # recipes.remove(boxOrange);
  61. # recipes.remove(boxPink);
  62. # recipes.remove(boxPurple);
  63. # recipes.remove(boxRed);
  64. # recipes.remove(boxSilver);
  65. # recipes.remove(boxWhite);
  66. # recipes.remove(boxYellow);
  67.  
  68. # Base Chest recipes
  69. if (i == 0) {
  70. recipes.addShaped(boxChest[i], [
  71. [oreDictPlates[i], oreDictPlates[i], oreDictPlates[i]],
  72. [oreDictPlates[i], <ore:chestWood>, oreDictPlates[i]],
  73. [oreDictPlates[i], oreDictPlates[i], oreDictPlates[i]]]);
  74. }
  75. # Upgrade Chest recipes
  76. if (i > 0) {
  77. val p == i - 1;
  78. recipes.addShaped(boxChest[i], [
  79. [oreDictPlates[i], oreDictPlates[i], oreDictPlates[i]],
  80. [oreDictPlates[i], boxChest[p], oreDictPlates[i]],
  81. [oreDictPlates[i], oreDictPlates[i], oreDictPlates[i]]]);
  82. }
  83. # Secondary Upgrade Chest recipes
  84. recipes.addShaped(boxChest[i], [
  85. [<ore:blockGlass>, oreDictPlates[i], <ore:blockGlass>],
  86. [oreDictPlates[i], boxChest[p], oreDictPlates[i]],
  87. [<ore:blockGlass>, oreDictPlates[i], <ore:blockGlass>]]);
  88. }
  89. }
Add Comment
Please, Sign In to add comment