fix butchery knifes + fix rock anvil quest

This commit is contained in:
Dmitry 2024-01-12 07:53:06 +07:00
parent bfa65c1eb1
commit 59cda1a59b
2 changed files with 27 additions and 19 deletions

View file

@ -1990,17 +1990,13 @@
dependency_requirement: "one_completed" dependency_requirement: "one_completed"
id: "169485270E86A50C" id: "169485270E86A50C"
tasks: [{ tasks: [{
icon: "tfc:rock/anvil/basalt" icon: "tfc:rock/raw/andesite"
id: "728B5BCCE4E941E1" id: "028DBFDDC00B9949"
item: { observe_type: 1
Count: 1b timer: 0L
id: "ftbfiltersystem:smart_filter" title: "Сделайте каменную наковальню"
tag: { to_observe: "#tfc:rock_anvils"
"ftbfiltersystem:filter": "ftbfiltersystem:item_tag(tfc:rock_anvils)" type: "observation"
}
}
title: "Any #tfc:rock_anvils"
type: "item"
}] }]
x: 13.5d x: 13.5d
y: 18.5d y: 18.5d

View file

@ -1270,14 +1270,26 @@ const registerGTCEURecipes = (event) => {
if (material.hasFlag($TFGMaterialFlags.HAS_TFC_TOOL)) { if (material.hasFlag($TFGMaterialFlags.HAS_TFC_TOOL)) {
global.GTCEU_ANVIL_TOOL_TYPES.forEach(toolType => { global.GTCEU_ANVIL_TOOL_TYPES.forEach(toolType => {
let toolStack = $ToolHelper.get(toolType, material) let toolStack = $ToolHelper.get(toolType, material)
event.recipes.tfc.advanced_shaped_crafting(TFC.itemStackProvider.of(toolStack).copyForgingBonus(), [ if (toolType == GTToolType.BUTCHERY_KNIFE) {
'A', event.recipes.tfc.advanced_shaped_crafting(TFC.itemStackProvider.of(toolStack).copyForgingBonus(), [
'B' 'A',
], { 'B'
A: `gtceu:${material}_${toolType.name}_head`, ], {
B: '#forge:rods/wooden' A: `gtceu:${material}_knife_butchery_head`,
}, 0, 0).id(`gtceu:shaped/${toolType.name}_${material}`) B: '#forge:rods/wooden'
}, 0, 0).id(`gtceu:shaped/${toolType.name}_${material}`)
}
else {
event.recipes.tfc.advanced_shaped_crafting(TFC.itemStackProvider.of(toolStack).copyForgingBonus(), [
'A',
'B'
], {
A: `gtceu:${material}_${toolType.name}_head`,
B: '#forge:rods/wooden'
}, 0, 0).id(`gtceu:shaped/${toolType.name}_${material}`)
}
}) })
} }