куча работы
This commit is contained in:
parent
be4b55333d
commit
ed340b9240
4 changed files with 916 additions and 906 deletions
|
|
@ -1271,25 +1271,13 @@ const registerGTCEURecipes = (event) => {
|
|||
global.GTCEU_ANVIL_TOOL_TYPES.forEach(toolType => {
|
||||
let toolStack = $ToolHelper.get(toolType, material)
|
||||
|
||||
if (toolType == GTToolType.BUTCHERY_KNIFE) {
|
||||
event.recipes.tfc.advanced_shaped_crafting(TFC.itemStackProvider.of(toolStack).copyForgingBonus(), [
|
||||
'A',
|
||||
'B'
|
||||
], {
|
||||
A: `gtceu:${material}_knife_butchery_head`,
|
||||
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}`)
|
||||
}
|
||||
|
||||
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}`)
|
||||
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,6 +54,11 @@ const registerTFCHeats = (event) => {
|
|||
if (!item.isEmpty()) event.itemHeat(item, heatCapacity, tfcProperty.getForgingTemp(), tfcProperty.getWeldingTemp())
|
||||
}
|
||||
|
||||
function makeItemHeatByToolType(toolType, material, tfcProperty, heatCapacity) {
|
||||
let tool = $ToolHelper.get(toolType, material)
|
||||
if (!tool.isEmpty()) event.itemHeat(tool, heatCapacity, tfcProperty.getForgingTemp(), tfcProperty.getWeldingTemp())
|
||||
}
|
||||
|
||||
GTRegistries.MATERIALS.forEach(material => {
|
||||
let tfcProperty = material.getProperty(TFGPropertyKey.TFC_PROPERTY)
|
||||
|
||||
|
|
@ -83,6 +88,20 @@ const registerTFCHeats = (event) => {
|
|||
makeItemHeatByTagPrefix(TFGTagPrefix.toolHeadButcheryKnife, material, tfcProperty, 2.875)
|
||||
makeItemHeatByTagPrefix(TFGTagPrefix.toolHeadMiningHammer, material, tfcProperty, 2.875)
|
||||
makeItemHeatByTagPrefix(TFGTagPrefix.toolHeadSpade, material, tfcProperty, 2.875)
|
||||
|
||||
makeItemHeatByToolType(GTToolType.SWORD, material, tfcProperty, 1.429)
|
||||
makeItemHeatByToolType(GTToolType.PICKAXE, material, tfcProperty, 1.429)
|
||||
makeItemHeatByToolType(GTToolType.SHOVEL, material, tfcProperty, 1.429)
|
||||
makeItemHeatByToolType(GTToolType.AXE, material, tfcProperty, 1.429)
|
||||
makeItemHeatByToolType(GTToolType.HOE, material, tfcProperty, 1.429)
|
||||
makeItemHeatByToolType(GTToolType.SAW, material, tfcProperty, 1.429)
|
||||
makeItemHeatByToolType(GTToolType.HARD_HAMMER, material, tfcProperty, 2.875)
|
||||
makeItemHeatByToolType(GTToolType.FILE, material, tfcProperty, 1.429)
|
||||
makeItemHeatByToolType(GTToolType.SCYTHE, material, tfcProperty, 1.429)
|
||||
makeItemHeatByToolType(GTToolType.KNIFE, material, tfcProperty, 1.429)
|
||||
makeItemHeatByToolType(GTToolType.BUTCHERY_KNIFE, material, tfcProperty, 2.875)
|
||||
makeItemHeatByToolType(GTToolType.MINING_HAMMER, material, tfcProperty, 1.429)
|
||||
makeItemHeatByToolType(GTToolType.SPADE, material, tfcProperty, 2.875)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -529,8 +529,6 @@ global.MINECRAFT_DISABLED_ITEMS = [
|
|||
'minecraft:suspicious_gravel',
|
||||
'minecraft:stonecutter',
|
||||
'minecraft:gravel',
|
||||
'minecraft:gold_ingot',
|
||||
'minecraft:copper_ingot',
|
||||
'minecraft:moss_block',
|
||||
'minecraft:moss_carpet',
|
||||
'minecraft:bamboo_raft',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue