@@ -72,7 +72,7 @@ protected void addSmeltingRecipes() {
72
72
SimpleCookingRecipeBuilder smelting = smelting (Items .TERRACOTTA , RecipeCategory .BUILDING_BLOCKS , ModBlocks .GLAZED_TERRACOTTA .get (),0.35F );
73
73
add (smelting );
74
74
75
-
75
+ smeltingAndBlasting ( Ingredient . of ( ModBlocks . SALT_ORE_ITEM . get (), ModBlocks . DEEPSLATE_SALT_ORE_ITEM . get ()), RecipeCategory . MISC , ModBaseItems . SALT . get (), 0.7F );
76
76
}
77
77
78
78
public static Criterion <InventoryChangeTrigger .TriggerInstance > has (ItemLike ... likes ) {
@@ -162,10 +162,7 @@ protected static <T extends RecipeBuilder> void unlockedBy(T t, TagKey<Item> tag
162
162
t .unlockedBy (("has" + "_" + tag .location ()).toLowerCase (Locale .ROOT ), has (tag ));
163
163
}
164
164
165
-
166
-
167
165
protected void addShapelessRecipe () {
168
-
169
166
add (shapeless (RecipeCategory .FOOD , ModBaseFoods .FISH_CHOWDER .get (), 1 , fish_chowder -> {
170
167
unlockedBy (fish_chowder , ModBaseFoods .RAW_TROUT .get (), Items .COD , Items .SALMON );
171
168
unlockedBy (fish_chowder , Items .BROWN_MUSHROOM , Items .RED_MUSHROOM );
@@ -302,6 +299,15 @@ public static SimpleCookingRecipeBuilder smelting(
302
299
.unlockedBy (BuiltInRegistries .ITEM .getKey (item ).toString (), has (item ));
303
300
}
304
301
302
+ public static SimpleCookingRecipeBuilder blasting (
303
+ Ingredient input , RecipeCategory category , ItemLike result , float exp , int cookingTime
304
+ ) {
305
+ ItemStack [] items = input .getItems ();
306
+ Item item = items [0 ].getItem ();
307
+ return SimpleCookingRecipeBuilder .blasting (input , category , result , exp , cookingTime )
308
+ .unlockedBy (BuiltInRegistries .ITEM .getKey (item ).toString (), has (item ));
309
+ }
310
+
305
311
public static SimpleCookingRecipeBuilder smoking (
306
312
Ingredient input , RecipeCategory category , ItemLike result , float exp , int cookingTime
307
313
) {
@@ -346,12 +352,23 @@ public static SimpleCookingRecipeBuilder smelting(
346
352
.unlockedBy (BuiltInRegistries .ITEM .getKey (input .asItem ()).toString (), has (input ));
347
353
}
348
354
355
+ public static SimpleCookingRecipeBuilder blasting (
356
+ ItemLike input , RecipeCategory category , ItemLike result , float exp , int cookingTime ) {
357
+ return SimpleCookingRecipeBuilder .blasting (Ingredient .of (input ), category , result , exp , cookingTime )
358
+ .unlockedBy (BuiltInRegistries .ITEM .getKey (input .asItem ()).toString (), has (input ));
359
+ }
360
+
349
361
public static SimpleCookingRecipeBuilder smoking (
350
362
ItemLike input , RecipeCategory category , ItemLike result , float exp , int cookingTime ) {
351
363
return SimpleCookingRecipeBuilder .smoking (Ingredient .of (input ), category , result , exp , cookingTime )
352
364
.unlockedBy (BuiltInRegistries .ITEM .getKey (input .asItem ()).toString (), has (input ));
353
365
}
354
366
367
+ public void smeltingAndBlasting (Ingredient input , RecipeCategory category , ItemLike result , float exp ) {
368
+ add (smelting (input , category , result , exp ));
369
+ add (blasting (input , category , result , exp ), "blasting/" );
370
+ }
371
+
355
372
public void smeltingAndSmoking (Ingredient input , RecipeCategory category , ItemLike result , float exp ) {
356
373
add (smelting (input , category , result , exp ));
357
374
add (smoking (input , category , result , exp ), "smoking/" );
@@ -377,13 +394,26 @@ public static SimpleCookingRecipeBuilder smoking(
377
394
return smoking (input , category , result , exp , 200 );
378
395
}
379
396
397
+ public static SimpleCookingRecipeBuilder blasting (
398
+ Ingredient input , RecipeCategory category , ItemLike result , float exp
399
+ ) {
400
+ return blasting (input , category , result , exp , 200 );
401
+ }
402
+
380
403
public void smeltingAndSmoking (
381
404
ItemLike input , RecipeCategory category , ItemLike result , float exp
382
405
) {
383
406
add (smelting (input , category , result , exp ));
384
407
add (smoking (input , category , result , exp ), "smoking/" );
385
408
}
386
409
410
+ public void smeltingAndBlasting (
411
+ ItemLike input , RecipeCategory category , ItemLike result , float exp
412
+ ) {
413
+ add (smelting (input , category , result , exp ));
414
+ add (blasting (input , category , result , exp ), "blasting/" );
415
+ }
416
+
387
417
public void smeltingSmokingAndCampfire (ItemLike input , RecipeCategory category , ItemLike result , float exp ) {
388
418
add (smelting (input , category , result , exp ));
389
419
add (smoking (input , category , result , exp ), "smoking/" );
@@ -402,6 +432,12 @@ public static SimpleCookingRecipeBuilder smoking(
402
432
return smoking (input , category , result , exp , 200 );
403
433
}
404
434
435
+ public static SimpleCookingRecipeBuilder blasting (
436
+ ItemLike input , RecipeCategory category , ItemLike result , float exp
437
+ ) {
438
+ return blasting (input , category , result , exp , 200 );
439
+ }
440
+
405
441
public void add (RecipeBuilder builder ) {
406
442
list .put (BuiltInRegistries .ITEM .getKey (builder .getResult ()), builder );
407
443
}
0 commit comments