Add more of the missing recipes
This commit is contained in:
parent
dfda65184c
commit
7204a7bfd8
24 changed files with 298 additions and 55 deletions
|
@ -13,6 +13,7 @@ import net.minecraft.item.ItemConvertible;
|
|||
import net.minecraft.item.Items;
|
||||
import net.minecraft.recipe.Ingredient;
|
||||
import net.minecraft.recipe.book.RecipeCategory;
|
||||
import net.minecraft.registry.tag.BlockTags;
|
||||
import net.minecraft.registry.tag.ItemTags;
|
||||
import net.minecraft.util.Util;
|
||||
import su.a71.new_soviet.registration.NSE_Blocks;
|
||||
|
@ -411,6 +412,7 @@ public class RecipeGenerator extends FabricRecipeProvider {
|
|||
offerStonecuttingRecipe(exporter, RecipeCategory.BUILDING_BLOCKS, NSE_Blocks.NII_WALL_3, Blocks.STONE_BRICKS);
|
||||
offerStonecuttingRecipe(exporter, RecipeCategory.BUILDING_BLOCKS, NSE_Blocks.NII_WALL_2, Blocks.SMOOTH_STONE);
|
||||
offerStonecuttingRecipe(exporter, RecipeCategory.BUILDING_BLOCKS, NSE_Blocks.VINTAGE_IRON_BARS, Blocks.IRON_BARS);
|
||||
offerStonecuttingRecipe(exporter, RecipeCategory.BUILDING_BLOCKS, NSE_Blocks.METAL_PLATING, Blocks.IRON_BLOCK);
|
||||
|
||||
diceRecipe(exporter, NSE_Items.DICE_D4);
|
||||
diceRecipe(exporter, NSE_Items.DICE_D6);
|
||||
|
@ -478,7 +480,7 @@ public class RecipeGenerator extends FabricRecipeProvider {
|
|||
RecipeProvider.conditionsFromItem(Items.GREEN_STAINED_GLASS))
|
||||
.offerTo(exporter);
|
||||
|
||||
ShapedRecipeJsonBuilder.create(RecipeCategory.DECORATIONS, NSE_Items.SICKLE, 1)
|
||||
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, NSE_Items.SICKLE, 1)
|
||||
.pattern(" I ")
|
||||
.pattern(" I")
|
||||
.pattern(" S ")
|
||||
|
@ -490,7 +492,7 @@ public class RecipeGenerator extends FabricRecipeProvider {
|
|||
RecipeProvider.conditionsFromItem(Items.IRON_INGOT))
|
||||
.offerTo(exporter);
|
||||
|
||||
ShapedRecipeJsonBuilder.create(RecipeCategory.DECORATIONS, NSE_Items.RAKE, 1)
|
||||
ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, NSE_Items.RAKE, 1)
|
||||
.pattern("III")
|
||||
.pattern(" N ")
|
||||
.pattern(" S ")
|
||||
|
@ -574,6 +576,36 @@ public class RecipeGenerator extends FabricRecipeProvider {
|
|||
.criterion(hasItem(Blocks.TNT), conditionsFromItem(Blocks.TNT))
|
||||
.offerTo(exporter);
|
||||
|
||||
ShapedRecipeJsonBuilder.create(RecipeCategory.DECORATIONS, NSE_Custom.SWITCH, 1)
|
||||
.pattern(" B ")
|
||||
.pattern(" R ")
|
||||
.pattern(" S ")
|
||||
.input('S', Blocks.OAK_SLAB)
|
||||
.input('R', Items.REDSTONE)
|
||||
.input('B', Blocks.STONE_BUTTON)
|
||||
.criterion(RecipeProvider.hasItem(Blocks.OAK_SLAB),
|
||||
RecipeProvider.conditionsFromItem(Blocks.OAK_SLAB))
|
||||
.criterion(RecipeProvider.hasItem(Items.REDSTONE),
|
||||
RecipeProvider.conditionsFromItem(Items.REDSTONE))
|
||||
.criterion(RecipeProvider.hasItem(Blocks.STONE_BUTTON),
|
||||
RecipeProvider.conditionsFromItem(Blocks.STONE_BUTTON))
|
||||
.offerTo(exporter);
|
||||
|
||||
ShapedRecipeJsonBuilder.create(RecipeCategory.DECORATIONS, NSE_Custom.DARK_SWITCH, 1)
|
||||
.pattern(" B ")
|
||||
.pattern(" R ")
|
||||
.pattern(" S ")
|
||||
.input('S', Blocks.DARK_OAK_SLAB)
|
||||
.input('R', Items.REDSTONE)
|
||||
.input('B', Blocks.STONE_BUTTON)
|
||||
.criterion(RecipeProvider.hasItem(Blocks.DARK_OAK_SLAB),
|
||||
RecipeProvider.conditionsFromItem(Blocks.DARK_OAK_SLAB))
|
||||
.criterion(RecipeProvider.hasItem(Items.REDSTONE),
|
||||
RecipeProvider.conditionsFromItem(Items.REDSTONE))
|
||||
.criterion(RecipeProvider.hasItem(Blocks.STONE_BUTTON),
|
||||
RecipeProvider.conditionsFromItem(Blocks.STONE_BUTTON))
|
||||
.offerTo(exporter);
|
||||
|
||||
var path_blue_bars = convertBetween(NSE_Blocks.BLUE_IRON_BARS, Blocks.IRON_BARS);
|
||||
ShapelessRecipeJsonBuilder.create(RecipeCategory.BUILDING_BLOCKS, (NSE_Blocks.BLUE_IRON_BARS)).input(Blocks.IRON_BARS).input(Items.BLUE_DYE).criterion(FabricRecipeProvider.hasItem(NSE_Blocks.BLUE_IRON_BARS),
|
||||
FabricRecipeProvider.conditionsFromItem(NSE_Blocks.BLUE_IRON_BARS)).criterion(FabricRecipeProvider.hasItem(Blocks.IRON_BARS),
|
||||
|
@ -741,11 +773,11 @@ public class RecipeGenerator extends FabricRecipeProvider {
|
|||
concreteRecipe(exporter, NSE_Blocks.RED_CONCRETE, Items.RED_DYE);
|
||||
concreteRecipe(exporter, NSE_Blocks.WHITE_CONCRETE, Items.WHITE_DYE);
|
||||
concreteRecipe(exporter, NSE_Blocks.BEIGE_CONCRETE, Items.LIGHT_GRAY_DYE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.GREEN_CONCRETE_WITH_BARS, NSE_Blocks.GREEN_CONCRETE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.YELLOW_CONCRETE_WITH_BARS, NSE_Blocks.YELLOW_CONCRETE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.BLUE_CONCRETE_WITH_BARS, NSE_Blocks.BLUE_CONCRETE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.RED_CONCRETE_WITH_BARS, NSE_Blocks.RED_CONCRETE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.WHITE_CONCRETE_WITH_BARS, NSE_Blocks.WHITE_CONCRETE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.BEIGE_CONCRETE_WITH_BARS, NSE_Blocks.BEIGE_CONCRETE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.GREEN_CONCRETE_WITH_BARS, NSE_Blocks.CRACKED_GREEN_CONCRETE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.YELLOW_CONCRETE_WITH_BARS, NSE_Blocks.CRACKED_YELLOW_CONCRETE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.BLUE_CONCRETE_WITH_BARS, NSE_Blocks.CRACKED_BLUE_CONCRETE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.RED_CONCRETE_WITH_BARS, NSE_Blocks.CRACKED_RED_CONCRETE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.WHITE_CONCRETE_WITH_BARS, NSE_Blocks.CRACKED_WHITE_CONCRETE);
|
||||
concreteWithBarsRecipe(exporter, NSE_Blocks.BEIGE_CONCRETE_WITH_BARS, NSE_Blocks.CRACKED_BEIGE_CONCRETE);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue