Skip to content

Commit d8c8903

Browse files
Merge pull request #585 from DivineFinal/recipe
Make Dissolution Chamber accept all XP Fluids for Bottles o' Enchanting
2 parents f8bc303 + c0e5a70 commit d8c8903

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

kubejs/server_scripts/mods/industrial_foregoing/dissolution_chamber.js

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,42 @@ ServerEvents.recipes((allthemods) => {
3131

3232
allthemods.custom(recipe).id(`kubejs:dissolution_chamber/${id}`)
3333
}
34+
function dissolution_chamber_fluidtag(output, inputs, fluid, time, id) {
35+
let recipe = {
36+
type: "industrialforegoing:dissolution_chamber",
37+
input: [],
38+
inputFluid: {
39+
amount: fluid.amount || 100,
40+
tag: fluid.fluid
41+
},
42+
output: {
43+
count: output.count || 1,
44+
id: output.item
45+
},
46+
processingTime: time
47+
}
48+
49+
inputs.forEach((input) => {
50+
let ingredients = {}
51+
52+
if (input.tag) {
53+
ingredients.tag = input.tag
54+
} else {
55+
ingredients.item = input.item
56+
}
57+
58+
recipe.input.push(ingredients)
59+
})
60+
61+
allthemods.custom(recipe).id(`kubejs:dissolution_chamber/${id}`)
62+
}
3463

3564
allthemods.remove({ id: "industrialforegoing:dissolution_chamber/xp_bottles" })
36-
dissolution_chamber(
65+
dissolution_chamber_fluidtag(
3766
{ item: "minecraft:experience_bottle" },
3867
[{ item: "minecraft:glass_bottle" }],
3968
{
40-
fluid: "industrialforegoing:essence",
69+
fluid: "c:experience",
4170
amount: 250
4271
},
4372
5,

0 commit comments

Comments
 (0)