#Name: powerStorage.zs #Author: Feed the Beast print("Initializing 'powerStorage.zs'..."); #disable all rf storage mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); #rftoolspower #low 250,000 RF storage @ 100 RF transfer per block recipes.remove(); recipes.addShaped(, [[, , ], [, , ], [, , ]]); #medium 10,000,000 RF storage @ 250 RF transfer per block recipes.remove(); recipes.addShaped("mediumPowerCellRecipe", , [[.marked("1"), , .marked("2")], [, , ], [.marked("3"), , .marked("4")]], function(output, inputs, crafting) { var power = 0; for i, item in inputs { if item.hasTag { var tags = item.tag; power += tags.energy; } } if power != 0 { return output.withTag({"energy": power}); } return output; }, null); #high 100,000,000 RF storage @ 1000 RF transfer per block recipes.remove(); recipes.addShaped("highPowerCellRecipe", , [[.marked("1"), , .marked("2")], [, , ], [.marked("3"), , .marked("4")]], function(output, inputs, crafting) { var power = 0; for i, item in inputs { if item.hasTag { var tags = item.tag; power += tags.energy; } } if power != 0 { return output.withTag({"energy": power}); } return output; }, null); #power info screen recipes.remove(); recipes.addShaped(, [[, , ], [, , ], [, , ]]); #remove power cores (using own recipes) mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); mods.jei.JEI.removeAndHide(); print("Initialized 'powerStorage.zs'");