Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import crafttweaker.item.IItemStack;
- import crafttweaker.item.IIngredient;
- import mods.jei.JEI;
- // Needed Mods: Iron Chests and Tech Reborn
- var oreDictPlates as IIngredient[] = [
- <ore:plateCopper>, <ore:plateIron>, <ore:plateSilver>, <ore:plateGold>, <ore:plateDiamond>, <ore:plateObsidian>, <ore:glassReinforced>
- ];
- var ironChests as IItemStack[][] =[
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>],
- [<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>]
- ];
- // Recipe Removal
- for i, chestList in ironChests {
- var boxChest = chestList[0];
- var boxBlack = chestList[1];
- var boxBlue = chestList[2];
- var boxBrown = chestList[3];
- var boxCyan = chestList[4];
- var boxGray = chestList[5];
- var boxGreen = chestList[6];
- var boxLightBlue = chestList[7];
- var boxLime = chestList[8];
- var boxMagenta = chestList[9];
- var boxOrange = chestList[10];
- var boxPink = chestList[11];
- var boxPurple = chestList[12];
- var boxRed = chestList[13];
- var boxSilver = chestList[14];
- var boxWhite = chestList[15];
- var boxYellow = chestList[16];
- recipes.remove(boxChest);
- # recipes.remove(boxBlack);
- # recipes.remove(boxBlue);
- # recipes.remove(boxBrown);
- # recipes.remove(boxCyan);
- # recipes.remove(boxGray);
- # recipes.remove(boxGreen);
- # recipes.remove(boxLightBlue);
- # recipes.remove(boxLime);
- # recipes.remove(boxMagenta);
- # recipes.remove(boxOrange);
- # recipes.remove(boxPink);
- # recipes.remove(boxPurple);
- # recipes.remove(boxRed);
- # recipes.remove(boxSilver);
- # recipes.remove(boxWhite);
- # recipes.remove(boxYellow);
- # Base Chest recipes
- if (i == 0) {
- recipes.addShaped(boxChest[i], [
- [oreDictPlates[i], oreDictPlates[i], oreDictPlates[i]],
- [oreDictPlates[i], <ore:chestWood>, oreDictPlates[i]],
- [oreDictPlates[i], oreDictPlates[i], oreDictPlates[i]]]);
- }
- # Upgrade Chest recipes
- if (i > 0) {
- val p == i - 1;
- recipes.addShaped(boxChest[i], [
- [oreDictPlates[i], oreDictPlates[i], oreDictPlates[i]],
- [oreDictPlates[i], boxChest[p], oreDictPlates[i]],
- [oreDictPlates[i], oreDictPlates[i], oreDictPlates[i]]]);
- }
- # Secondary Upgrade Chest recipes
- recipes.addShaped(boxChest[i], [
- [<ore:blockGlass>, oreDictPlates[i], <ore:blockGlass>],
- [oreDictPlates[i], boxChest[p], oreDictPlates[i]],
- [<ore:blockGlass>, oreDictPlates[i], <ore:blockGlass>]]);
- }
- }
Add Comment
Please, Sign In to add comment