From 17a2ed2d37d80c302719b0786b1714fa3f6172d1 Mon Sep 17 00:00:00 2001 From: "Joseph T. McQuigg" Date: Tue, 7 Jan 2025 22:01:36 -0500 Subject: [PATCH] Add Pale Pumpkin to Pale Pumpkin Seeds Recipe Signed-off-by: Joseph T. McQuigg --- CHANGELOG.md | 1 + .../recipes/misc/pale_pumpkin_seeds.json | 32 +++++++++++++++++++ .../recipe/pale_pumpkin_seeds.json | 13 ++++++++ .../datagen/generators/RecipeGenerator.java | 2 ++ 4 files changed, 48 insertions(+) create mode 100644 Common/src/main/generated/resources/data/biomeswevegone/advancement/recipes/misc/pale_pumpkin_seeds.json create mode 100644 Common/src/main/generated/resources/data/biomeswevegone/recipe/pale_pumpkin_seeds.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c4c24fb4..ef7de9a74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - BoneMealing Grass Block/Lush Grass Block/Overgrown Stone/Dacite will now grow not just grass but any flower from that biomes flower pool - Make Tall Allium and Allium Flower Bush make Magenta Dye to match Vanilla - Add Built-in Support for Repurposed Structures (Adds Forager Houses to Villages) (NeoForge & Fabric) (Credits: TelepathicGrunt) +- Add Pale Pumpkin to Pale Pumpkin Seeds Recipe # 2.3.0 -> Major Internal Changes and Refactors - Add Spanish (Chile) Translations (es_cl) (Credits: Ganbare-Lucifer) diff --git a/Common/src/main/generated/resources/data/biomeswevegone/advancement/recipes/misc/pale_pumpkin_seeds.json b/Common/src/main/generated/resources/data/biomeswevegone/advancement/recipes/misc/pale_pumpkin_seeds.json new file mode 100644 index 000000000..9561ae735 --- /dev/null +++ b/Common/src/main/generated/resources/data/biomeswevegone/advancement/recipes/misc/pale_pumpkin_seeds.json @@ -0,0 +1,32 @@ +{ + "parent": "minecraft:recipes/root", + "criteria": { + "has_pale_pumpkin": { + "conditions": { + "items": [ + { + "items": "biomeswevegone:pale_pumpkin" + } + ] + }, + "trigger": "minecraft:inventory_changed" + }, + "has_the_recipe": { + "conditions": { + "recipe": "biomeswevegone:pale_pumpkin_seeds" + }, + "trigger": "minecraft:recipe_unlocked" + } + }, + "requirements": [ + [ + "has_the_recipe", + "has_pale_pumpkin" + ] + ], + "rewards": { + "recipes": [ + "biomeswevegone:pale_pumpkin_seeds" + ] + } +} \ No newline at end of file diff --git a/Common/src/main/generated/resources/data/biomeswevegone/recipe/pale_pumpkin_seeds.json b/Common/src/main/generated/resources/data/biomeswevegone/recipe/pale_pumpkin_seeds.json new file mode 100644 index 000000000..00b05d441 --- /dev/null +++ b/Common/src/main/generated/resources/data/biomeswevegone/recipe/pale_pumpkin_seeds.json @@ -0,0 +1,13 @@ +{ + "type": "minecraft:crafting_shapeless", + "category": "misc", + "ingredients": [ + { + "item": "biomeswevegone:pale_pumpkin" + } + ], + "result": { + "count": 4, + "id": "biomeswevegone:pale_pumpkin_seeds" + } +} \ No newline at end of file diff --git a/NeoForge/src/main/java/net/potionstudios/biomeswevegone/neoforge/datagen/generators/RecipeGenerator.java b/NeoForge/src/main/java/net/potionstudios/biomeswevegone/neoforge/datagen/generators/RecipeGenerator.java index 53af091ba..3e486e870 100644 --- a/NeoForge/src/main/java/net/potionstudios/biomeswevegone/neoforge/datagen/generators/RecipeGenerator.java +++ b/NeoForge/src/main/java/net/potionstudios/biomeswevegone/neoforge/datagen/generators/RecipeGenerator.java @@ -427,6 +427,8 @@ protected void buildRecipes(@NotNull RecipeOutput recipeOutput) { .unlockedBy(getHasName(BWGBlocks.CARVED_PALE_PUMPKIN.get()), has(BWGBlocks.CARVED_PALE_PUMPKIN.get())) .save(recipeOutput, BiomesWeveGone.id("pale_jack_o_lantern_from_soul_fruit")); + ShapelessRecipeBuilder.shapeless(RecipeCategory.MISC, BWGItems.PALE_PUMPKIN_SEEDS.get(), 4).requires(BWGBlocks.PALE_PUMPKIN.get()).unlockedBy(getHasName(BWGBlocks.PALE_PUMPKIN.get()), has(BWGBlocks.PALE_PUMPKIN.get())).save(recipeOutput); + ShapedRecipeBuilder.shaped(RecipeCategory.DECORATIONS, Blocks.SOUL_TORCH, 4) .define('X', Ingredient.of(Items.COAL, Items.CHARCOAL)) .define('#', Items.STICK)