Skip to content

Commit 301f4f3

Browse files
committed
e
1 parent b65b5b7 commit 301f4f3

File tree

4 files changed

+46
-24
lines changed

4 files changed

+46
-24
lines changed

index.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ metafile = true
229229

230230
[[files]]
231231
file = "mods/cabricality-mod.pw.toml"
232-
hash = "bfffceeb354915a98521d40bde55e1eaccc213e7edd273490f7afc3ab51f64f7"
232+
hash = "a49d2bcbece8a0e85c971f4ae6ca5d7b9ea2e19fa70c7dfe0f940d52d044088e"
233233
metafile = true
234234

235235
[[files]]

mods/cabricality-mod.pw.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ filename = "cabricality-0.2.3.jar"
33
side = "both"
44

55
[download]
6-
url = "https://cdn.modrinth.com/data/BHRmiEC5/versions/RTOko0gJ/cabricality-0.2.3.jar"
6+
url = "https://cdn.modrinth.com/data/BHRmiEC5/versions/XoE1AyzE/cabricality-0.2.3.jar"
77
hash-format = "sha1"
8-
hash = "ab1de36066b39192ff7fb10142a93455669072e1"
8+
hash = "a8626562976d6c8ecddb6fe662603a447ef3149b"
99

1010
[update]
1111
[update.modrinth]
1212
mod-id = "BHRmiEC5"
13-
version = "RTOko0gJ"
13+
version = "XoE1AyzE"

pack.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0"
66
[index]
77
file = "index.toml"
88
hash-format = "sha256"
9-
hash = "5cddadf8b51e8c4e5fc5255ce41a60976f7065c76aa5f9f7eb348b7d8b024f45"
9+
hash = "095841da9e7a38fb4cc5d691a815b530ce20e8f024b2ec5a467748254985ba9f"
1010

1111
[versions]
1212
minecraft = "1.18.2"

src/main/java/com/dm/earth/cabricality/tweak/RecipeTweaks.java

Lines changed: 41 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,24 @@ public void addRecipes(AddRecipesCallback.RecipeHandler handler) {
7979
handler.register(AE2.id("compacting", "matter_plastics"),
8080
id -> new CompactingRecipe(new FreePRP(id)
8181
.setIngredient(matterBall, matterBall, matterBall, matterBall,
82-
matterBall, matterBall, matterBall, matterBall, matterBall)
82+
matterBall, matterBall, matterBall, matterBall,
83+
matterBall)
8384
.setResult(CABF.asProcessingOutput("matter_plastics"))
8485
.setHeatRequirement(HeatCondition.SUPERHEATED)));
8586
}
8687

8788
// Ad Astra
8889
{
89-
Arrays.stream(AD_ASTRA_MATERIALS).forEach(material -> Arrays.stream(AD_ASTRA_DECOR_TYPES).forEach(
90-
type -> handler.register(recipeId("stonecutting", material + "_" + type),
91-
id -> VanillaRecipeBuilders.stonecuttingRecipe(id, "", Ingredient.ofTag(
92-
TagKey.of(Registry.ITEM_KEY, C.id(material + "_plates"))),
93-
AD.asStack(2, material + "_" + type)))));
90+
Arrays.stream(AD_ASTRA_MATERIALS)
91+
.forEach(material -> Arrays.stream(AD_ASTRA_DECOR_TYPES).forEach(
92+
type -> handler.register(
93+
recipeId("stonecutting", material + "_" + type),
94+
id -> VanillaRecipeBuilders.stonecuttingRecipe(
95+
id, "", Ingredient.ofTag(
96+
TagKey.of(Registry.ITEM_KEY,
97+
C.id(material + "_plates"))),
98+
AD.asStack(2, material + "_"
99+
+ type)))));
94100

95101
final String[] AD_ASTRA_COMPRESSED_MATERIALS = { "desh", "ostrum", "calorite" };
96102
Arrays.stream(AD_ASTRA_COMPRESSED_MATERIALS).forEach(material -> handler.register(
@@ -102,22 +108,29 @@ public void addRecipes(AddRecipesCallback.RecipeHandler handler) {
102108

103109
// Indrev
104110
{
105-
final String[] INDREV_PLATES = { "bronze", "electrum", "lead", "silver", "steel", "tin", "tungsten" };
111+
final String[] INDREV_PLATES = { "bronze", "electrum", "lead", "silver", "steel", "tin",
112+
"tungsten" };
106113

107-
Arrays.stream(INDREV_PLATES).forEach(plate -> handler.register(recipeId("pressing", plate + "_plate"),
108-
id -> new PressingRecipe(new FreePRP(id).setIngredient(IR.asIngredient(plate + "_ingot"))
114+
Arrays.stream(INDREV_PLATES).forEach(plate -> handler.register(
115+
recipeId("pressing", plate + "_plate"),
116+
id -> new PressingRecipe(new FreePRP(id)
117+
.setIngredient(IR.asIngredient(plate + "_ingot"))
109118
.setResult(IR.asProcessingOutput(plate + "_plate")))));
110119

111120
handler.register(recipeId("compacting", "aquamarine_quartz"),
112-
id -> new CompactingRecipe(new FreePRP(id).setIngredient(IR.asIngredient("nikolite_dust"))
113-
.setFluidIngredient(FluidIngredient.fromFluid(CabfFluids.REDSTONE, FluidConstants.NUGGET))
121+
id -> new CompactingRecipe(new FreePRP(id)
122+
.setIngredient(IR.asIngredient("nikolite_dust"))
123+
.setFluidIngredient(FluidIngredient.fromFluid(
124+
CabfFluids.REDSTONE, FluidConstants.NUGGET))
114125
.setResult(CABF.asProcessingOutput("aquamarine_quartz"))
115126
.setHeatRequirement(HeatCondition.HEATED)));
116127

117128
handler.register(recipeId("sandpaper_polishing", "aquamarine_quartz"),
118129
id -> new SandPaperPolishingRecipe(
119-
new FreePRP(id).setIngredient(CABF.asIngredient("aquamarine_quartz"))
120-
.setResult(IR.asProcessingOutput("nikolite_ingot"))));
130+
new FreePRP(id).setIngredient(
131+
CABF.asIngredient("aquamarine_quartz"))
132+
.setResult(IR.asProcessingOutput(
133+
"nikolite_ingot"))));
121134
}
122135

123136
// Dusts
@@ -136,20 +149,24 @@ public void addRecipes(AddRecipesCallback.RecipeHandler handler) {
136149
id -> new FillingRecipe(
137150
new FreePRP(id).setIngredient(CABF.asIngredient("nickel_ingot"))
138151
.setFluidIngredient(FluidIngredient.fromFluid(
139-
TC.asFluid("molten_iron"), FluidConstants.NUGGET * 6))
140-
.setResult(CABF.asProcessingOutput("nickel_compound"))));
152+
TC.asFluid("molten_iron"),
153+
FluidConstants.NUGGET * 6))
154+
.setResult(CABF.asProcessingOutput(
155+
"nickel_compound"))));
141156

142157
// Saws
143158
handler.register(recipeId("crafting", "stone_rod"),
144159
id -> VanillaRecipeBuilders.shapedRecipe("S", "S")
145-
.ingredient('S', Tags.Items.COBBLESTONE).output(CABF.asStack("stone_rod"))
160+
.ingredient('S', Tags.Items.COBBLESTONE)
161+
.output(CABF.asStack("stone_rod"))
146162
.build(id, ""));
147163

148164
handler.register(recipeId("crafting", "stone_saw"),
149165
id -> VanillaRecipeBuilders.shapedRecipe("SRR", "SMR")
150166
.ingredient('S', MC.asIngredient("stick"))
151167
.ingredient('R', CABF.asIngredient("stone_rod"))
152-
.ingredient('M', MC.asIngredient("flint")).output(CABF.asStack("stone_saw"))
168+
.ingredient('M', MC.asIngredient("flint"))
169+
.output(CABF.asStack("stone_saw"))
153170
.build(id, ""));
154171

155172
handler.register(recipeId("crafting", "iron_saw"),
@@ -191,13 +208,15 @@ public void addRecipes(AddRecipesCallback.RecipeHandler handler) {
191208
// Redstone
192209
handler.register(recipeId("melting", "redstone"),
193210
id -> RecipeManager.deserialize(id,
194-
RecipeBuilderUtil.generateMelting(MC.id("redstone"), CABF.id("redstone"),
211+
RecipeBuilderUtil.generateMelting(MC.id("redstone"),
212+
CABF.id("redstone"),
195213
FluidConstants.INGOT, null, 0, 250, 15)));
196214

197215
handler.register(recipeId("melting", "redstone_block"),
198216
id -> RecipeManager.deserialize(id,
199217
RecipeBuilderUtil.generateMelting(MC.id("redstone_block"),
200-
CABF.id("redstone"), FluidConstants.BLOCK, null, 0, 250, 135)));
218+
CABF.id("redstone"), FluidConstants.BLOCK, null, 0, 250,
219+
135)));
201220
}
202221

203222
@Override
@@ -221,6 +240,9 @@ public void removeRecipes(RemoveRecipesCallback.RecipeHandler handler) {
221240
handler.remove(TC.id("smeltery", "alloys", "molten_brass"));
222241
handler.remove(TC.id("smeltery", "alloys", "molten_invar"));
223242

243+
handler.removeIf(r -> r.getId().getNamespace().equals(TC.getModId())
244+
&& r.getId().getPath().startsWith("compat/create"));
245+
224246
// Remove wrenches except Create's and AE2's
225247
handler.removeIf(r -> !CR.checkContains(r) && !AE2.checkContains(r) &&
226248
r.getOutput().getItem().getRegistryName().getPath().contains("wrench"));

0 commit comments

Comments
 (0)