Adarsh: 1 GoG recipe advancements and shapeless -> shaped recipes 7 files changed, 201 insertions(+), 32 deletions(-)
Copy & paste the following snippet into your terminal to import this patchset into git:
curl -s https://lists.sr.ht/~williewillus/violet-moon/patches/48544/mbox | git am -3Learn more about email & git
GoG recipes now show up in recipe book when the relevant crafting material is obtained, and sapling/cobble recipes are now 2x2 shaped so they look nicer in the book/recipe viewers --- .../recipes/end_portal_frame.json | 35 +++++++++++++++++++ .../recipes/magma_cream_to_slime_ball.json | 35 +++++++++++++++++++ .../recipes/pebble_to_cobblestone.json | 35 +++++++++++++++++++ .../recipes/root_to_fertilizer.json | 35 +++++++++++++++++++ .../advancements/recipes/root_to_sapling.json | 35 +++++++++++++++++++ .../recipes/pebble_to_cobblestone.json | 29 +++++++-------- .../recipes/root_to_sapling.json | 29 +++++++-------- 7 files changed, 201 insertions(+), 32 deletions(-) create mode 100644 garden_of_glass/data/gardenofglass/advancements/recipes/end_portal_frame.json create mode 100644 garden_of_glass/data/gardenofglass/advancements/recipes/magma_cream_to_slime_ball.json create mode 100644 garden_of_glass/data/gardenofglass/advancements/recipes/pebble_to_cobblestone.json create mode 100644 garden_of_glass/data/gardenofglass/advancements/recipes/root_to_fertilizer.json create mode 100644 garden_of_glass/data/gardenofglass/advancements/recipes/root_to_sapling.json diff --git a/garden_of_glass/data/gardenofglass/advancements/recipes/end_portal_frame.json b/garden_of_glass/data/gardenofglass/advancements/recipes/end_portal_frame.json new file mode 100644 index 000000000..0c5df2e4e --- /dev/null +++ b/garden_of_glass/data/gardenofglass/advancements/recipes/end_portal_frame.json @@ -0,0 +1,35 @@ +{ + "parent": "minecraft:recipes/root", + "criteria": { + "has_item": { + "conditions": { + "items": [ + { + "items": [ + "botania:life_essence" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "has_the_recipe": { + "conditions": { + "recipe": "gardenofglass:end_portal_frame" + }, + "trigger": "minecraft:recipe_unlocked" + } + }, + "requirements": [ + [ + "has_item", + "has_the_recipe" + ] + ], + "rewards": { + "recipes": [ + "gardenofglass:end_portal_frame" + ] + }, + "sends_telemetry_event": false +} diff --git a/garden_of_glass/data/gardenofglass/advancements/recipes/magma_cream_to_slime_ball.json b/garden_of_glass/data/gardenofglass/advancements/recipes/magma_cream_to_slime_ball.json new file mode 100644 index 000000000..672aca226 --- /dev/null +++ b/garden_of_glass/data/gardenofglass/advancements/recipes/magma_cream_to_slime_ball.json @@ -0,0 +1,35 @@ +{ + "parent": "minecraft:recipes/root", + "criteria": { + "has_item": { + "conditions": { + "items": [ + { + "items": [ + "minecraft:magma_cream" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "has_the_recipe": { + "conditions": { + "recipe": "gardenofglass:magma_cream_to_slime_ball" + }, + "trigger": "minecraft:recipe_unlocked" + } + }, + "requirements": [ + [ + "has_item", + "has_the_recipe" + ] + ], + "rewards": { + "recipes": [ + "gardenofglass:magma_cream_to_slime_ball" + ] + }, + "sends_telemetry_event": false +} diff --git a/garden_of_glass/data/gardenofglass/advancements/recipes/pebble_to_cobblestone.json b/garden_of_glass/data/gardenofglass/advancements/recipes/pebble_to_cobblestone.json new file mode 100644 index 000000000..74bf55711 --- /dev/null +++ b/garden_of_glass/data/gardenofglass/advancements/recipes/pebble_to_cobblestone.json @@ -0,0 +1,35 @@ +{ + "parent": "minecraft:recipes/root", + "criteria": { + "has_item": { + "conditions": { + "items": [ + { + "items": [ + "botania:pebble" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "has_the_recipe": { + "conditions": { + "recipe": "gardenofglass:pebble_to_cobblestone" + }, + "trigger": "minecraft:recipe_unlocked" + } + }, + "requirements": [ + [ + "has_item", + "has_the_recipe" + ] + ], + "rewards": { + "recipes": [ + "gardenofglass:pebble_to_cobblestone" + ] + }, + "sends_telemetry_event": false +} diff --git a/garden_of_glass/data/gardenofglass/advancements/recipes/root_to_fertilizer.json b/garden_of_glass/data/gardenofglass/advancements/recipes/root_to_fertilizer.json new file mode 100644 index 000000000..de9d5a906 --- /dev/null +++ b/garden_of_glass/data/gardenofglass/advancements/recipes/root_to_fertilizer.json @@ -0,0 +1,35 @@ +{ + "parent": "minecraft:recipes/root", + "criteria": { + "has_item": { + "conditions": { + "items": [ + { + "items": [ + "botania:living_root" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "has_the_recipe": { + "conditions": { + "recipe": "gardenofglass:root_to_fertilizer" + }, + "trigger": "minecraft:recipe_unlocked" + } + }, + "requirements": [ + [ + "has_item", + "has_the_recipe" + ] + ], + "rewards": { + "recipes": [ + "gardenofglass:root_to_fertilizer" + ] + }, + "sends_telemetry_event": false +} diff --git a/garden_of_glass/data/gardenofglass/advancements/recipes/root_to_sapling.json b/garden_of_glass/data/gardenofglass/advancements/recipes/root_to_sapling.json new file mode 100644 index 000000000..3d4958caf --- /dev/null +++ b/garden_of_glass/data/gardenofglass/advancements/recipes/root_to_sapling.json @@ -0,0 +1,35 @@ +{ + "parent": "minecraft:recipes/root", + "criteria": { + "has_item": { + "conditions": { + "items": [ + { + "items": [ + "botania:living_root" + ] + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "has_the_recipe": { + "conditions": { + "recipe": "gardenofglass:root_to_sapling" + }, + "trigger": "minecraft:recipe_unlocked" + } + }, + "requirements": [ + [ + "has_item", + "has_the_recipe" + ] + ], + "rewards": { + "recipes": [ + "gardenofglass:root_to_sapling" + ] + }, + "sends_telemetry_event": false +} diff --git a/garden_of_glass/data/gardenofglass/recipes/pebble_to_cobblestone.json b/garden_of_glass/data/gardenofglass/recipes/pebble_to_cobblestone.json index a7455a852..c24192f93 100644 --- a/garden_of_glass/data/gardenofglass/recipes/pebble_to_cobblestone.json +++ b/garden_of_glass/data/gardenofglass/recipes/pebble_to_cobblestone.json @@ -1,20 +1,17 @@ { - "result": { - "item": "minecraft:cobblestone" - }, - "ingredients": [ - { - "item": "botania:pebble" - }, - { - "item": "botania:pebble" - }, - { - "item": "botania:pebble" - }, - { + "type": "minecraft:crafting_shaped", + "category": "building", + "key": { + "#": { "item": "botania:pebble" } + }, + "pattern": [ + "##", + "##" ], - "type": "minecraft:crafting_shapeless" -} \ No newline at end of file + "result": { + "item": "minecraft:cobblestone" + }, + "show_notification": true +} diff --git a/garden_of_glass/data/gardenofglass/recipes/root_to_sapling.json b/garden_of_glass/data/gardenofglass/recipes/root_to_sapling.json index 343c96aa2..f53982f17 100644 --- a/garden_of_glass/data/gardenofglass/recipes/root_to_sapling.json +++ b/garden_of_glass/data/gardenofglass/recipes/root_to_sapling.json @@ -1,20 +1,17 @@ { - "result": { - "item": "minecraft:oak_sapling" - }, - "ingredients": [ - { - "item": "botania:living_root" - }, - { - "item": "botania:living_root" - }, - { - "item": "botania:living_root" - }, - { + "type": "minecraft:crafting_shaped", + "category": "misc", + "key": { + "#": { "item": "botania:living_root" } + }, + "pattern": [ + "##", + "##" ], - "type": "minecraft:crafting_shapeless" -} \ No newline at end of file + "result": { + "item": "minecraft:oak_sapling" + }, + "show_notification": true +} -- 2.34.1