File tree Expand file tree Collapse file tree 3 files changed +67
-0
lines changed
common/src/main/generated/resources/data/generations_core
advancements/recipes/misc
forge/src/main/java/generations/gg/generations/core/generationscore/forge/datagen/generators/recipe Expand file tree Collapse file tree 3 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "parent" : " minecraft:recipes/root" ,
3+ "criteria" : {
4+ "has_copper_ingot" : {
5+ "conditions" : {
6+ "items" : [
7+ {
8+ "items" : [
9+ " minecraft:copper_ingot"
10+ ]
11+ }
12+ ]
13+ },
14+ "trigger" : " minecraft:inventory_changed"
15+ },
16+ "has_the_recipe" : {
17+ "conditions" : {
18+ "recipe" : " generations_core:copper_plate"
19+ },
20+ "trigger" : " minecraft:recipe_unlocked"
21+ }
22+ },
23+ "requirements" : [
24+ [
25+ " has_copper_ingot" ,
26+ " has_the_recipe"
27+ ]
28+ ],
29+ "rewards" : {
30+ "recipes" : [
31+ " generations_core:copper_plate"
32+ ]
33+ },
34+ "sends_telemetry_event" : false
35+ }
Original file line number Diff line number Diff line change 1+ {
2+ "type" : " minecraft:crafting_shaped" ,
3+ "category" : " misc" ,
4+ "key" : {
5+ "#" : {
6+ "item" : " minecraft:copper_ingot"
7+ },
8+ "X" : {
9+ "item" : " minecraft:iron_nugget"
10+ }
11+ },
12+ "pattern" : [
13+ " X#X" ,
14+ " ###" ,
15+ " X#X"
16+ ],
17+ "result" : {
18+ "item" : " generations_core:copper_plate"
19+ },
20+ "show_notification" : true
21+ }
Original file line number Diff line number Diff line change 55import net .minecraft .data .recipes .FinishedRecipe ;
66import net .minecraft .data .recipes .RecipeCategory ;
77import net .minecraft .data .recipes .ShapedRecipeBuilder ;
8+ import net .minecraft .world .item .Items ;
89import net .minecraftforge .common .crafting .conditions .IConditionBuilder ;
910import org .jetbrains .annotations .NotNull ;
1011
@@ -30,6 +31,16 @@ protected void buildRecipes(@NotNull Consumer<FinishedRecipe> consumer) {
3031 .pattern ("##" )
3132 .unlockedBy (getHasName (GenerationsItems .ENIGMA_FRAGMENT .get ()), has (GenerationsItems .ENIGMA_FRAGMENT .get ()))
3233 .save (consumer );
34+
35+ ShapedRecipeBuilder .shaped (RecipeCategory .MISC , GenerationsItems .COPPER_PLATE .get ())
36+ .define ('#' , Items .COPPER_INGOT )
37+ .define ('X' , Items .IRON_NUGGET )
38+ .pattern ("X#X" )
39+ .pattern ("###" )
40+ .pattern ("X#X" )
41+ .unlockedBy (getHasName (Items .COPPER_INGOT ), has (Items .COPPER_INGOT ))
42+ .save (consumer );
43+
3344 //These are all HeldItems and Recipes are not needed rn
3445 /*
3546 ShapedRecipeBuilder.shaped(RecipeCategory.MISC, PokeModItems.CELL_BATTERY.get())
You can’t perform that action at this time.
0 commit comments