Skip to content

Commit

Permalink
fix catwalks recycling (#936)
Browse files Browse the repository at this point in the history
  • Loading branch information
chochem authored Aug 16, 2024
1 parent 303c5a0 commit 0114bc3
Showing 1 changed file with 19 additions and 26 deletions.
45 changes: 19 additions & 26 deletions src/main/java/com/dreammaster/scripts/ScriptCatWalk.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import static gregtech.api.enums.Mods.CatWalks;
import static gregtech.api.enums.Mods.Minecraft;
import static gregtech.api.recipe.RecipeMaps.assemblerRecipes;
import static gregtech.api.recipe.RecipeMaps.maceratorRecipes;
import static gregtech.api.util.GT_ModHandler.getModItem;
import static gregtech.api.util.GT_RecipeBuilder.SECONDS;
import static gregtech.api.util.GT_RecipeBuilder.TICKS;
Expand All @@ -14,6 +13,7 @@
import gregtech.api.enums.GT_Values;
import gregtech.api.enums.Materials;
import gregtech.api.enums.OrePrefixes;
import gregtech.api.objects.ItemData;
import gregtech.api.util.GT_OreDictUnificator;

public class ScriptCatWalk implements IScriptLoader {
Expand Down Expand Up @@ -157,30 +157,23 @@ public void loadRecipes() {
getModItem(Minecraft.ID, "glowstone_dust", 1, 0, missing))
.itemOutputs(getModItem(CatWalks.ID, "ropeLight", 8, 0, missing)).duration(5 * SECONDS).eut(16)
.addTo(assemblerRecipes);
GT_Values.RA.stdBuilder().itemInputs(getModItem(CatWalks.ID, "support_column", 1, 0, missing))
.itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Steel, 6L)).outputChances(10000)
.duration(15 * SECONDS).eut(2).addTo(maceratorRecipes);
GT_Values.RA.stdBuilder().itemInputs(getModItem(CatWalks.ID, "scaffold", 1, 0, missing))
.itemOutputs(
GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 2L),
GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Steel, 2L))
.outputChances(10000, 10000).duration(15 * SECONDS).eut(2).addTo(maceratorRecipes);
GT_Values.RA.stdBuilder().itemInputs(getModItem(CatWalks.ID, "scaffold", 1, 1, missing))
.itemOutputs(
GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 2L),
GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Steel, 2L))
.outputChances(10000, 10000).duration(15 * SECONDS).eut(2).addTo(maceratorRecipes);
GT_Values.RA.stdBuilder().itemInputs(getModItem(CatWalks.ID, "catwalk_unlit", 1, 0, missing))
.itemOutputs(
GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 2L),
GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Steel, 2L))
.outputChances(10000, 10000).duration(15 * SECONDS).eut(2).addTo(maceratorRecipes);
GT_Values.RA.stdBuilder().itemInputs(getModItem(CatWalks.ID, "cagedLadder_north_unlit", 1, 0, missing))
.itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Steel, 1L)).outputChances(10000)
.duration(15 * SECONDS).eut(2).addTo(maceratorRecipes);
GT_Values.RA.stdBuilder().itemInputs(getModItem(CatWalks.ID, "steelgrate", 1, 0, missing))
.itemOutputs(GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Steel, 2L)).outputChances(10000)
.duration(15 * SECONDS).eut(2).addTo(maceratorRecipes);

GT_OreDictUnificator.addItemData(
getModItem(CatWalks.ID, "steelgrate", 1, 0),
new ItemData(Materials.Steel, 2 * GT_Values.M / 9)); // GT_Values.M equals one dust or ingot
GT_OreDictUnificator.addItemData(
getModItem(CatWalks.ID, "support_column", 1, 0),
new ItemData(Materials.Steel, 6 * GT_Values.M / 9));
GT_OreDictUnificator.addItemData(
getModItem(CatWalks.ID, "scaffold", 1, 0),
new ItemData(Materials.Steel, 20 * GT_Values.M / 9));
GT_OreDictUnificator.addItemData(
getModItem(CatWalks.ID, "scaffold", 1, 1),
new ItemData(Materials.Steel, 20 * GT_Values.M / 9));
GT_OreDictUnificator.addItemData(
getModItem(CatWalks.ID, "catwalk_unlit", 1, 0),
new ItemData(Materials.Steel, GT_Values.M / 9));
GT_OreDictUnificator.addItemData(
getModItem(CatWalks.ID, "cagedLadder_north_unlit", 1, 0),
new ItemData(Materials.Steel, GT_Values.M / 9));
}
}

0 comments on commit 0114bc3

Please sign in to comment.