From 3b354f1435a47a420a1cf1476ed0647e99e6a2a1 Mon Sep 17 00:00:00 2001 From: Python Bear Date: Sun, 4 Feb 2024 10:36:19 +1030 Subject: [PATCH] Added raw blocks smelting into refined blocks. --- gradle.properties | 2 +- .../tead/datagen/TeadRecipeProvider.java | 36 ++++++++++++++++--- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index b971bb3a..ebb71d94 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10 loader_version=0.15.3 # Mod Properties -mod_version=0.1-1.20.1 +mod_version=0.2-1.20.1 maven_group=net.pythonbear.tead archives_base_name=tead diff --git a/src/main/java/net/pythonbear/tead/datagen/TeadRecipeProvider.java b/src/main/java/net/pythonbear/tead/datagen/TeadRecipeProvider.java index ec57970b..0489f2c3 100644 --- a/src/main/java/net/pythonbear/tead/datagen/TeadRecipeProvider.java +++ b/src/main/java/net/pythonbear/tead/datagen/TeadRecipeProvider.java @@ -34,6 +34,18 @@ public class TeadRecipeProvider extends FabricRecipeProvider { private static final List BROWN_DRY_GRASS_SMELTABLES = List.of( TeadBlocks.BROWN_DRY_GRASS ); + private static final List BLOCK_OF_COPPER_SMELTABLES = List.of( + Blocks.RAW_COPPER_BLOCK + ); + private static final List BLOCK_OF_IRON_SMELTABLES = List.of( + Blocks.RAW_IRON_BLOCK + ); + private static final List BLOCK_OF_GOLD_SMELTABLES = List.of( + Blocks.RAW_GOLD_BLOCK + ); + private static final List BLOCK_OF_LEAD_SMELTABLES = List.of( + TeadBlocks.BLOCK_OF_GALENA + ); public TeadRecipeProvider(FabricDataOutput output) { super(output); @@ -41,14 +53,30 @@ public TeadRecipeProvider(FabricDataOutput output) { @Override public void generate(Consumer exporter) { + offerSmelting(exporter, BLOCK_OF_COPPER_SMELTABLES, RecipeCategory.MISC, Items.COPPER_BLOCK, 6.3f, + 1800, "copper_block"); + offerBlasting(exporter, BLOCK_OF_COPPER_SMELTABLES, RecipeCategory.MISC, Items.COPPER_BLOCK, 6.3f, + 900, "copper_block"); + offerSmelting(exporter, BLOCK_OF_IRON_SMELTABLES, RecipeCategory.MISC, Items.IRON_BLOCK, 6.3f, + 1800, "iron_block"); + offerBlasting(exporter, BLOCK_OF_IRON_SMELTABLES, RecipeCategory.MISC, Items.IRON_BLOCK, 6.3f, + 900, "iron_block"); + offerSmelting(exporter, BLOCK_OF_GOLD_SMELTABLES, RecipeCategory.MISC, Items.GOLD_BLOCK, 9f, + 1800, "gold_block"); + offerBlasting(exporter, BLOCK_OF_GOLD_SMELTABLES, RecipeCategory.MISC, Items.GOLD_BLOCK, 9f, + 900, "gold_block"); + offerSmelting(exporter, BLOCK_OF_LEAD_SMELTABLES, RecipeCategory.MISC, TeadBlocks.BLOCK_OF_LEAD, 7.2f, + 1620, "lead_block"); + offerBlasting(exporter, BLOCK_OF_LEAD_SMELTABLES, RecipeCategory.MISC, TeadBlocks.BLOCK_OF_LEAD, 7.2f, + 720, "lead_block"); offerSmelting(exporter, RUBY_SMELTABLES, RecipeCategory.MISC, TeadItems.RUBY, 2, 300, "ruby"); offerBlasting(exporter, RUBY_SMELTABLES, RecipeCategory.MISC, TeadItems.RUBY, 2, 150, "ruby"); - offerSmelting(exporter, LEAD_SMELTABLES, RecipeCategory.MISC, TeadItems.LEAD_INGOT, 2, 150, - "lead"); - offerBlasting(exporter, LEAD_SMELTABLES, RecipeCategory.MISC, TeadItems.LEAD_INGOT, 2, 80, - "lead"); + offerSmelting(exporter, LEAD_SMELTABLES, RecipeCategory.MISC, TeadItems.LEAD_INGOT, 0.8f, + 180, "lead_ingot"); + offerBlasting(exporter, LEAD_SMELTABLES, RecipeCategory.MISC, TeadItems.LEAD_INGOT, 0.8f, + 80, "lead_ingot"); offerSmelting(exporter, DARK_BRICK_SMELTABLES, RecipeCategory.MISC, TeadItems.DARK_BRICK, 0, 150, "dark_brick"); offerBlasting(exporter, DARK_BRICK_SMELTABLES, RecipeCategory.MISC, TeadItems.DARK_BRICK, 0,