Fixed Blast Furnace data gen.

This commit is contained in:
Ayutac 2022-02-09 13:44:06 +01:00
parent af5f1b37c3
commit a097f9eae1
15 changed files with 44 additions and 319 deletions

View file

@ -40,14 +40,14 @@ import reborncore.common.crafting.ingredient.RebornIngredient
import java.util.function.Consumer
class MachineRecipeJsonFactory<R extends RebornRecipe> {
private final RebornRecipeType<R> type
protected final RebornRecipeType<R> type
private final List<RebornIngredient> ingredients = new ArrayList<>()
private final List<ItemStack> outputs = new ArrayList<>()
private int power = -1
private int time = -1
private Identifier customId = null
private String source = null
protected final List<RebornIngredient> ingredients = new ArrayList<>()
protected final List<ItemStack> outputs = new ArrayList<>()
protected int power = -1
protected int time = -1
protected Identifier customId = null
protected String source = null
protected MachineRecipeJsonFactory(RebornRecipeType<R> type) {
this.type = type

View file

@ -39,9 +39,9 @@ import techreborn.init.TRContent
class BlastFurnaceRecipesProvider extends TechRebornRecipesProvider {
public final int ARMOR_POWER = 128;
public final int ARMOR_TIME = 140;
public final int ARMOR_HEAT = 1000;
public final int ARMOR_POWER = 128
public final int ARMOR_TIME = 140
public final int ARMOR_HEAT = 1000
BlastFurnaceRecipesProvider(FabricDataGenerator dataGenerator) {
super(dataGenerator)
@ -60,7 +60,7 @@ class BlastFurnaceRecipesProvider extends TechRebornRecipesProvider {
}
void generateFromBootsRecipes() {
final int count = 4;
final int count = 4
[
(Items.DIAMOND_BOOTS) : new ItemStack(Items.DIAMOND, count),
(Items.GOLDEN_BOOTS) : new ItemStack(Items.GOLD_INGOT, count),
@ -84,7 +84,7 @@ class BlastFurnaceRecipesProvider extends TechRebornRecipesProvider {
}
void generateFromChestplateRecipes() {
final int count = 8;
final int count = 8
[
(Items.DIAMOND_CHESTPLATE) : new ItemStack(Items.DIAMOND, count),
(Items.GOLDEN_CHESTPLATE) : new ItemStack(Items.GOLD_INGOT, count),
@ -95,12 +95,20 @@ class BlastFurnaceRecipesProvider extends TechRebornRecipesProvider {
(TRContent.SAPPHIRE_CHESTPLATE) : new ItemStack(TRContent.Gems.SAPPHIRE, count),
(TRContent.SILVER_CHESTPLATE) : new ItemStack(TRContent.Ingots.SILVER, count),
(TRContent.STEEL_CHESTPLATE) : new ItemStack(TRContent.Ingots.STEEL, count)
]
].each {chestplate, materialStack ->
offerBlastFurnaceRecipe {
ingredients chestplate, Items.SAND
outputs materialStack, TRContent.Dusts.DARK_ASHES
power ARMOR_POWER
time ARMOR_TIME
heat ARMOR_HEAT
source "chestplate"
}
}
}
void generateFromHelmetRecipes() {
final int count = 5;
final int count = 5
[
(Items.DIAMOND_HELMET) : new ItemStack(Items.DIAMOND, count),
(Items.GOLDEN_HELMET) : new ItemStack(Items.GOLD_INGOT, count),
@ -111,12 +119,20 @@ class BlastFurnaceRecipesProvider extends TechRebornRecipesProvider {
(TRContent.SAPPHIRE_HELMET) : new ItemStack(TRContent.Gems.SAPPHIRE, count),
(TRContent.SILVER_HELMET) : new ItemStack(TRContent.Ingots.SILVER, count),
(TRContent.STEEL_HELMET) : new ItemStack(TRContent.Ingots.STEEL, count)
]
].each {helmet, materialStack ->
offerBlastFurnaceRecipe {
ingredients helmet, Items.SAND
outputs materialStack, TRContent.Dusts.DARK_ASHES
power ARMOR_POWER
time ARMOR_TIME
heat ARMOR_HEAT
source "helmet"
}
}
}
void generateFromLeggingsRecipes() {
final int count = 7;
final int count = 7
[
(Items.DIAMOND_LEGGINGS) : new ItemStack(Items.DIAMOND, count),
(Items.GOLDEN_LEGGINGS) : new ItemStack(Items.GOLD_INGOT, count),
@ -127,7 +143,15 @@ class BlastFurnaceRecipesProvider extends TechRebornRecipesProvider {
(TRContent.SAPPHIRE_LEGGINGS) : new ItemStack(TRContent.Gems.SAPPHIRE, count),
(TRContent.SILVER_LEGGINGS) : new ItemStack(TRContent.Ingots.SILVER, count),
(TRContent.STEEL_LEGGINGS) : new ItemStack(TRContent.Ingots.STEEL, count)
]
].each {leggings, materialStack ->
offerBlastFurnaceRecipe {
ingredients leggings, Items.SAND
outputs materialStack, TRContent.Dusts.DARK_ASHES
power ARMOR_POWER
time ARMOR_TIME
heat ARMOR_HEAT
source "leggings"
}
}
}
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:diamond_boots"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:diamond",
"count": 4
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:diamond_chestplate"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:diamond",
"count": 8
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:diamond_helmet"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:diamond",
"count": 5
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:diamond_leggings"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:diamond",
"count": 7
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:golden_boots"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:gold_ingot",
"count": 4
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:golden_chestplate"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:gold_ingot",
"count": 8
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:golden_helmet"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:gold_ingot",
"count": 5
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:golden_leggings"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:gold_ingot",
"count": 7
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:iron_boots"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:iron_ingot",
"count": 4
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:iron_chestplate"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:iron_ingot",
"count": 8
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:iron_helmet"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:iron_ingot",
"count": 5
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:iron_leggings"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:iron_ingot",
"count": 7
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}

View file

@ -1,23 +0,0 @@
{
"type": "techreborn:blast_furnace",
"power": 128,
"time": 140,
"heat": 1000,
"ingredients" : [
{
"item": "minecraft:minecart"
},
{
"item": "minecraft:sand"
}
],
"results" : [
{
"item": "minecraft:iron_ingot",
"count": 5
},
{
"item": "techreborn:dark_ashes_dust"
}
]
}