Search in sources :

Example 1 with NasaWorkbenchRecipe

use of micdoodle8.mods.galacticraft.core.recipe.NasaWorkbenchRecipe in project MorePlanets by SteveKunG.

the class CraftingManagerMP method addOtherRecipe.

private static void addOtherRecipe() {
    HashMap<Integer, ItemStack> input = new HashMap<>();
    // compressor
    RecipeHelper.addCompressorRecipe(new ItemStack(DionaItems.DIONA_ITEM, 1, 3), "XXX", "XXX", "XXX", 'X', new ItemStack(DionaItems.DIONA_ITEM, 1, 1));
    RecipeHelper.addShapelessCompressorRecipe(new ItemStack(DionaItems.DIONA_ITEM, 1, 2), new ItemStack(DionaItems.DIONA_ITEM, 1, 0), new ItemStack(DionaItems.DIONA_ITEM, 1, 0));
    RecipeHelper.addShapelessCompressorRecipe(new ItemStack(ChalosItems.CHALOS_ITEM, 1, 2), new ItemStack(ChalosItems.CHALOS_ITEM, 1, 0), new ItemStack(ChalosItems.CHALOS_ITEM, 1, 0));
    RecipeHelper.addShapelessCompressorRecipe(new ItemStack(ChalosItems.CHALOS_ITEM, 1, 3), new ItemStack(ChalosItems.CHALOS_ITEM, 1, 1), new ItemStack(ChalosItems.CHALOS_ITEM, 1, 1));
    RecipeHelper.addShapelessCompressorRecipe(new ItemStack(FronosItems.FRONOS_ITEM, 1, 1), new ItemStack(FronosItems.FRONOS_ITEM, 1, 0), new ItemStack(FronosItems.FRONOS_ITEM, 1, 0));
    // rocket crusher
    for (int i = 0; i < 4; i++) {
        RecipeHelper.addRocketCrusherRecipe(new ItemStack(DionaItems.TIER_4_ROCKET_PART, 21, 0), "DDD", "DRD", "DDD", 'D', new ItemStack(AsteroidsItems.basicItem, 1, 5), 'R', new ItemStack(AsteroidsItems.tier3Rocket, 1, i));
        RecipeHelper.addRocketCrusherRecipe(new ItemStack(ChalosItems.TIER_5_ROCKET_PART, 21, 0), "III", "DRD", "SSS", 'D', new ItemStack(DionaItems.TIER_4_ROCKET_PART, 1, 0), 'I', new ItemStack(DionaItems.DIONA_ITEM, 1, 2), 'S', new ItemStack(DionaItems.DIONA_ITEM, 1, 3), 'R', new ItemStack(DionaItems.TIER_4_ROCKET, 1, i));
        RecipeHelper.addRocketCrusherRecipe(new ItemStack(NibiruItems.NIBIRU_ITEM, 21, 4), "III", "DRD", "SSS", 'D', new ItemStack(ChalosItems.TIER_5_ROCKET_PART, 1, 0), 'I', new ItemStack(ChalosItems.CHALOS_ITEM, 1, 2), 'S', new ItemStack(ChalosItems.CHALOS_ITEM, 1, 3), 'R', new ItemStack(ChalosItems.TIER_5_ROCKET, 1, i));
    }
    // deconstructor
    // tier 3 plate
    TileEntityDeconstructor.addSalvage(new ItemStack(DionaItems.TIER_4_ROCKET_PART, 1, 0));
    TileEntityDeconstructor.addSalvage(new ItemStack(DionaItems.TIER_4_ROCKET_PART, 1, 2));
    TileEntityDeconstructor.addSalvage(new ItemStack(DionaItems.TIER_4_ROCKET_PART, 1, 3));
    // tier 4 plate
    TileEntityDeconstructor.addSalvage(new ItemStack(ChalosItems.TIER_5_ROCKET_PART));
    // tier 5 plate
    TileEntityDeconstructor.addSalvage(new ItemStack(NibiruItems.NIBIRU_ITEM, 1, 4));
    TileEntityDeconstructor.addSalvage(new ItemStack(NibiruItems.NIBIRU_ITEM, 1, 2));
    TileEntityDeconstructor.addSalvage(new ItemStack(NibiruItems.NIBIRU_ITEM, 1, 3));
    TileEntityDeconstructor.knownRecipes.addAll(Tier4RocketRecipes.getRocketRecipes());
    TileEntityDeconstructor.knownRecipes.addAll(Tier5RocketRecipes.getRocketRecipes());
    TileEntityDeconstructor.knownRecipes.addAll(Tier6RocketRecipes.getRocketRecipes());
    // dark energy transform
    input.put(0, new ItemStack(Items.ENDER_PEARL));
    input.put(1, new ItemStack(DionaItems.DIONA_ITEM, 4, 5));
    DarkEnergyRecipeData.registerRecipe(input, new ItemStack(DionaItems.DARK_ENERGY_PEARL), 120);
    input = new HashMap<>();
    input.put(0, new ItemStack(Items.IRON_INGOT));
    input.put(1, new ItemStack(DionaItems.DIONA_ITEM, 2, 5));
    DarkEnergyRecipeData.registerRecipe(input, new ItemStack(DionaItems.DIONA_ITEM, 1, 6), 80);
    // black hole storage
    input = new HashMap<>();
    input.put(1, new ItemStack(DionaItems.DIONA_ITEM, 1, 7));
    input.put(2, new ItemStack(DionaItems.DIONA_ITEM, 1, 7));
    input.put(3, new ItemStack(DionaItems.DIONA_ITEM, 1, 7));
    input.put(4, new ItemStack(DionaItems.DIONA_ITEM, 1, 7));
    input.put(5, new ItemStack(DionaItems.DIONA_ITEM, 1, 7));
    input.put(6, new ItemStack(DionaItems.DIONA_ITEM, 1, 7));
    input.put(7, new ItemStack(DionaItems.DIONA_ITEM, 1, 7));
    input.put(8, new ItemStack(DionaItems.DIONA_ITEM, 1, 7));
    input.put(9, new ItemStack(DionaItems.DIONA_ITEM, 1, 7));
    input.put(10, new ItemStack(GCItems.flagPole));
    input.put(11, new ItemStack(GCItems.flagPole));
    input.put(12, new ItemStack(GCItems.flagPole));
    input.put(13, new ItemStack(DionaItems.DIONA_ITEM, 1, 6));
    input.put(14, new ItemStack(DionaItems.TIER_4_ROCKET_PART, 1, 0));
    input.put(15, new ItemStack(DionaItems.DIONA_ITEM, 1, 6));
    input.put(16, new ItemStack(DionaItems.TIER_4_ROCKET_PART, 1, 0));
    input.put(17, new ItemStack(DionaItems.DIONA_ITEM, 1, 6));
    input.put(18, new ItemStack(DionaItems.DIONA_ITEM, 1, 6));
    input.put(19, new ItemStack(DionaItems.TIER_4_ROCKET_PART, 1, 0));
    input.put(20, new ItemStack(Items.ENDER_EYE));
    input.put(21, new ItemStack(DionaItems.TIER_4_ROCKET_PART, 1, 0));
    input.put(22, new ItemStack(DionaItems.DIONA_ITEM, 1, 6));
    BlackHoleStorageRecipes.recipes.add(new NasaWorkbenchRecipe(new ItemStack(MPBlocks.BLACK_HOLE_STORAGE), input));
}
Also used : NasaWorkbenchRecipe(micdoodle8.mods.galacticraft.core.recipe.NasaWorkbenchRecipe) HashMap(java.util.HashMap) ItemStack(net.minecraft.item.ItemStack)

