Skip to content

Commit 679a362

Browse files
feat: add furnace recipe
1 parent e98c120 commit 679a362

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

src/client/java/com/tcm/MineTale/datagen/ModRecipeProvider.java

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@
1313
import net.minecraft.core.HolderLookup;
1414
import net.minecraft.data.recipes.RecipeOutput;
1515
import net.minecraft.data.recipes.RecipeProvider;
16-
import net.minecraft.tags.BlockTags;
1716
import net.minecraft.tags.ItemTags;
18-
import net.minecraft.world.item.ItemStack;
1917
import net.minecraft.world.item.Items;
2018
import net.minecraft.world.item.crafting.CraftingBookCategory;
21-
import net.minecraft.world.item.crafting.Ingredient;
2219

2320
public class ModRecipeProvider extends FabricRecipeProvider {
2421
/**
@@ -65,6 +62,8 @@ public void buildRecipes() {
6562
.save(exporter, "campfire_pork_cooking");
6663

6764
// Workbench Recipes
65+
66+
// 1. Workbenches
6867
new WorkbenchRecipeBuilder(ModRecipes.WORKBENCH_TYPE, ModRecipes.WORKBENCH_SERIALIZER)
6968
.input(Items.COPPER_INGOT, 2)
7069
.input(ItemTags.LOGS, registryLookup, 10)
@@ -74,6 +73,16 @@ public void buildRecipes() {
7473
.bookCategory(ModRecipeDisplay.WORKBENCH_SEARCH)
7574
.save(exporter, "workbench_armorers_workbench");
7675

76+
new WorkbenchRecipeBuilder(ModRecipes.WORKBENCH_TYPE, ModRecipes.WORKBENCH_SERIALIZER)
77+
.input(ItemTags.LOGS, registryLookup, 6)
78+
.input(ItemTags.STONE_TOOL_MATERIALS, registryLookup, 6)
79+
.output(ModBlocks.FURNACE_WORKBENCH_BLOCK_T1.asItem())
80+
.unlockedBy("has_workbench", has(ModBlocks.WORKBENCH_WORKBENCH_BLOCK.asItem()))
81+
.bookCategory(ModRecipeDisplay.WORKBENCH_SEARCH)
82+
.save(exporter, "workbench_furnace_workbench_t1");
83+
84+
85+
// 2. Chests
7786
new WorkbenchRecipeBuilder(ModRecipes.WORKBENCH_TYPE, ModRecipes.WORKBENCH_SERIALIZER)
7887
.input(ItemTags.LOGS, registryLookup, 10)
7988
.output(Items.CHEST)
@@ -83,6 +92,8 @@ public void buildRecipes() {
8392
.save(exporter, "workbench_wood_chest");
8493

8594
// Furnace Recipes
95+
96+
// 1. Ingots
8697
new WorkbenchRecipeBuilder(ModRecipes.FURNACE_T1_TYPE, ModRecipes.FURNACE_SERIALIZER)
8798
.input(Items.COPPER_ORE)
8899
.output(Items.COPPER_INGOT)

0 commit comments

Comments
 (0)