lunchbox update into Pakku (#1200)
* Refactored KubeJS recipes for GT compatibility lunchbox update into Pakku * Refactored KubeJS recipes for GT compatibility lunchbox update into Pakku fixed bowl bug fixed dupe food bug
This commit is contained in:
parent
afc88dda91
commit
54f30d5cc6
4 changed files with 47 additions and 60 deletions
|
|
@ -42,6 +42,7 @@ ServerEvents.tags('item', event => {
|
||||||
registerTFCItemTags(event)
|
registerTFCItemTags(event)
|
||||||
registerTFCTextileItemTags(event)
|
registerTFCTextileItemTags(event)
|
||||||
registerTFGItemTags(event)
|
registerTFGItemTags(event)
|
||||||
|
registerTFCLunchboxItemTags(event)
|
||||||
registerVintageImprovementsItemTags(event)
|
registerVintageImprovementsItemTags(event)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,58 +2,30 @@
|
||||||
|
|
||||||
function registerTFCLunchBoxRecipes(event) {
|
function registerTFCLunchBoxRecipes(event) {
|
||||||
|
|
||||||
event.shaped('tfclunchbox:lunchbox', [
|
const fluidCells = [
|
||||||
' CE',
|
{ id: 'gtceu:universal_fluid_cell', capacity: 1000, name: 'universal' },
|
||||||
'ABA',
|
{ id: 'gtceu:fluid_cell', capacity: 1000, name: 'basic' },
|
||||||
'DAD'
|
{ id: 'gtceu:steel_fluid_cell', capacity: 8000, name: 'steel' },
|
||||||
], {
|
{ id: 'gtceu:aluminium_fluid_cell', capacity: 32000, name: 'aluminium' },
|
||||||
A: '#forge:plates/sterling_silver',
|
{ id: 'gtceu:stainless_steel_fluid_cell', capacity: 64000, name: 'stainless_steel' },
|
||||||
B: '#forge:chests/wooden',
|
{ id: 'gtceu:titanium_fluid_cell', capacity: 128000, name: 'titanium' },
|
||||||
C: '#forge:bolts/brass',
|
{ id: 'gtceu:tungstensteel_fluid_cell', capacity: 512000, name: 'tungstensteel' },
|
||||||
D: '#forge:screws/wrought_iron',
|
{ id: 'gtceu:glass_vial', capacity: 1000, name: 'glass_vial' }
|
||||||
E: '#forge:tools/hammers'
|
];
|
||||||
}).id('tfclunchbox:lunchbox')
|
|
||||||
|
|
||||||
event.shaped('tfclunchbox:cooling_lunchbox', [
|
|
||||||
' CE',
|
|
||||||
'ABA',
|
|
||||||
'DAD'
|
|
||||||
], {
|
|
||||||
A: '#forge:plates/red_steel',
|
|
||||||
B: '#forge:chests/wooden',
|
|
||||||
C: '#forge:bolts/brass',
|
|
||||||
D: '#forge:screws/steel',
|
|
||||||
E: '#forge:tools/hammers'
|
|
||||||
}).id('tfclunchbox:cooling_lunchbox')
|
|
||||||
|
|
||||||
event.shaped('tfclunchbox:cooling_lunchbox', [
|
|
||||||
' C ',
|
|
||||||
'ABA'
|
|
||||||
], {
|
|
||||||
A: '#forge:plates/red_steel',
|
|
||||||
B: 'tfclunchbox:lunchbox',
|
|
||||||
C: '#forge:tools/hammers'
|
|
||||||
}).id('tfclunchbox:upgrade_to_cooling_lunchbox')
|
|
||||||
|
|
||||||
|
// Убираем оригинальные рецепты капсул
|
||||||
|
// Remove original capsule recipes
|
||||||
event.remove({ id: 'tfclunchbox:universal_capsule' })
|
event.remove({ id: 'tfclunchbox:universal_capsule' })
|
||||||
event.remove({ id: 'tfclunchbox:fill_capsule_with_ice' })
|
event.remove({ id: 'tfclunchbox:fill_capsule_with_ice' })
|
||||||
|
|
||||||
event.recipes.gtceu.assembler('tfclunchbox:universal_capsule')
|
// Рецепты заполнения fluid cells жидким льдом
|
||||||
.itemInputs('1x #forge:foils/red_steel', '1x #forge:rings/sterling_silver')
|
// Recipes for filling fluid cells with liquid ice
|
||||||
.itemOutputs('tfclunchbox:universal_capsule')
|
fluidCells.forEach(cell => {
|
||||||
.duration(100)
|
event.recipes.gtceu.canner(`tfclunchbox:fill_${cell.name}_cell_with_liquid_ice`)
|
||||||
.EUt(GTValues.VA[GTValues.LV])
|
.itemInputs(cell.id)
|
||||||
|
.inputFluids(Fluid.of('gtceu:ice', cell.capacity))
|
||||||
event.recipes.gtceu.canner('tfclunchbox:fill_capsule_with_ice')
|
.itemOutputs(Item.of(cell.id, '{Fluid:{Amount:' + cell.capacity + ',FluidName:"gtceu:ice"}}'))
|
||||||
.itemInputs('tfclunchbox:universal_capsule')
|
.duration(Math.max(16, Math.floor(cell.capacity / 64)))
|
||||||
.inputFluids(Fluid.of('gtceu:ice', 45 * 144))
|
.EUt(GTValues.VA[GTValues.LV]);
|
||||||
.itemOutputs(Item.of('tfclunchbox:universal_capsule', '{Durability:1000}').withName(Text.translate('item.tfclunchbox.universal_capsule.filled')))
|
});
|
||||||
.duration(100)
|
|
||||||
.EUt(GTValues.VA[GTValues.LV])
|
|
||||||
|
|
||||||
event.recipes.gtceu.canner('tfclunchbox:fill_capsule_with_ice_solid')
|
|
||||||
.itemInputs('tfclunchbox:universal_capsule', '5x minecraft:packed_ice')
|
|
||||||
.itemOutputs(Item.of('tfclunchbox:universal_capsule', '{Durability:1000}').withName(Text.translate('item.tfclunchbox.universal_capsule.filled')))
|
|
||||||
.duration(100)
|
|
||||||
.EUt(GTValues.VA[GTValues.LV])
|
|
||||||
}
|
}
|
||||||
14
kubejs/server_scripts/tfclunchbox/tags.js
Normal file
14
kubejs/server_scripts/tfclunchbox/tags.js
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
// priority: 0
|
||||||
|
|
||||||
|
function registerTFCLunchboxItemTags(event) {
|
||||||
|
|
||||||
|
const DISABLED_ITEMS = [
|
||||||
|
'tfclunchbox:universal_capsule',
|
||||||
|
]
|
||||||
|
|
||||||
|
DISABLED_ITEMS.forEach(item => {
|
||||||
|
event.removeAllTagsFrom(item)
|
||||||
|
event.add('c:hidden_from_recipe_viewers', item)
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -7954,7 +7954,7 @@
|
||||||
"files": [
|
"files": [
|
||||||
{
|
{
|
||||||
"type": "curseforge",
|
"type": "curseforge",
|
||||||
"file_name": "tfclunchbox-1.20.1-1.0.0.14.jar",
|
"file_name": "tfclunchbox-1.20.1-1.0.0.20.jar",
|
||||||
"mc_versions": [
|
"mc_versions": [
|
||||||
"1.20.1"
|
"1.20.1"
|
||||||
],
|
],
|
||||||
|
|
@ -7963,16 +7963,16 @@
|
||||||
"forge"
|
"forge"
|
||||||
],
|
],
|
||||||
"release_type": "beta",
|
"release_type": "beta",
|
||||||
"url": "https://edge.forgecdn.net/files/6646/846/tfclunchbox-1.20.1-1.0.0.14.jar",
|
"url": "https://edge.forgecdn.net/files/6675/072/tfclunchbox-1.20.1-1.0.0.20.jar",
|
||||||
"id": "6646846",
|
"id": "6675072",
|
||||||
"parent_id": "1283445",
|
"parent_id": "1283445",
|
||||||
"hashes": {
|
"hashes": {
|
||||||
"sha1": "de4051c4345290b9d99f2d26090ad466f112b3ec",
|
"sha1": "334167b4cc5ec81a917d168b6ec8a876f315298e",
|
||||||
"md5": "ada6f65d0fc9785a34b9deb76c53e882"
|
"md5": "3dc59cd3d685fe4f5d097ca4e66746f4"
|
||||||
},
|
},
|
||||||
"required_dependencies": [],
|
"required_dependencies": [],
|
||||||
"size": 95828,
|
"size": 111379,
|
||||||
"date_published": "2025-06-13T12:54:20.803Z"
|
"date_published": "2025-06-20T14:40:33.51Z"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue