Ого, оно работает 2
This commit is contained in:
parent
0b518eeffd
commit
4e26fa09bc
120 changed files with 201 additions and 1812 deletions
|
|
@ -1,27 +1,10 @@
|
|||
// priority: 0
|
||||
|
||||
const registerTFCData = (event) => {
|
||||
registerTFCItemHeats(event)
|
||||
registerTFCHeatingRecipes(event)
|
||||
registerTFCCastingRecipes(event)
|
||||
|
||||
addBloomeryRecipe(event,
|
||||
'tfc:recipes/bloomery/raw_iron_bloom',
|
||||
{ item: "tfc:raw_iron_bloom" },
|
||||
{ ingredient: "gtceu:iron", amount: 144 },
|
||||
{ item: "minecraft:charcoal" },
|
||||
15000
|
||||
)
|
||||
|
||||
addTFCBlastFurnaceRecipe(event,
|
||||
'tfc:recipes/blast_furnace/pig_iron',
|
||||
{ ingredient: "gtceu:iron", amount: 1 },
|
||||
{ fluid: "tfc:metal/pig_iron", amount: 1 },
|
||||
{ tag: "tfc:flux" }
|
||||
)
|
||||
registerAutoTFCItemHeats(event)
|
||||
}
|
||||
|
||||
const registerTFCItemHeats = (event) => {
|
||||
const registerAutoTFCItemHeats = (event) => {
|
||||
for (const [tfcMetalName, metalSpecifications] of Object.entries(Metals)) {
|
||||
metalSpecifications.props.forEach(propertyName => {
|
||||
let itemType = ItemHeats[propertyName]
|
||||
|
|
@ -38,60 +21,4 @@ const registerTFCItemHeats = (event) => {
|
|||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const registerTFCHeatingRecipes = (event) => {
|
||||
for (const [tfcMetalName, metalSpecifications] of Object.entries(Metals)) {
|
||||
metalSpecifications.props.forEach(propertyName => {
|
||||
let jsonRecipePath = `tfc:recipes/heating/tfg/${tfcMetalName}_${propertyName}`
|
||||
let itemTypeSpecifications = ItemHeats[propertyName]
|
||||
|
||||
if (itemTypeSpecifications.heat_capacity != null) {
|
||||
let ingredientInput = itemTypeSpecifications.input(tfcMetalName)
|
||||
|
||||
let json
|
||||
|
||||
if (typeof(itemTypeSpecifications.metal_amount) == "object")
|
||||
{
|
||||
if (itemTypeSpecifications.metal_amount[tfcMetalName] != undefined)
|
||||
{
|
||||
addHeatingItemToFluidRecipe(
|
||||
event,
|
||||
jsonRecipePath,
|
||||
ingredientInput,
|
||||
{ fluid: metalSpecifications.fluidName, amount: itemTypeSpecifications.metal_amount[tfcMetalName] },
|
||||
metalSpecifications.melt_temp,
|
||||
(itemTypeSpecifications.hasDur != undefined) ? itemTypeSpecifications.hasDur : false
|
||||
)
|
||||
}
|
||||
else
|
||||
{
|
||||
addHeatingItemToFluidRecipe(
|
||||
event,
|
||||
jsonRecipePath,
|
||||
ingredientInput,
|
||||
{ fluid: metalSpecifications.fluidName, amount: itemTypeSpecifications.metal_amount["default"] },
|
||||
metalSpecifications.melt_temp,
|
||||
(itemTypeSpecifications.hasDur != undefined) ? itemTypeSpecifications.hasDur : false
|
||||
)
|
||||
}
|
||||
}
|
||||
else {
|
||||
addHeatingItemToFluidRecipe(
|
||||
event,
|
||||
jsonRecipePath,
|
||||
ingredientInput,
|
||||
{ fluid: metalSpecifications.fluidName, amount: itemTypeSpecifications.metal_amount },
|
||||
metalSpecifications.melt_temp,
|
||||
(itemTypeSpecifications.hasDur != undefined) ? itemTypeSpecifications.hasDur : false
|
||||
)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const registerTFCCastingRecipes = (event) => {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue