|
| 1 | +package com.github.gtexpert.gtbm.integration.gtfo.recipes; |
| 2 | + |
| 3 | +import net.minecraft.init.Items; |
| 4 | +import net.minecraft.item.ItemStack; |
| 5 | + |
| 6 | +import gregtech.api.recipes.GTRecipeHandler; |
| 7 | +import gregtech.api.recipes.RecipeMaps; |
| 8 | + |
| 9 | +import com.github.gtexpert.gtbm.api.util.Mods; |
| 10 | + |
| 11 | +import forestry.core.fluids.Fluids; |
| 12 | + |
| 13 | +public class GTFOOverrideRecipe { |
| 14 | + |
| 15 | + public static void init() { |
| 16 | + GTRecipeHandler.removeRecipesByInputs(RecipeMaps.EXTRACTOR_RECIPES, new ItemStack(Items.APPLE)); |
| 17 | + GTRecipeHandler.removeRecipesByInputs(RecipeMaps.EXTRACTOR_RECIPES, new ItemStack(Items.CARROT)); |
| 18 | + |
| 19 | + // Forestry Recipe |
| 20 | + RecipeMaps.EXTRACTOR_RECIPES.recipeBuilder() |
| 21 | + .input(Items.APPLE) |
| 22 | + .circuitMeta(1) |
| 23 | + .chancedOutput(Mods.Forestry.getItem("mulch"), 2000, 0) |
| 24 | + .fluidOutputs(Fluids.JUICE.getFluid(200)) |
| 25 | + .EUt(7).duration(32).buildAndRegister(); |
| 26 | + |
| 27 | + RecipeMaps.EXTRACTOR_RECIPES.recipeBuilder() |
| 28 | + .input(Items.CARROT) |
| 29 | + .circuitMeta(1) |
| 30 | + .chancedOutput(Mods.Forestry.getItem("mulch"), 2000, 0) |
| 31 | + .fluidOutputs(Fluids.JUICE.getFluid(200)) |
| 32 | + .EUt(7).duration(32).buildAndRegister(); |
| 33 | + |
| 34 | + // GTFO Recipe |
| 35 | + RecipeMaps.EXTRACTOR_RECIPES.recipeBuilder().EUt(1920).duration(200) |
| 36 | + .input(Items.CARROT) |
| 37 | + .circuitMeta(2) |
| 38 | + .outputs(Mods.GregTechFoodOption.getItem("gtfo_meta_item", 1, 52)) |
| 39 | + .buildAndRegister(); |
| 40 | + RecipeMaps.EXTRACTOR_RECIPES.recipeBuilder().EUt(1920).duration(200) |
| 41 | + .input(Items.APPLE) |
| 42 | + .circuitMeta(2) |
| 43 | + .outputs(Mods.GregTechFoodOption.getItem("gtfo_meta_item", 1, 53)) |
| 44 | + .buildAndRegister(); |
| 45 | + } |
| 46 | +} |
0 commit comments