-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First round of EFR recipe integration (#1121)
Co-authored-by: Martin Robertz <[email protected]> Co-authored-by: Caedis <[email protected]> Co-authored-by: Maya <[email protected]>
- Loading branch information
1 parent
87927f5
commit bc1f787
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
package com.dreammaster.scripts; | ||
|
||
import static gregtech.api.enums.Mods.EtFuturumRequiem; | ||
import static gregtech.api.enums.Mods.ExtraUtilities; | ||
import static gregtech.api.enums.Mods.Minecraft; | ||
import static gregtech.api.enums.Mods.Thaumcraft; | ||
import static gregtech.api.util.GTModHandler.getModItem; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import com.dreammaster.recipes.CustomItem; | ||
|
||
import gregtech.api.util.GTModHandler; | ||
|
||
public class ScriptEFR implements IScriptLoader { | ||
|
||
@Override | ||
public String getScriptName() { | ||
return "Et Futurum Requiem"; | ||
} | ||
|
||
@Override | ||
public List<String> getDependencies() { | ||
return Arrays.asList(EtFuturumRequiem.ID, ExtraUtilities.ID, Thaumcraft.ID); | ||
} | ||
|
||
@Override | ||
public void loadRecipes() { | ||
long bits = GTModHandler.RecipeBits.NOT_REMOVABLE | GTModHandler.RecipeBits.REVERSIBLE | ||
| GTModHandler.RecipeBits.BUFFERED; | ||
GTModHandler.addCraftingRecipe( | ||
GTModHandler.getModItem(EtFuturumRequiem.ID, "observer", 1L), | ||
bits, | ||
new Object[] { "AEA", "BCD", "AAA", 'A', "cobblestone", 'B', "dustRedstone", 'C', | ||
GTModHandler.getModItem(ExtraUtilities.ID, "budoff", 1, 0), 'D', | ||
GTModHandler.getModItem(Minecraft.ID, "comparator", 1, 0), 'E', "gearGtSmallAnyIron" }); | ||
|
||
GTModHandler.addCraftingRecipe( | ||
GTModHandler.getModItem(EtFuturumRequiem.ID, "cherry_trapdoor", 1L), | ||
bits, | ||
new Object[] { "ABA", "BCB", "ABA", 'A', | ||
GTModHandler.getModItem(EtFuturumRequiem.ID, "wood_slab", 1L, 3), 'B', "stickWood", 'C', | ||
"itemFlint" }); | ||
|
||
GTModHandler.addCraftingRecipe( | ||
GTModHandler.getModItem(EtFuturumRequiem.ID, "cherry_trapdoor", 2L), | ||
bits, | ||
new Object[] { "ABA", "BCB", "ABA", 'A', | ||
GTModHandler.getModItem(EtFuturumRequiem.ID, "wood_slab", 1L, 3), 'B', "stickWood", 'C', | ||
"screwIron" }); | ||
|
||
GTModHandler.addCraftingRecipe( | ||
GTModHandler.getModItem(EtFuturumRequiem.ID, "cherry_trapdoor", 3L), | ||
bits, | ||
new Object[] { "ABA", "BCB", "ABA", 'A', | ||
GTModHandler.getModItem(EtFuturumRequiem.ID, "wood_slab", 1L, 3), 'B', "stickWood", 'C', | ||
"screwSteel" }); | ||
for (int i = 0; i < 16; i++) { | ||
addShapelessRecipe( | ||
GTModHandler.getModItem(EtFuturumRequiem.ID, "banner", 1L, i), | ||
new CustomItem.NBTItem(getModItem(Thaumcraft.ID, "blockWoodenDevice", 1, 8)) | ||
.setNBT("{color:" + i + "b}")); | ||
addShapelessRecipe( | ||
createItemStack(Thaumcraft.ID, "blockWoodenDevice", 1, 8, "{color:" + i + "b}", missing), | ||
GTModHandler.getModItem(EtFuturumRequiem.ID, "banner", 1L, i)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters