From 866b619767f7cad77d0896bcdadf319964c0ebf4 Mon Sep 17 00:00:00 2001 From: attackeight <71084901+Attack8@users.noreply.github.com> Date: Sat, 16 Mar 2024 14:13:55 -0400 Subject: [PATCH] Add Unique Vertical Gearbox Crafting Recipe (#6171) --- src/generated/resources/.cache/cache | 2 ++ .../crafting/kinetics/vertical_gearbox.json | 34 +++++++++++++++++++ .../crafting/kinetics/vertical_gearbox.json | 19 +++++++++++ .../data/recipe/StandardRecipeGen.java | 7 ++++ 4 files changed, 62 insertions(+) create mode 100644 src/generated/resources/data/create/advancements/recipes/create.base/crafting/kinetics/vertical_gearbox.json create mode 100644 src/generated/resources/data/create/recipes/crafting/kinetics/vertical_gearbox.json diff --git a/src/generated/resources/.cache/cache b/src/generated/resources/.cache/cache index 6b593a063..651c7f770 100644 --- a/src/generated/resources/.cache/cache +++ b/src/generated/resources/.cache/cache @@ -2526,6 +2526,7 @@ e7df922cf9c6b39ee866d224d1812288073c7907 data/create/advancements/recipes/create 23c1ecff946d41c74d4fb78e2bbc5e348c4487f5 data/create/advancements/recipes/create.base/crafting/kinetics/track_signal.json da30636ca7e77f2947d0d28542c0b99747c9939e data/create/advancements/recipes/create.base/crafting/kinetics/track_station.json 9d7bbda05cebecc0922f4d344e9a51d4c2774a18 data/create/advancements/recipes/create.base/crafting/kinetics/turntable.json +29e9918939140d753d09098e2de553c811928e6e data/create/advancements/recipes/create.base/crafting/kinetics/vertical_gearbox.json c1bb8d9022dff3dcf6c42f651b421281924c7dd2 data/create/advancements/recipes/create.base/crafting/kinetics/vertical_gearboxfrom_conversion.json a67713418e505fa68ecde6b8bc83c09ccced7a65 data/create/advancements/recipes/create.base/crafting/kinetics/water_wheel.json 1a90a33a8334a778972a16ca92a2303cb083830a data/create/advancements/recipes/create.base/crafting/kinetics/weighted_ejector.json @@ -4083,6 +4084,7 @@ a6d074a4a400e82223211badfd923bb28c3c0bd0 data/create/recipes/crafting/kinetics/t 60650b8a20f0b69b5626d979f509e7b6d2a2cae9 data/create/recipes/crafting/kinetics/train_door.json 6ab92d6453b0ea10aa83a239b73443a6d5a4412e data/create/recipes/crafting/kinetics/train_trapdoor.json 8494f5fcd85a740fa0f0384e3522d8cdd905ce49 data/create/recipes/crafting/kinetics/turntable.json +c485817b96330571d48696f9d59cb695666a9ab5 data/create/recipes/crafting/kinetics/vertical_gearbox.json 057c889b0a306f44b8835c896663154ccd9ff12f data/create/recipes/crafting/kinetics/vertical_gearboxfrom_conversion.json 152e63ade2759d01a07b9e71a3c60dfe5ea15ba8 data/create/recipes/crafting/kinetics/water_wheel.json 06b5b371ae9dd81df8fd3dee6d3559b1ed0db35c data/create/recipes/crafting/kinetics/weighted_ejector.json diff --git a/src/generated/resources/data/create/advancements/recipes/create.base/crafting/kinetics/vertical_gearbox.json b/src/generated/resources/data/create/advancements/recipes/create.base/crafting/kinetics/vertical_gearbox.json new file mode 100644 index 000000000..8b4f25fcc --- /dev/null +++ b/src/generated/resources/data/create/advancements/recipes/create.base/crafting/kinetics/vertical_gearbox.json @@ -0,0 +1,34 @@ +{ + "parent": "minecraft:recipes/root", + "rewards": { + "recipes": [ + "create:crafting/kinetics/vertical_gearbox" + ] + }, + "criteria": { + "has_item": { + "trigger": "minecraft:inventory_changed", + "conditions": { + "items": [ + { + "items": [ + "create:cogwheel" + ] + } + ] + } + }, + "has_the_recipe": { + "trigger": "minecraft:recipe_unlocked", + "conditions": { + "recipe": "create:crafting/kinetics/vertical_gearbox" + } + } + }, + "requirements": [ + [ + "has_item", + "has_the_recipe" + ] + ] +} \ No newline at end of file diff --git a/src/generated/resources/data/create/recipes/crafting/kinetics/vertical_gearbox.json b/src/generated/resources/data/create/recipes/crafting/kinetics/vertical_gearbox.json new file mode 100644 index 000000000..41ca8a86f --- /dev/null +++ b/src/generated/resources/data/create/recipes/crafting/kinetics/vertical_gearbox.json @@ -0,0 +1,19 @@ +{ + "type": "minecraft:crafting_shaped", + "pattern": [ + "C C", + " B ", + "C C" + ], + "key": { + "C": { + "item": "create:cogwheel" + }, + "B": { + "item": "create:andesite_casing" + } + }, + "result": { + "item": "create:vertical_gearbox" + } +} \ No newline at end of file diff --git a/src/main/java/com/simibubi/create/foundation/data/recipe/StandardRecipeGen.java b/src/main/java/com/simibubi/create/foundation/data/recipe/StandardRecipeGen.java index 27b8dfc7c..21743b82f 100644 --- a/src/main/java/com/simibubi/create/foundation/data/recipe/StandardRecipeGen.java +++ b/src/main/java/com/simibubi/create/foundation/data/recipe/StandardRecipeGen.java @@ -801,6 +801,13 @@ public class StandardRecipeGen extends CreateRecipeProvider { .pattern("CBC") .pattern(" C ")), + VERTICAL_GEARBOX = create(AllItems.VERTICAL_GEARBOX).unlockedBy(I::cog) + .viaShaped(b -> b.define('C', I.cog()) + .define('B', I.andesiteCasing()) + .pattern("C C") + .pattern(" B ") + .pattern("C C")), + GEARBOX_CYCLE = conversionCycle(ImmutableList.of(AllBlocks.GEARBOX, AllItems.VERTICAL_GEARBOX)), MYSTERIOUS_CUCKOO_CLOCK = create(AllBlocks.MYSTERIOUS_CUCKOO_CLOCK).unlockedBy(AllBlocks.CUCKOO_CLOCK::get)