// This script is to fix jetpack crafting issues.
// Specifically the ability to craft armored flux packs
// and decraft armored jet packs and flux packs
//
// NOTE: Energy stored is lost when using these scripts
// Defines
val IronPlate = <simplyjetpacks:metaitemmods:19>;
val BronzePlate = <simplyjetpacks:metaitemmods:20>;
val InvarPlate = <simplyjetpacks:metaitemmods:21>;
val EnderiumPlate = <simplyjetpacks:metaitemmods:22>;
val ReinforcedFluxPack = <simplyjetpacks:itemfluxpack:7>;
val ArmoredReinforcedFluxPack = <simplyjetpacks:itemfluxpack:9>;
val ResonateFluxPack = <simplyjetpacks:itemfluxpack:8>;
val ArmoredResonateFluxPack = <simplyjetpacks:itemfluxpack:10>;
val LeadStoneJetPack = <simplyjetpacks:itemjetpack:10>;
val ArmoredLeadStoneJetPack = <simplyjetpacks:itemjetpack:14>;
val HardenedJetPack = <simplyjetpacks:itemjetpack:11>;
val ArmoredHardenedJetPack = <simplyjetpacks:itemjetpack:15>;
val ReinforcedJetPack = <simplyjetpacks:itemjetpack:12>;
val ArmoredReinforcedJetPack = <simplyjetpacks:itemjetpack:16>;
val ResonateJetpack = <simplyjetpacks:itemjetpack:13>;
val ArmoredResonateJetpack = <simplyjetpacks:itemjetpack:17>;
// Add fluxpack recipes
recipes.addShapeless(ArmoredReinforcedFluxPack,
[BronzePlate, ReinforcedFluxPack]);
recipes.addShapeless(ArmoredResonateFluxPack,
[InvarPlate, ResonateFluxPack]);
// Decrafting recipes
// Decraft the armored flux packs into the armor and the flux pack
recipes.addShapeless(ReinforcedFluxPack,
[ArmoredReinforcedFluxPack.transformReplace(BronzePlate)]);
recipes.addShapeless(ResonateFluxPack,
[ArmoredResonateFluxPack.transformReplace(InvarPlate)]);
// Decraft for the armored jetpacks
recipes.addShapeless(LeadStoneJetPack,
[ArmoredLeadStoneJetPack.transformReplace(IronPlate)]);
recipes.addShapeless(HardenedJetPack,
[ArmoredHardenedJetPack.transformReplace(BronzePlate)]);
recipes.addShapeless(ReinforcedJetPack,
[ArmoredReinforcedJetPack.transformReplace(InvarPlate)]);
recipes.addShapeless(ResonateJetpack,
[ArmoredResonateJetpack.transformReplace(EnderiumPlate)]);