Skip to content

Commit 4688cae

Browse files
committed
2 parents 1e25938 + 72a7d78 commit 4688cae

File tree

1 file changed

+97
-0
lines changed

1 file changed

+97
-0
lines changed
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10: To the Sky.
2+
// 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.
3+
4+
ServerEvents.recipes((allthemods) => {
5+
/**
6+
* @param {{item: string, count: number}|{tag: string, count: number}} output
7+
* @param {string} catalyst
8+
* @param {number} depthMin
9+
* @param {number} depthMax
10+
* @param {number} weight
11+
*/
12+
function laserDrillOre(output, catalyst, depthMin, depthMax, weight) {
13+
allthemods
14+
.custom({
15+
type: "industrialforegoing:laser_drill_ore",
16+
output: output,
17+
rarity: [
18+
{
19+
biome_filter: {
20+
whitelist: [],
21+
blacklist: []
22+
},
23+
dimension_filter: {
24+
whitelist: [],
25+
blacklist: []
26+
},
27+
depth_min: depthMin,
28+
depth_max: depthMax,
29+
weight: weight
30+
}
31+
],
32+
catalyst: {
33+
item: catalyst
34+
}
35+
})
36+
.id(`allthemods:industrialforegoing/laser_drill_ore/${output.tag.split(":")[1]}`)
37+
}
38+
39+
/**
40+
* @param {{fluid: string, amount: number}|{tag: string, amount: number}} output
41+
* @param {string} entity
42+
* @param {string} catalyst
43+
* @param {number} depthMin
44+
* @param {number} depthMax
45+
* @param {number} weight
46+
*/
47+
function laserDrillFluid(output, entity, catalyst, depthMin, depthMax, weight) {
48+
allthemods
49+
.custom({
50+
type: "industrialforegoing:laser_drill_fluid",
51+
output: output,
52+
entity: entity || "minecraft:empty",
53+
rarity: [
54+
{
55+
biome_filter: {
56+
whitelist: [],
57+
blacklist: []
58+
},
59+
dimension_filter: {
60+
whitelist: [],
61+
blacklist: []
62+
},
63+
depth_min: depthMin,
64+
depth_max: depthMax,
65+
weight: weight
66+
}
67+
],
68+
catalyst: {
69+
item: catalyst
70+
}
71+
})
72+
.id(`allthemods:industrialforegoing/laser_drill_fluid/${output.fluid.split(":")[1]}`)
73+
}
74+
75+
laserDrillOre({ tag: "c:gems/benitoite", count: 8 }, "industrialforegoing:blue_laser_lens", 5, 256, 5)
76+
77+
laserDrillFluid(
78+
{ fluid: "allthemodium:soul_lava", amount: 10 },
79+
"minecraft:warden",
80+
"industrialforegoing:blue_laser_lens",
81+
-64,
82+
80,
83+
3
84+
)
85+
86+
laserDrillFluid(
87+
{ fluid: "pneumaticcraft:oil", amount: 50 },
88+
"minecraft:empty",
89+
"industrialforegoing:black_laser_lens",
90+
20,
91+
60,
92+
3
93+
)
94+
})
95+
96+
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 10: To the Sky.
97+
// 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.

0 commit comments

Comments
 (0)