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
|
|
@ -2,58 +2,30 @@
|
|||
|
||||
function registerTFCLunchBoxRecipes(event) {
|
||||
|
||||
event.shaped('tfclunchbox:lunchbox', [
|
||||
' CE',
|
||||
'ABA',
|
||||
'DAD'
|
||||
], {
|
||||
A: '#forge:plates/sterling_silver',
|
||||
B: '#forge:chests/wooden',
|
||||
C: '#forge:bolts/brass',
|
||||
D: '#forge:screws/wrought_iron',
|
||||
E: '#forge:tools/hammers'
|
||||
}).id('tfclunchbox:lunchbox')
|
||||
const fluidCells = [
|
||||
{ id: 'gtceu:universal_fluid_cell', capacity: 1000, name: 'universal' },
|
||||
{ id: 'gtceu:fluid_cell', capacity: 1000, name: 'basic' },
|
||||
{ id: 'gtceu:steel_fluid_cell', capacity: 8000, name: 'steel' },
|
||||
{ id: 'gtceu:aluminium_fluid_cell', capacity: 32000, name: 'aluminium' },
|
||||
{ id: 'gtceu:stainless_steel_fluid_cell', capacity: 64000, name: 'stainless_steel' },
|
||||
{ id: 'gtceu:titanium_fluid_cell', capacity: 128000, name: 'titanium' },
|
||||
{ id: 'gtceu:tungstensteel_fluid_cell', capacity: 512000, name: 'tungstensteel' },
|
||||
{ id: 'gtceu:glass_vial', capacity: 1000, name: 'glass_vial' }
|
||||
];
|
||||
|
||||
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')
|
||||
// Убираем оригинальные рецепты капсул
|
||||
// Remove original capsule recipes
|
||||
event.remove({ id: 'tfclunchbox:universal_capsule' })
|
||||
event.remove({ id: 'tfclunchbox:fill_capsule_with_ice' })
|
||||
|
||||
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')
|
||||
|
||||
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])
|
||||
}
|
||||
// Рецепты заполнения fluid cells жидким льдом
|
||||
// Recipes for filling fluid cells with liquid ice
|
||||
fluidCells.forEach(cell => {
|
||||
event.recipes.gtceu.canner(`tfclunchbox:fill_${cell.name}_cell_with_liquid_ice`)
|
||||
.itemInputs(cell.id)
|
||||
.inputFluids(Fluid.of('gtceu:ice', cell.capacity))
|
||||
.itemOutputs(Item.of(cell.id, '{Fluid:{Amount:' + cell.capacity + ',FluidName:"gtceu:ice"}}'))
|
||||
.duration(Math.max(16, Math.floor(cell.capacity / 64)))
|
||||
.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)
|
||||
})
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue