Skip to content

Commit

Permalink
Added Broken Spawner recipe. Fixed not being able to add Crimson Cult…
Browse files Browse the repository at this point in the history
… Banner to Thaumonomicon
  • Loading branch information
Dyonovan committed Mar 20, 2024
1 parent 2ac7323 commit 8736864
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/dreammaster/scripts/ScriptEnderIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,12 @@ public void loadRecipes() {
GT_Utility.getIntegratedCircuit(17))
.itemOutputs(getModItem(EnderIO.ID, "blockReinforcedObsidian", 1, 0, missing)).duration(30 * SECONDS)
.eut(120).addTo(assemblerRecipes);
GT_Values.RA.stdBuilder()
.itemInputs(
GT_OreDictUnificator.get(OrePrefixes.frameGt, Materials.DarkSteel, 1L),
createItemStack(DraconicEvolution.ID, "mobSoul", 1, 0, "{Name:\"Any\"}", missing))
.itemOutputs(getModItem(EnderIO.ID, "itemBrokenSpawner", 1, 0, missing)).duration(90 * SECONDS)
.eut(65536).addTo(assemblerRecipes);
GT_Values.RA.stdBuilder().itemInputs(ItemList.Shape_Mold_Anvil.get(0L))
.itemOutputs(getModItem(EnderIO.ID, "blockDarkSteelAnvil", 1, 0, missing))
.fluidInputs(FluidRegistry.getFluidStack("molten.darksteel", 4464)).duration(45 * SECONDS).eut(120)
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/dreammaster/scripts/ScriptThaumcraft.java
Original file line number Diff line number Diff line change
Expand Up @@ -5641,6 +5641,12 @@ private void eldritch() {
getModItem(TaintedMagic.ID, "ItemMaterial", 1, 8, missing),
'd',
getModItem(Thaumcraft.ID, "WandRod", 1, 0, missing));
TCHelper.addResearchPage(
"CRIMSONRITES",
new ResearchPage(
TCHelper.findArcaneRecipe(
getModItem(Thaumcraft.ID, "blockWoodenDevice", 1, 8, missing),
false)));
TCHelper.refreshResearchPages("CRIMSONRITES");
TCHelper.refreshResearchPages("ELDRITCHMINOR");
TCHelper.refreshResearchPages("VOIDMETAL");
Expand Down
11 changes: 11 additions & 0 deletions src/main/java/com/dreammaster/thaumcraft/TCHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ public static IArcaneRecipe findArcaneRecipe(ItemStack stack) {
return null;
}

public static IArcaneRecipe findArcaneRecipe(ItemStack stack, boolean ignoreNBT) {
for (Object craft : ThaumcraftApi.getCraftingRecipes()) {
if (craft instanceof IArcaneRecipe) {
if (((IArcaneRecipe) craft).getRecipeOutput() != null
&& GT_Utility.areStacksEqual(((IArcaneRecipe) craft).getRecipeOutput(), stack, ignoreNBT))
return (IArcaneRecipe) craft;
}
}
return null;
}

public static CrucibleRecipe findCrucibleRecipe(ItemStack stack) {
for (Object craft : ThaumcraftApi.getCraftingRecipes()) {
if (craft instanceof CrucibleRecipe) {
Expand Down

0 comments on commit 8736864

Please sign in to comment.