123
This commit is contained in:
parent
ca286391da
commit
ed4b20b4c0
4 changed files with 137 additions and 143 deletions
|
|
@ -8,7 +8,7 @@ const registerTFCRecipes = (event) => {
|
|||
event.remove({ id: /tfc:heating\/ore.*/ })
|
||||
|
||||
registerTFCHeatingRecipes(event)
|
||||
registerTFCCastingRecipes(event)
|
||||
//registerTFCCastingRecipes(event)
|
||||
|
||||
event.remove({ id: 'tfc:crafting/vanilla/lapis_block' })
|
||||
|
||||
|
|
@ -352,49 +352,46 @@ const registerTFCHeatingRecipes = (event) => {
|
|||
metalSpecifications.props.forEach(propertyName => {
|
||||
let jsonRecipePath = `tfc:recipes/metal/${tfcMetalName}_${propertyName}`
|
||||
let itemTypeSpecifications = ItemHeats[propertyName]
|
||||
let finalMetalName = (metalSpecifications.customName != undefined) ? metalSpecifications.customName : tfcMetalName
|
||||
|
||||
if (itemTypeSpecifications.heat_capacity != null) {
|
||||
let ingredient = itemTypeSpecifications.input(finalMetalName)
|
||||
|
||||
let json
|
||||
let ingredientInput = itemTypeSpecifications.input(tfcMetalName)
|
||||
|
||||
if (typeof(itemTypeSpecifications.metal_amount) == "object")
|
||||
{
|
||||
if (itemTypeSpecifications.metal_amount[finalMetalName] != undefined)
|
||||
if (itemTypeSpecifications.metal_amount[tfcMetalName] != undefined)
|
||||
{
|
||||
let customMetalName = itemTypeSpecifications.metal_amount[finalMetalName].metalName
|
||||
let metalAmount = itemTypeSpecifications.metal_amount[finalMetalName].amount
|
||||
|
||||
json = {
|
||||
let json = {
|
||||
id: jsonRecipePath,
|
||||
type: "tfc:heating",
|
||||
ingredient: ingredient,
|
||||
ingredient: ingredientInput,
|
||||
result_fluid: {
|
||||
fluid: `gtceu:${customMetalName}`,
|
||||
amount: metalAmount
|
||||
fluid: metalSpecifications.fluidName,
|
||||
amount: itemTypeSpecifications.metal_amount[tfcMetalName]
|
||||
},
|
||||
temperature: metalSpecifications.melt_temp,
|
||||
use_durability: false
|
||||
}
|
||||
|
||||
//console.log(json)
|
||||
event.custom(json)
|
||||
}
|
||||
}
|
||||
else {
|
||||
json = {
|
||||
let json = {
|
||||
id: jsonRecipePath,
|
||||
type: "tfc:heating",
|
||||
ingredient: ingredient,
|
||||
ingredient: ingredientInput,
|
||||
result_fluid: {
|
||||
fluid: `gtceu:${finalMetalName}`,
|
||||
fluid: metalSpecifications.fluidName,
|
||||
amount: itemTypeSpecifications.metal_amount
|
||||
},
|
||||
temperature: metalSpecifications.melt_temp,
|
||||
use_durability: false
|
||||
}
|
||||
|
||||
//console.log(json)
|
||||
event.custom(json)
|
||||
}
|
||||
|
||||
console.log(json)
|
||||
if (json != undefined) event.custom(json)
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue