Skip to content

Commit

Permalink
Added raw blocks smelting into refined blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
python-bear committed Feb 4, 2024
1 parent 118f724 commit 3b354f1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
36 changes: 32 additions & 4 deletions src/main/java/net/pythonbear/tead/datagen/TeadRecipeProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,49 @@ public class TeadRecipeProvider extends FabricRecipeProvider {
private static final List<ItemConvertible> BROWN_DRY_GRASS_SMELTABLES = List.of(
TeadBlocks.BROWN_DRY_GRASS
);
private static final List<ItemConvertible> BLOCK_OF_COPPER_SMELTABLES = List.of(
Blocks.RAW_COPPER_BLOCK
);
private static final List<ItemConvertible> BLOCK_OF_IRON_SMELTABLES = List.of(
Blocks.RAW_IRON_BLOCK
);
private static final List<ItemConvertible> BLOCK_OF_GOLD_SMELTABLES = List.of(
Blocks.RAW_GOLD_BLOCK
);
private static final List<ItemConvertible> BLOCK_OF_LEAD_SMELTABLES = List.of(
TeadBlocks.BLOCK_OF_GALENA
);

public TeadRecipeProvider(FabricDataOutput output) {
super(output);
}

@Override
public void generate(Consumer<RecipeJsonProvider> 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,
Expand Down

0 comments on commit 3b354f1

Please sign in to comment.