Нормально я тут устроил
This commit is contained in:
parent
75c8c4af9d
commit
a162d4aa51
7 changed files with 83 additions and 40 deletions
|
|
@ -1086,9 +1086,39 @@ const registerGTCEURecipes = (event) => {
|
|||
.duration(400)
|
||||
.EUt(5)
|
||||
|
||||
// Прокатка слитков в стержни
|
||||
//#region Рецепты, которые итерируются по всем материалам
|
||||
|
||||
GTRegistries.MATERIALS.forEach(material => {
|
||||
if (material.hasFlag($MaterialFlags.GENERATE_ROD) && material != 'treated_wood')
|
||||
if (material.hasProperty(PropertyKey.ORE))
|
||||
{
|
||||
event.recipes.createCrushing([`gtceu:${material}_crushed_ore`, Item.of(`gtceu:${material}_crushed_ore`).withChance(0.3)], `#forge:raw_materials/${material}`)
|
||||
.processingTime(200)
|
||||
.id(`tfg:crushing/${material}_crushed_ore`)
|
||||
|
||||
event.recipes.createSplashing(Item.of(`gtceu:${material}_dust`).withChance(0.9), `gtceu:${material}_impure_dust`)
|
||||
.id(`tfg:splashing/${material}_dust`)
|
||||
}
|
||||
|
||||
if (material.hasFlag($MaterialFlags.GENERATE_PLATE) && material != 'wood')
|
||||
{
|
||||
if (material.hasProperty(PropertyKey.INGOT))
|
||||
{
|
||||
event.recipes.createPressing(Item.of(`gtceu:${material}_plate`).withChance(0.97), `#forge:ingots/${material}`)
|
||||
.id(`tfg:pressing/${material}_plate`)
|
||||
|
||||
event.recipes.createCompacting(Item.of(`#forge:storage_blocks/${material}`), `9x #forge:ingots/${material}`)
|
||||
.heated()
|
||||
.id(`tfg:compacting/${material}_block`)
|
||||
}
|
||||
else
|
||||
{
|
||||
event.recipes.createCutting(Item.of(`9x gtceu:${material}_plate`).withChance(0.65), `#forge:storage_blocks/${material}`)
|
||||
.id(`tfg:cutting/${material}_plate`)
|
||||
}
|
||||
}
|
||||
|
||||
// Прокатка стержней
|
||||
if (material.hasFlag($MaterialFlags.GENERATE_ROD) && material != 'wood')
|
||||
{
|
||||
if (material.hasProperty(PropertyKey.INGOT))
|
||||
{
|
||||
|
|
@ -1101,7 +1131,7 @@ const registerGTCEURecipes = (event) => {
|
|||
'item': `gtceu:${material}_rod`,
|
||||
'count': 2
|
||||
}
|
||||
})
|
||||
}).id(`tfg:rolling/${material}_rod`)
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -1114,9 +1144,10 @@ const registerGTCEURecipes = (event) => {
|
|||
'item': `gtceu:${material}_rod`,
|
||||
'count': 2
|
||||
}
|
||||
})
|
||||
}).id(`tfg:rolling/${material}_rod`)
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//#endregion
|
||||
}
|
||||
|
|
@ -34,4 +34,6 @@ const registerGTCEUItemTags = (event) => {
|
|||
|
||||
//#endregion
|
||||
|
||||
event.add('forge:storage_blocks/treated_wood', 'gtceu:treated_wood_planks')
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,27 +24,30 @@ const generateCutterRecipe = (event, input, circuit, output, duration, EUt, id)
|
|||
// потому что блядский разработчик GTCEu не может исправить баги своего мода
|
||||
// Я так устал..
|
||||
|
||||
const recipe1 = event.recipes.gtceu.cutter(id + "_water")
|
||||
const recipe1 = event.recipes.gtceu.cutter(`tfg:${id}_water`)
|
||||
.itemInputs(input)
|
||||
.inputFluids(Fluid.of('minecraft:water', 4))
|
||||
.itemOutputs(output)
|
||||
.duration(duration)
|
||||
.EUt(EUt)
|
||||
|
||||
const recipe2 = event.recipes.gtceu.cutter(id + "_dist_water")
|
||||
const recipe2 = event.recipes.gtceu.cutter(`tfg:${id}_dist_water`)
|
||||
.itemInputs(input)
|
||||
.inputFluids(Fluid.of('gtceu:distilled_water', 3))
|
||||
.itemOutputs(output)
|
||||
.duration(duration)
|
||||
.EUt(EUt)
|
||||
|
||||
const recipe3 = event.recipes.gtceu.cutter(id + "_lubricant")
|
||||
const recipe3 = event.recipes.gtceu.cutter(`tfg:${id}_lubricant`)
|
||||
.itemInputs(input)
|
||||
.inputFluids(Fluid.of('gtceu:lubricant', 1))
|
||||
.itemOutputs(output)
|
||||
.duration(duration)
|
||||
.EUt(EUt)
|
||||
|
||||
event.recipes.createCutting(output, input)
|
||||
.id(`tfg:cutting/${id}`)
|
||||
|
||||
|
||||
if (circuit != null) {
|
||||
recipe1.circuit(circuit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue