ATM9-Vocality/kubejs/server_scripts/xpFluids.js

84 lines
2.9 KiB
JavaScript
Raw Permalink Normal View History

2024-06-13 21:34:56 -07:00
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 9.
// 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 => {
/*let fluidList = Fluid.getTypes()
let xpFluid = []
fluidList.forEach(id => {
let flu = Fluid.of(id)
console.log(flu.getTags())
if (flu.hasTag('forge:experience')) { xpFluid.push(id) }
})*/
// Tags still blah on first load
let xpFluid = [
'industrialforegoing:essence',
'mob_grinding_utils:fluid_xp',
'pneumaticcraft:memory_essence',
'reliquary:xp_juice_still',
'sophisticatedcore:xp_still',
'create_enchantment_industry:experience'
]
xpFluid.sort()
let woolOrder = [
'minecraft:orange_wool',
'minecraft:magenta_wool',
'minecraft:light_blue_wool',
'minecraft:yellow_wool',
'minecraft:lime_wool',
'minecraft:pink_wool',
'minecraft:gray_wool',
'minecraft:light_gray_wool',
'minecraft:cyan_wool',
'minecraft:purple_wool',
'minecraft:blue_wool',
'minecraft:brown_wool',
'minecraft:green_wool',
'minecraft:red_wool',
'minecraft:black_wool'
]
for (var i in xpFluid) {
if (Platform.isLoaded('thermal_expansion')) {
let recipe = {
type: "thermal:brewer",
ingredients: [
{ fluid_tag: "forge:experience", amount: 250 },
{ item: woolOrder[i] }
],
result: { fluid: xpFluid[i], amount: 250 }
}
allthemods.custom(recipe).id(`allthemods:thermal/brewer/xp_conv_${i}`)
}
if (Platform.isLoaded('create')) {
let recipe = {
type: "create:mixing",
ingredients: [
{ fluidTag: "forge:experience", amount: 250 },
{ item: woolOrder[i] }
],
results: [{ fluid: xpFluid[i], amount: 250 }]
}
allthemods.custom(recipe).id(`allthemods:create/mixing/xp_conv_${i}`)
}
if (Platform.isLoaded('pneumaticcraft')) {
let recipe = {
type: "pneumaticcraft:thermo_plant",
item_input: { item: woolOrder[i] },
fluid_input: {
type: "pneumaticcraft:fluid",
tag: "forge:experience",
amount: 250
},
fluid_output: { fluid: xpFluid[i], amount: 250 },
pressure: 2.0,
speed: 1,
air_use_multiplier: 1.0,
exothermic: false
}
allthemods.custom(recipe).id(`allthemods:pneumaticcraft/thermo_plant/xp_conv_${i}`)
}
}
})
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 9.
// 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.