Example 2 with NasaWorkbenchRecipe

use of micdoodle8.mods.galacticraft.core.recipe.NasaWorkbenchRecipe in project Galacticraft by micdoodle8.

the class AsteroidsModule method init.

@Override
public void init(FMLInitializationEvent event) {
    // Set creative tab item to Astro Miner
    ((CreativeTabGC) GalacticraftCore.galacticraftItemsTab).setItemForTab(AsteroidsItems.astroMiner);
    this.registerMicroBlocks();
    SchematicRegistry.registerSchematicRecipe(new SchematicTier3Rocket());
    SchematicRegistry.registerSchematicRecipe(new SchematicAstroMiner());
    GalacticraftCore.packetPipeline.addDiscriminator(7, PacketSimpleAsteroids.class);
    AsteroidsTickHandlerServer eventHandler = new AsteroidsTickHandlerServer();
    MinecraftForge.EVENT_BUS.register(eventHandler);
    this.registerEntities();
    RecipeManagerAsteroids.loadRecipes();
    AsteroidsModule.planetAsteroids = new Planet("asteroids").setParentSolarSystem(GalacticraftCore.solarSystemSol);
    AsteroidsModule.planetAsteroids.setDimensionInfo(ConfigManagerAsteroids.dimensionIDAsteroids, WorldProviderAsteroids.class).setTierRequired(3);
    AsteroidsModule.planetAsteroids.setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(1.375F, 1.375F)).setRelativeOrbitTime(45.0F).setPhaseShift((float) (Math.random() * (2 * Math.PI)));
    AsteroidsModule.planetAsteroids.setBodyIcon(new ResourceLocation(Constants.ASSET_PREFIX, "textures/gui/celestialbodies/asteroid.png"));
    AsteroidsModule.planetAsteroids.setAtmosphere(new AtmosphereInfo(false, false, false, -1.5F, 0.05F, 0.0F));
    AsteroidsModule.planetAsteroids.addChecklistKeys("equip_oxygen_suit", "craft_grapple_hook", "thermal_padding");
    GalaxyRegistry.registerPlanet(AsteroidsModule.planetAsteroids);
    GalacticraftRegistry.registerTeleportType(WorldProviderAsteroids.class, new TeleportTypeAsteroids());
    HashMap<Integer, ItemStack> input = new HashMap<>();
    ItemStack plateTier3 = new ItemStack(AsteroidsItems.basicItem, 1, 5);
    ItemStack rocketFinsTier2 = new ItemStack(AsteroidsItems.basicItem, 1, 2);
    input.put(1, new ItemStack(AsteroidsItems.heavyNoseCone));
    input.put(2, plateTier3);
    input.put(3, plateTier3);
    input.put(4, plateTier3);
    input.put(5, plateTier3);
    input.put(6, plateTier3);
    input.put(7, plateTier3);
    input.put(8, plateTier3);
    input.put(9, plateTier3);
    input.put(10, plateTier3);
    input.put(11, plateTier3);
    input.put(12, new ItemStack(GCItems.rocketEngine, 1, 1));
    input.put(13, rocketFinsTier2);
    input.put(14, rocketFinsTier2);
    input.put(15, new ItemStack(AsteroidsItems.basicItem, 1, 1));
    input.put(16, new ItemStack(GCItems.rocketEngine, 1, 1));
    input.put(17, rocketFinsTier2);
    input.put(18, rocketFinsTier2);
    input.put(19, null);
    input.put(20, null);
    input.put(21, null);
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 0), input));
    HashMap<Integer, ItemStack> input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, new ItemStack(Blocks.chest));
    input2.put(20, null);
    input2.put(21, null);
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 1), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, null);
    input2.put(20, new ItemStack(Blocks.chest));
    input2.put(21, null);
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 1), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, null);
    input2.put(20, null);
    input2.put(21, new ItemStack(Blocks.chest));
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 1), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, new ItemStack(Blocks.chest));
    input2.put(20, new ItemStack(Blocks.chest));
    input2.put(21, null);
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 2), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, new ItemStack(Blocks.chest));
    input2.put(20, null);
    input2.put(21, new ItemStack(Blocks.chest));
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 2), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, null);
    input2.put(20, new ItemStack(Blocks.chest));
    input2.put(21, new ItemStack(Blocks.chest));
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 2), input2));
    input2 = new HashMap<Integer, ItemStack>(input);
    input2.put(19, new ItemStack(Blocks.chest));
    input2.put(20, new ItemStack(Blocks.chest));
    input2.put(21, new ItemStack(Blocks.chest));
    GalacticraftRegistry.addT3RocketRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.tier3Rocket, 1, 3), input2));
    input = new HashMap<Integer, ItemStack>();
    input.put(1, new ItemStack(GCItems.heavyPlatingTier1));
    input.put(3, new ItemStack(GCItems.heavyPlatingTier1));
    input.put(5, new ItemStack(GCItems.heavyPlatingTier1));
    input.put(11, new ItemStack(GCItems.heavyPlatingTier1));
    input.put(2, new ItemStack(AsteroidsItems.orionDrive));
    input.put(4, new ItemStack(AsteroidsItems.orionDrive));
    input.put(9, new ItemStack(AsteroidsItems.orionDrive));
    input.put(10, new ItemStack(AsteroidsItems.orionDrive));
    input.put(12, new ItemStack(AsteroidsItems.orionDrive));
    input.put(6, new ItemStack(GCItems.basicItem, 1, 14));
    input.put(7, new ItemStack(Blocks.chest));
    input.put(8, new ItemStack(Blocks.chest));
    input.put(13, new ItemStack(AsteroidsItems.basicItem, 1, 8));
    input.put(14, new ItemStack(GCItems.flagPole));
    GalacticraftRegistry.addAstroMinerRecipe(new NasaWorkbenchRecipe(new ItemStack(AsteroidsItems.astroMiner, 1, 0), input));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T1_HELMET, EnumExtendedInventorySlot.THERMAL_HELMET, new ItemStack(AsteroidsItems.thermalPadding, 1, 0));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T1_CHESTPLATE, EnumExtendedInventorySlot.THERMAL_CHESTPLATE, new ItemStack(AsteroidsItems.thermalPadding, 1, 1));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T1_LEGGINGS, EnumExtendedInventorySlot.THERMAL_LEGGINGS, new ItemStack(AsteroidsItems.thermalPadding, 1, 2));
    GalacticraftRegistry.registerGear(Constants.GEAR_ID_THERMAL_PADDING_T1_BOOTS, EnumExtendedInventorySlot.THERMAL_BOOTS, new ItemStack(AsteroidsItems.thermalPadding, 1, 3));
}
Also used : SchematicTier3Rocket(micdoodle8.mods.galacticraft.planets.asteroids.schematic.SchematicTier3Rocket) NasaWorkbenchRecipe(micdoodle8.mods.galacticraft.core.recipe.NasaWorkbenchRecipe) AtmosphereInfo(micdoodle8.mods.galacticraft.api.world.AtmosphereInfo) AsteroidsTickHandlerServer(micdoodle8.mods.galacticraft.planets.asteroids.tick.AsteroidsTickHandlerServer) HashMap(java.util.HashMap) SchematicAstroMiner(micdoodle8.mods.galacticraft.planets.asteroids.schematic.SchematicAstroMiner) WorldProviderAsteroids(micdoodle8.mods.galacticraft.planets.asteroids.dimension.WorldProviderAsteroids) ResourceLocation(net.minecraft.util.ResourceLocation) CelestialBody(micdoodle8.mods.galacticraft.api.galaxies.CelestialBody) CreativeTabGC(micdoodle8.mods.galacticraft.core.util.CreativeTabGC) TeleportTypeAsteroids(micdoodle8.mods.galacticraft.planets.asteroids.dimension.TeleportTypeAsteroids) Planet(micdoodle8.mods.galacticraft.api.galaxies.Planet) ItemStack(net.minecraft.item.ItemStack)

