Skip to content

Commit dd6ea76

Browse files
feat: added up to items/harvest_trophy
1 parent 3e44bec commit dd6ea76

6 files changed

Lines changed: 111 additions & 25 deletions

File tree

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
import com.tcm.MineTale.MineTale;
66
import com.tcm.MineTale.datagen.builders.WorkbenchRecipeBuilder;
77
import com.tcm.MineTale.datagen.recipes.ArmorRecipes;
8+
import com.tcm.MineTale.datagen.recipes.BuilderRecipes;
9+
import com.tcm.MineTale.datagen.recipes.FarmerRecipes;
810
import com.tcm.MineTale.datagen.recipes.FurnitureRecipes;
9-
import com.tcm.MineTale.datagen.recipes.PlantFibreRecipes;
1011
import com.tcm.MineTale.datagen.recipes.WorkbenchRecipes;
1112
import com.tcm.MineTale.registry.ModRecipeDisplay;
1213
import com.tcm.MineTale.registry.ModRecipes;
@@ -91,9 +92,6 @@ public void buildRecipes() {
9192
.bookCategory(ModRecipeDisplay.FURNACE_T1_SEARCH)
9293
.save(exporter, "furnace_t1_copper_ingot");
9394

94-
// Crafting Recipes
95-
PlantFibreRecipes.buildRecipes(this, exporter, registryLookup);
96-
9795
// Workbench Recipes
9896
WorkbenchRecipes.buildRecipes(this, exporter, registryLookup);
9997

@@ -102,6 +100,12 @@ public void buildRecipes() {
102100

103101
// Furniture Recipes
104102
FurnitureRecipes.buildRecipes(this, exporter, registryLookup);
103+
104+
// Builder Recipes
105+
BuilderRecipes.buildRecipes(this, exporter, registryLookup);
106+
107+
// Farmer Recipes
108+
FarmerRecipes.buildRecipes(this, exporter, registryLookup);
105109
}
106110
};
107111
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package com.tcm.MineTale.datagen.recipes;
2+
3+
import net.minecraft.core.HolderLookup;
4+
import net.minecraft.data.recipes.RecipeOutput;
5+
import net.minecraft.data.recipes.RecipeProvider;
6+
7+
public class BuilderRecipes {
8+
public static void buildRecipes(RecipeProvider provider, RecipeOutput exporter, HolderLookup.Provider lookup) {
9+
10+
// TODO: BUILDERS_WORKBENCH_BLOCK & ROPE Not Implemented
11+
// new WorkbenchRecipeBuilder(ModRecipes.BUILDER_TYPE, ModRecipes.BUILDER_SERIALIZER)
12+
// .input(ModItems.PLANT_FIBER)
13+
// .output(ModBlocks.ROPE.asItem())
14+
// .time(3)
15+
// .unlockedBy("has_builders_workbench", provider.has(ModBlocks.BUILDERS_WORKBENCH_BLOCK.asItem()))
16+
// .bookCategory(ModRecipeDisplay.BUILDER_SEARCH)
17+
// .save(exporter, "builders_workbench_rope");
18+
19+
// TODO: BUILDERS_WORKBENCH_BLOCK & ROPE_DIAGONAL Not Implemented
20+
// new WorkbenchRecipeBuilder(ModRecipes.BUILDER_TYPE, ModRecipes.BUILDER_SERIALIZER)
21+
// .input(ModItems.PLANT_FIBER)
22+
// .output(ModBlocks.ROPE_DIAGONAL.asItem())
23+
// .time(3)
24+
// .unlockedBy("has_builders_workbench", provider.has(ModBlocks.BUILDERS_WORKBENCH_BLOCK.asItem()))
25+
// .bookCategory(ModRecipeDisplay.BUILDER_SEARCH)
26+
// .save(exporter, "builders_workbench_rope_diagonal");
27+
}
28+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
package com.tcm.MineTale.datagen.recipes;
2+
3+
import net.minecraft.core.HolderLookup;
4+
import net.minecraft.data.recipes.RecipeOutput;
5+
import net.minecraft.data.recipes.RecipeProvider;
6+
7+
public class FarmerRecipes {
8+
public static void buildRecipes(RecipeProvider provider, RecipeOutput exporter, HolderLookup.Provider lookup) {
9+
// TODO: LOTS Not Implemented
10+
// new WorkbenchRecipeBuilder(ModRecipes.FARMER_TYPE, ModRecipes.FARMER_SERIALIZER)
11+
// .input(ModItems.GREATER_ESSENCE_OF_LIFE, 100)
12+
// .input(ModItems.WILD_BERRY, 100)
13+
// .input(Items.WHEAT, 100)
14+
// .input(ModItems.LETTUCE, 100)
15+
// .input(Items.CARROT, 100)
16+
// .input(ModItems.CORN, 100)
17+
// .input(ModItems.CAULIFLOWER, 100)
18+
// .input(ModItems.TURNIP, 100)
19+
// .input(ModItems.AUBERGINE, 100)
20+
// .input(Items.PUMPKIN)
21+
// .input(ModItems.TOMATO, 100)
22+
// .input(ModItems.CHILLI, 100)
23+
// .input(ModItems.COTTON, 100)
24+
// .input(ModItems.RICE, 100)
25+
// .input(ModItems.ONION, 100)
26+
// .input(Items.POTATO, 100)
27+
// .input(Items.APPLE, 100)
28+
// .input(Items.EGG, 100)
29+
// .input(ModItems.WOOL_SCRAPS, 100)
30+
// .input(ItemTags.FISHES, lookup, 100)
31+
// .input(ItemTags.MOSS, lookup, 100)
32+
// .input(ItemTags.LOGS, lookup, 100)
33+
// .input(ModItems.POOP, 100)
34+
// .input(Items.FEATHER, 100)
35+
// .input(ModItems.TREE_SAP, 100)
36+
// .input(ModItems.PLANT_FIBER, 100)
37+
// .input(ItemTags.MILK_BUCKET, 8)
38+
// .input(ItemTags.MOSS_HORN_MILK_BUCKET, 8)
39+
// .output(ModBlocks.HARVEST_TROPHY.asItem())
40+
// .time(10)
41+
// .unlockedBy("has_farmers_workbench", provider.has(ModBlocks.FARMERS_WORKBENCH_BLOCK.asItem()))
42+
// .bookCategory(ModRecipeDisplay.FARMER_SEARCH)
43+
// .save(exporter, "farmers_workbench_harvest_trophy");
44+
}
45+
}

src/client/java/com/tcm/MineTale/datagen/recipes/FurnitureRecipes.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,16 @@ public static void buildRecipes(RecipeProvider provider, RecipeOutput exporter,
4343
// .unlockedBy("has_furniture_workbench", provider.has(ModBlocks.FURNITURE_WORKBENCH_BLOCK))
4444
// .bookCategory(ModRecipeDisplay.FURNITURE_SEARCH)
4545
// .save(exporter, "KWEEBEC_PLUSHIE");
46+
47+
// TODO: OLD_SCROLL & FURNITURE_WORKBENCH_BLOCK Not Implemented
48+
// new WorkbenchRecipeBuilder(ModRecipes.FURNITURE_TYPE, ModRecipes.FURNITURE_SERIALIZER)
49+
// .input(ModItems.PLANT_FIBER, 4)
50+
// .input(Items.STICK, 2)
51+
// .output(ModBlocks.OLD_SCROLL.asItem())
52+
// .unlockedBy("has_furniture_workbench", provider.has(ModBlocks.FURNITURE_WORKBENCH_BLOCK))
53+
// .bookCategory(ModRecipeDisplay.FURNITURE_SEARCH)
54+
// .save(exporter, "OLD_SCROLL");
55+
56+
4657
}
4758
}

