Version 1.0.19b
This commit is contained in:
77
minecraft/kubejs/server_scripts/xpFluids.js
Normal file
77
minecraft/kubejs/server_scripts/xpFluids.js
Normal file
@@ -0,0 +1,77 @@
|
||||
ServerEvents.recipes(event => {
|
||||
/*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 = [
|
||||
'cofh_core:experience',
|
||||
'industrialforegoing:essence',
|
||||
'mob_grinding_utils:fluid_xp',
|
||||
'pneumaticcraft:memory_essence',
|
||||
'reliquary:xp_juice_still',
|
||||
'sophisticatedcore:xp_still'
|
||||
]
|
||||
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 }
|
||||
}
|
||||
event.custom(recipe).id(`kubejs: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 }]
|
||||
}
|
||||
event.custom(recipe).id(`kubejs: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
|
||||
}
|
||||
event.custom(recipe).id(`kubejs:pneumaticcraft/thermo_plant/xp_conv_${i}`)
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user