@@ -92,7 +92,7 @@ public void generate() {
9292 .filter (BlockFamily ::shouldGenerateRecipes )
9393 .forEach (blockFamily -> this .generateFamily (blockFamily , FeatureSet .of (FeatureFlags .VANILLA )));
9494// EquipmentFamilies.stream().forEach(equipmentFamily -> this.offerEquipmentFamily());
95-
95+
9696 this .offerWaxingRecipes (FeatureSet .of (FeatureFlags .VANILLA ));
9797
9898 // ITEMS
@@ -249,7 +249,7 @@ public void generate() {
249249
250250 // SMITHING
251251 this .offerEquipmentFamilyUpgrade (EquipmentFamilies .WOODEN , EquipmentFamilies .STONE );
252-
252+
253253 // CUSTOM
254254 // -> Modded
255255 this .offerCampfireRecipe ();
@@ -308,7 +308,7 @@ public void generate() {
308308 .pattern ("L" )
309309 .criterion ("has_flammable_log" , this .conditionsFromTag (ItemTags .LOGS_THAT_BURN ))
310310 .offerTo (recipeExporter );
311-
311+
312312 this .createShaped (RecipeCategory .MISC , JinericItems .STONE_UPGRADE_SMITHING_TEMPLATE , 1 )
313313 .input ('M' , Items .SMOOTH_STONE ).input ('S' , Items .STONE )
314314 .input ('W' , ConventionalItemTags .NATURAL_WOODS ).input ('L' , ConventionalItemTags .NATURAL_LOGS )
@@ -317,15 +317,15 @@ public void generate() {
317317 .pattern ("WWW" )
318318 .criterion ("has_cobblestone" , this .conditionsFromItem (Items .COBBLESTONE ))
319319 .offerTo (recipeExporter , getItemPath (JinericItems .STONE_UPGRADE_SMITHING_TEMPLATE ));
320-
320+
321321 this .createShaped (RecipeCategory .MISC , JinericItems .COPPER_UPGRADE_SMITHING_TEMPLATE , 1 )
322322 .input ('F' , Items .SMOOTH_STONE ).input ('T' , JinericItemTags .CUT_COPPER ).input ('E' , Items .STONE )
323323 .pattern ("FTF" )
324324 .pattern ("FEF" )
325325 .pattern ("FFF" )
326326 .criterion ("has_copper_ingot" , this .conditionsFromItem (Items .COPPER_INGOT ))
327327 .offerTo (recipeExporter , getItemPath (JinericItems .COPPER_UPGRADE_SMITHING_TEMPLATE ));
328-
328+
329329 this .createShaped (RecipeCategory .MISC , JinericItems .IRON_UPGRADE_SMITHING_TEMPLATE , 1 )
330330 .input ('F' , ItemTags .COPPER ).input ('T' , Items .IRON_BLOCK ).input ('E' , Items .DEEPSLATE )
331331 .pattern ("FTF" )
@@ -334,7 +334,7 @@ public void generate() {
334334// .group(getItemPath(JinericItems.IRON_UPGRADE_SMITHING_TEMPLATE))
335335 .criterion ("has_iron_ingot" , this .conditionsFromItem (Items .IRON_INGOT ))
336336 .offerTo (recipeExporter , getItemPath (JinericItems .IRON_UPGRADE_SMITHING_TEMPLATE ));
337-
337+
338338 this .createShaped (RecipeCategory .MISC , JinericItems .DIAMOND_UPGRADE_SMITHING_TEMPLATE , 1 )
339339 .input ('F' , Items .IRON_INGOT ).input ('T' , Items .DIAMOND_BLOCK ).input ('E' , Items .DEEPSLATE )
340340 .pattern ("FTF" )
@@ -343,26 +343,26 @@ public void generate() {
343343// .group(getItemPath(JinericItems.DIAMOND_UPGRADE_SMITHING_TEMPLATE))
344344 .criterion ("has_" + getItemPath (Items .DIAMOND ), this .conditionsFromItem (Items .DIAMOND ))
345345 .offerTo (recipeExporter , getItemPath (JinericItems .DIAMOND_UPGRADE_SMITHING_TEMPLATE ));
346-
346+
347347 CookingRecipeJsonBuilder .createCampfireCooking (this .ingredientFromTag (ItemTags .LOGS_THAT_BURN ), RecipeCategory .MISC , Items .CHARCOAL , 0.15F , 800 )
348348 .criterion ("has_log" , this .conditionsFromTag (ItemTags .LOGS_THAT_BURN ))
349349 .offerTo (recipeExporter , "charcoal_from_campfire_cooking" );
350-
350+
351351 CookingRecipeJsonBuilder .createCampfireCooking (Ingredient .ofItem (JinericItems .CLAY_BRICK ), RecipeCategory .MISC , Items .BRICK , 0.1F , 600 )
352352 .criterion ("has_clay_brick" , this .conditionsFromItem (JinericItems .CLAY_BRICK ))
353353 .offerTo (recipeExporter , "brick_from_campfire_cooking" );
354-
354+
355355 this .createShaped (RecipeCategory .MISC , JinericItems .CLAY_BRICK )
356356 .input ('C' , Items .CLAY_BALL )
357357 .pattern ("CC" )
358358 .criterion (hasItem (Items .CLAY_BALL ), this .conditionsFromItem (Items .CLAY_BALL ))
359359 .offerTo (recipeExporter );
360-
360+
361361 this .createShapeless (RecipeCategory .MISC , Items .CLAY_BALL , 2 )
362362 .input (JinericItems .CLAY_BRICK )
363363 .criterion (hasItem (Items .CLAY_BALL ), this .conditionsFromItem (Items .CLAY_BALL ))
364364 .offerTo (recipeExporter );
365-
365+
366366 // -> Vanilla
367367 this .createShapeless (RecipeCategory .MISC , Items .STRING , 4 )
368368 .input (ItemTags .WOOL )
@@ -384,6 +384,13 @@ public void generate() {
384384 .pattern ("S" )
385385 .criterion ("has_coal" , this .conditionsFromTag (ItemTags .COALS ))
386386 .offerTo (recipeExporter , replaceVanilla (Items .TORCH ));
387+
388+ this .createShaped (RecipeCategory .BUILDING_BLOCKS , Blocks .STONE_BRICKS , 4 )
389+ .input ('S' , JinericBlocks .POLISHED_STONE )
390+ .pattern ("SS" )
391+ .pattern ("SS" )
392+ .criterion ("has_polished_stone" , this .conditionsFromItem (JinericBlocks .POLISHED_STONE ))
393+ .offerTo (recipeExporter , replaceVanilla (Blocks .STONE_BRICKS ));
387394 }
388395
389396 @ Override
@@ -432,11 +439,11 @@ public void offerWaxingRecipes(FeatureSet enabledFeatures) {
432439 }
433440 );
434441 }
435-
442+
436443 public void offerWoodTypeRecipes () {
437444 WoodType .stream ().forEach (this ::offerWoodenEquipmentVariants );
438445 }
439-
446+
440447 public void offerWoodenEquipmentVariants (WoodType woodType ) {
441448 EquipmentFamily equipmentFamily = EquipmentFamilies .WOODEN ;
442449 equipmentFamily .getVariants ().forEach ((variant , item ) -> {
@@ -460,7 +467,7 @@ public void offerWoodenEquipmentVariants(WoodType woodType) {
460467 recipeBuilder .offerTo (recipeExporter , woodenRecipeKey );
461468 });
462469 }
463-
470+
464471 public void offerEquipmentFamilyUpgrade (EquipmentFamily inputFamily , EquipmentFamily resultFamily ) {
465472 inputFamily .getVariants ().forEach ((variant , item ) -> {
466473 if (resultFamily .getVariants ().containsKey (variant )) {
@@ -480,7 +487,7 @@ public void offerEquipmentFamilyUpgrade(EquipmentFamily inputFamily, EquipmentFa
480487 }
481488 });
482489 }
483-
490+
484491 public ShapedRecipeJsonBuilder createEquipmentVariantBase (EquipmentFamily family , EquipmentFamily .Variant variant , Item item ) {
485492 ShapedRecipeJsonBuilder recipeBuilder = this .createShaped (variant .isCombat () ? RecipeCategory .COMBAT : RecipeCategory .TOOLS , item );
486493 Item material = family .getMaterial ();
@@ -494,15 +501,15 @@ public ShapedRecipeJsonBuilder createEquipmentVariantBase(EquipmentFamily family
494501 }
495502 return recipeBuilder ;
496503 }
497-
504+
498505 public void offerVanillaSmithingUpgradeRecipe (Item template , Item input , TagKey <Item > material , Item result , RecipeCategory category ) {
499506 this .offerSmithingUpgradeRecipe (template , input , material , result , category , replaceVanilla (result ));
500507 }
501-
508+
502509 public void offerSmithingUpgradeRecipe (Item template , Item input , TagKey <Item > material , Item result , RecipeCategory category ) {
503510 this .offerSmithingUpgradeRecipe (template , input , material , result , category , getItemPath (result ) + "_smithing" );
504511 }
505-
512+
506513 public void offerSmithingUpgradeRecipe (Item template , Item input , TagKey <Item > material , Item result , RecipeCategory category , String recipeId ) {
507514 SmithingTransformRecipeJsonBuilder builder = SmithingTransformRecipeJsonBuilder .create (
508515 Ingredient .ofItem (template ),
@@ -699,7 +706,7 @@ public void offer2x2To4Building(ItemConvertible input, ItemConvertible output) {
699706 .criterion ("has_" + input , this .conditionsFromItem (input ))
700707 .offerTo (recipeExporter );
701708 }
702-
709+
703710 private void offerCampfireRecipe () {
704711 ShapedRecipeJsonBuilder builder = this .createShaped (RecipeCategory .DECORATIONS , Blocks .CAMPFIRE );
705712 ((ShapedRecipeJsonBuilderAccess ) builder ).jineric$componentChanges (
@@ -717,28 +724,28 @@ private void offerCampfireRecipe() {
717724 }
718725 };
719726 }
720-
721- public static RecipeCategory equipmentRecipeCategory (EquipmentFamily .Variant variant ) {
722- if (variant .isCombat ()) {
723- return RecipeCategory .COMBAT ;
724- } else {
725- return RecipeCategory .TOOLS ;
726- }
727- }
728-
729- public static String replaceVanilla (ItemConvertible replacedResult ) {
730- return "jineric_replace_" + RecipeGenerator .getItemPath (replacedResult );
731- }
732-
733- @ Override
734- protected Identifier getRecipeIdentifier (Identifier identifier ) {
735- if (identifier .getNamespace ().equals ("minecraft" ) && identifier .getPath ().contains ("jineric_replace_" )) {
736- return Identifier .ofVanilla (identifier .getPath ().replace ("jineric_replace_" , "" ));
737- } else {
738- return super .getRecipeIdentifier (identifier );
739- }
740- }
741-
727+
728+ public static RecipeCategory equipmentRecipeCategory (EquipmentFamily .Variant variant ) {
729+ if (variant .isCombat ()) {
730+ return RecipeCategory .COMBAT ;
731+ } else {
732+ return RecipeCategory .TOOLS ;
733+ }
734+ }
735+
736+ public static String replaceVanilla (ItemConvertible replacedResult ) {
737+ return "jineric_replace_" + RecipeGenerator .getItemPath (replacedResult );
738+ }
739+
740+ @ Override
741+ protected Identifier getRecipeIdentifier (Identifier identifier ) {
742+ if (identifier .getNamespace ().equals ("minecraft" ) && identifier .getPath ().contains ("jineric_replace_" )) {
743+ return Identifier .ofVanilla (identifier .getPath ().replace ("jineric_replace_" , "" ));
744+ } else {
745+ return super .getRecipeIdentifier (identifier );
746+ }
747+ }
748+
742749 @ Override
743750 public String getName () {
744751 return "Recipes" ;
0 commit comments