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:
Thomasx0 2025-06-20 20:33:02 +03:00 committed by GitHub
parent afc88dda91
commit 54f30d5cc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 60 deletions

View file

@ -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)
}) })

View file

@ -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', // Remove original capsule recipes
'ABA', event.remove({ id: 'tfclunchbox:universal_capsule' })
'DAD' event.remove({ id: 'tfclunchbox:fill_capsule_with_ice' })
], {
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', [ // Рецепты заполнения fluid cells жидким льдом
' C ', // Recipes for filling fluid cells with liquid ice
'ABA' fluidCells.forEach(cell => {
], { event.recipes.gtceu.canner(`tfclunchbox:fill_${cell.name}_cell_with_liquid_ice`)
A: '#forge:plates/red_steel', .itemInputs(cell.id)
B: 'tfclunchbox:lunchbox', .inputFluids(Fluid.of('gtceu:ice', cell.capacity))
C: '#forge:tools/hammers' .itemOutputs(Item.of(cell.id, '{Fluid:{Amount:' + cell.capacity + ',FluidName:"gtceu:ice"}}'))
}).id('tfclunchbox:upgrade_to_cooling_lunchbox') .duration(Math.max(16, Math.floor(cell.capacity / 64)))
.EUt(GTValues.VA[GTValues.LV]);
event.remove({ id: 'tfclunchbox:universal_capsule' }) });
event.remove({ id: 'tfclunchbox:fill_capsule_with_ice' }) }
event.recipes.gtceu.assembler('tfclunchbox:universal_capsule')
.itemInputs('1x #forge:foils/red_steel', '1x #forge:rings/sterling_silver')
.itemOutputs('tfclunchbox:universal_capsule')
.duration(100)
.EUt(GTValues.VA[GTValues.LV])
event.recipes.gtceu.canner('tfclunchbox:fill_capsule_with_ice')
.itemInputs('tfclunchbox:universal_capsule')
.inputFluids(Fluid.of('gtceu:ice', 45 * 144))
.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])
}

View 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)
})
}

View file

@ -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"
} }
] ]
}, },