src/client/java/com/tcm/MineTale/datagen/recipes/PlantFibreRecipes.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/client/java/com/tcm/MineTale/datagen/recipes/WorkbenchRecipes.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,25 @@ public static void buildRecipes(RecipeProvider provider, RecipeOutput exporter,
5353
// .bookCategory(ModRecipeDisplay.FARMERS_SEARCH)
5454
// .save(exporter, "workbench_furnace_workbench_t1");
5555

56+
// TODO: Builder's Workbench Not Implemented
57+
// new WorkbenchRecipeBuilder(ModRecipes.WORKBENCH_TYPE, ModRecipes.WORKBENCH_SERIALIZER)
58+
// .input(ItemTags.LOGS, lookup, 6)
59+
// .input(ItemTags.STONE_TOOL_MATERIALS, lookup, 3)
60+
// .output(ModBlocks.BUILDERS_WORKBENCH.asItem())
61+
// .time(2)
62+
// .unlockedBy("has_workbench", provider.has(ModBlocks.WORKBENCH_WORKBENCH_BLOCK.asItem()))
63+
// .bookCategory(ModRecipeDisplay.WORKBENCH_SEARCH)
64+
// .save(exporter, "workbench_builders_workbench");
65+
66+
// TODO: HAY_TARGET Not Implemented
67+
// new WorkbenchRecipeBuilder(ModRecipes.WORKBENCH_TYPE, ModRecipes.WORKBENCH_SERIALIZER)
68+
// .input(ModItems.PLANT_FIBER)
69+
// .output(ModBlocks.HAY_TARGET.asItem())
70+
// .time(1)
71+
// .unlockedBy("has_workbench", provider.has(ModBlocks.WORKBENCH_WORKBENCH_BLOCK.asItem()))
72+
// .bookCategory(ModRecipeDisplay.WORKBENCH_SEARCH)
73+
// .save(exporter, "workbench_hay_target");
74+
5675

5776
}
5877
}

0 commit comments

Comments
 (0)