Skip to content

Commit c3fdcea

Browse files
committed
-ium geore recipes, faucet no duping!
1 parent 9ec2c02 commit c3fdcea

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"replace": false,
3+
"values": [
4+
{"id":"integrated_dynamics:fluid_interface","required":false},
5+
{"id":"modularrouters:modular_router","required":false}
6+
]
7+
}

kubejs/server_scripts/mods/Geore/geore.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
ServerEvents.recipes((event) => {
22
/**
33
* @param {string} input
4-
* @param {{tag: string, [amount]: number}} fluid
4+
* @param {{fluid: string, [amount]: number} | {tag: string, [amount]: number}} fluid
55
* @param {{item: string, [amount]: number}} output
66
* @param {boolean} [consumeCast]
77
*/
88
function addCasting(input, fluid, output, consumeCast) {
9+
const amt = fluid.amount || 900
10+
const obj = fluid.fluid
11+
? { amount: amt, fluid: fluid.fluid }
12+
: { amount: amt, tag: fluid.tag };
13+
914
event.custom({
1015
type: "productivemetalworks:block_casting",
1116
cast: {
1217
item: input
1318
},
14-
consume_cast: consumeCast || true,
15-
fluid: {
16-
amount: fluid.amount || 900,
17-
tag: fluid.tag
18-
},
19+
consume_cast: consumeCast ?? true,
20+
fluid: obj,
1921
result: {
2022
count: output.amount || 1,
2123
id: output.item
@@ -52,4 +54,7 @@ ServerEvents.recipes((event) => {
5254
addCasting("allthecompressed:sand_1x", { tag: "c:molten_carbon" }, { item: "geore:budding_coal" })
5355
addCasting("allthecompressed:sand_1x", { tag: "c:molten_amethyst" }, { item: "minecraft:budding_amethyst" })
5456
addCasting("allthecompressed:red_sand_1x", { tag: "c:molten_quartz" }, { item: "geore:budding_black_quartz" })
57+
addCasting("allthecompressed:sand_5x", { fluid: "allthemodium:molten_unobtainium", amount: 7290 }, { item: "geore:budding_unobtainium" })
58+
addCasting("allthecompressed:sand_5x", { fluid: "allthemodium:molten_vibranium", amount: 7290 }, { item: "geore:budding_vibranium" })
59+
addCasting("allthecompressed:sand_5x", { fluid: "allthemodium:molten_allthemodium", amount: 7290 }, { item: "geore:budding_allthemodium" })
5560
})

kubejs/server_scripts/mods/actuallyadditions/recipes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ServerEvents.recipes((allthemods) => {
2626
aa.laser("occultism:iesnium_ore", "minecraft:ancient_debris", 50000)
2727

2828
allthemods.recipes.actuallyadditions
29-
.crushing([{ stack: "mekanism:dust_coal", chance: 1.0 }], "#c:coal")
29+
.crushing([{ stack: "mekanism:dust_coal", chance: 1.0 }], "#minecraft:coals")
3030
.id("allthemods:actuallyadditions/crushing/coal_dust_from_shard")
3131
})
3232

0 commit comments

Comments
 (0)