Skip to content

Commit

Permalink
Fix crafting recipes (#3)
Browse files Browse the repository at this point in the history
* Recipes were created but not registered with Thaumcraft.
* Infusion instability was reduced slightly.
  • Loading branch information
rndmorris authored Oct 9, 2024
2 parents a358e9f + b612b44 commit 643924d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions src/main/java/dev/rndmorris/essentiapipes/Recipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import dev.rndmorris.essentiapipes.blocks.BlockPipeSegment;
import thaumcraft.api.ItemApi;
import thaumcraft.api.ThaumcraftApi;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import thaumcraft.api.crafting.CrucibleRecipe;
Expand All @@ -18,7 +19,7 @@ public class Recipes {
public static void postInit() {
final var essentiaTube = ItemApi.getBlock("blockTube", 0);
final var basicPipe = new ItemStack(BlockPipeSegment.pipe_segment, 1);
basicPipeRecipe = new CrucibleRecipe(
basicPipeRecipe = ThaumcraftApi.addCrucibleRecipe(
Research.PIPES_BASIC,
basicPipe,
essentiaTube,
Expand All @@ -30,10 +31,10 @@ public static void postInit() {
final var twoThaumiumPipes = new ItemStack(BlockPipeSegment.pipe_segment_thaumium, 2);
final var thaumiumBlock = ItemApi.getBlock("blockCosmeticSolid", 4);
final var bellows = ItemApi.getBlock("blockWoodenDevice", 0);
thaumiumPipeRecipe = new InfusionRecipe(
thaumiumPipeRecipe = ThaumcraftApi.addInfusionCraftingRecipe(
Research.PIPES_THAUMIUM,
twoThaumiumPipes,
5,
3,
new AspectList().add(Aspect.METAL, 8)
.add(Aspect.MAGIC, 4)
.add(Aspect.VOID, 2),
Expand All @@ -44,17 +45,20 @@ public static void postInit() {
final var thaumiumPipe = new ItemStack(BlockPipeSegment.pipe_segment_thaumium);
final var hungryChest = ItemApi.getBlock("blockChestHungry", 0);
final var voidmetalIngot = ItemApi.getItem("itemResource", 16);
final var voidmetalPipe = new ItemStack(BlockPipeSegment.pipe_segment_voidmetal, 2);
voidmetalPipeRecipe = new InfusionRecipe(
final var twoVoidmetalPipes = new ItemStack(BlockPipeSegment.pipe_segment_voidmetal, 2);
voidmetalPipeRecipe = ThaumcraftApi.addInfusionCraftingRecipe(
Research.PIPES_VOIDMETAL,
voidmetalPipe,
10,
twoVoidmetalPipes,
7,
new AspectList().add(Aspect.METAL, 16)
.add(Aspect.ELDRITCH, 16)
.add(Aspect.VOID, 8)
.add(Aspect.HUNGER, 8),
hungryChest,
new ItemStack[] { bellows, thaumiumPipe, voidmetalIngot, thaumiumPipe, voidmetalIngot, thaumiumPipe,
bellows, thaumiumPipe, voidmetalIngot, thaumiumPipe, voidmetalIngot, thaumiumPipe, });

;

}
}
2 changes: 1 addition & 1 deletion src/main/resources/assets/essentiapipes/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tc.research_page.essentiapipes:PIPES_BASIC.7=§lFinally§r, to preserve internal

tc.research_name.essentiapipes:PIPES_THAUMIUM=Thaumium-Reinforced Essentia Pipes
tc.research_text.essentiapipes:PIPES_THAUMIUM=Now we're talking
tc.research_page.essentiapipes:PIPES_THAUMIUM.1=After learning how to use an infusion matrix to reinforce armor with thaumium, I have deviced a similar recipe to reinforce my essentia pipes.<BR>The reinforcements allow for even an even greater internal vacuum and allows essentia to flow through it in greater quantities, but that vacuum takes longer to replenish after a connection in or out of the pipe opens. Because the pressure inside a thaumium-reinforced pipe is greater than a normal pipe, they will not connect to each other.
tc.research_page.essentiapipes:PIPES_THAUMIUM.1=After learning how to use an infusion matrix to reinforce armor with thaumium, I have adapted the technique to reinforce my essentia pipes.<BR>The reinforcements allow for even an even greater internal vacuum and allows essentia to flow through it in greater quantities, but that vacuum takes longer to replenish after a connection in or out of the pipe opens. Because the pressure inside a thaumium-reinforced pipe is greater than a normal pipe, they will not connect to each other.

tc.research_name.essentiapipes:PIPES_VOIDMETAL=Voidmetal-Reinforced Essentia Pipes
tc.research_text.essentiapipes:PIPES_VOIDMETAL=Leave no empty space unfilled
Expand Down

0 comments on commit 643924d

Please sign in to comment.