Aggregations

HashMap (java.util.HashMap)2 NasaWorkbenchRecipe (micdoodle8.mods.galacticraft.core.recipe.NasaWorkbenchRecipe)2 ItemStack (net.minecraft.item.ItemStack)2 CelestialBody (micdoodle8.mods.galacticraft.api.galaxies.CelestialBody)1 Planet (micdoodle8.mods.galacticraft.api.galaxies.Planet)1 AtmosphereInfo (micdoodle8.mods.galacticraft.api.world.AtmosphereInfo)1 CreativeTabGC (micdoodle8.mods.galacticraft.core.util.CreativeTabGC)1 TeleportTypeAsteroids (micdoodle8.mods.galacticraft.planets.asteroids.dimension.TeleportTypeAsteroids)1 WorldProviderAsteroids (micdoodle8.mods.galacticraft.planets.asteroids.dimension.WorldProviderAsteroids)1 SchematicAstroMiner (micdoodle8.mods.galacticraft.planets.asteroids.schematic.SchematicAstroMiner)1 SchematicTier3Rocket (micdoodle8.mods.galacticraft.planets.asteroids.schematic.SchematicTier3Rocket)1 AsteroidsTickHandlerServer (micdoodle8.mods.galacticraft.planets.asteroids.tick.AsteroidsTickHandlerServer)1 ResourceLocation (net.minecraft.util.ResourceLocation)1