Version 5.4
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
|
||||
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
|
||||
|
||||
ServerEvents.recipes(allthemods => {
|
||||
function basin( /** @type {$ItemStack_} */ output, /** @type {$FluidStack_} */ input, /** @type {number} */ duration) {
|
||||
let fluidStack = Fluid.of(input)
|
||||
let itemStack = Item.of(output)
|
||||
allthemods.custom(
|
||||
{
|
||||
"type": "integrateddynamics:drying_basin",
|
||||
"input_fluid": {
|
||||
"id": fluidStack.id,
|
||||
"amount": fluidStack.amount
|
||||
},
|
||||
"duration": duration || 300,
|
||||
"output_item": {
|
||||
"id": itemStack.id,
|
||||
"count": itemStack.count
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
function mechanicalBasin( /** @type {$ItemStack_} */ output, /** @type {$FluidStack_} */ input, /** @type {number} */ duration) {
|
||||
let fluidStack = Fluid.of(input)
|
||||
let itemStack = Item.of(output)
|
||||
allthemods.custom(
|
||||
{
|
||||
"type": "integrateddynamics:mechanical_drying_basin",
|
||||
"input_fluid": {
|
||||
"id": fluidStack.id,
|
||||
"amount": fluidStack.amount
|
||||
},
|
||||
"duration": duration || 30,
|
||||
"output_item": {
|
||||
"id": itemStack.id,
|
||||
"count": itemStack.count
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
//basin(output, input, duration)
|
||||
basin('xycraft_machines:resin_block', "1B x xycraft_machines:resin")
|
||||
//mechanicalBasin(output, input, duration)
|
||||
mechanicalBasin('xycraft_machines:resin_block', "1B x xycraft_machines:resin")
|
||||
})
|
||||
|
||||
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10.
|
||||
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
|
||||
Reference in New Issue
Block a user