Skip to content

Commit

Permalink
Merge pull request #369 from m44ster/2.8
Browse files Browse the repository at this point in the history
MI ore unification
  • Loading branch information
Monster-Zer0 authored May 20, 2021
2 parents 06e4737 + c9c69ac commit 11d6475
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 17 deletions.
12 changes: 1 addition & 11 deletions overrides/config/modern_industrialization.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
generateOres = true

[ores]
generateAntimony = true
generateBauxite = false
generateCopper = false
generateLead = false
generateLigniteCoal = true
generateNickel = false
generateSalt = false
generateSilver = false
generateTin = false
blacklistedOres = ["bauxite","copper","lead","nickel","salt","silver","tin"]
36 changes: 30 additions & 6 deletions overrides/kubejs/server_scripts/unification.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ events.listen("recipes", function (event) {
"steel",
"tin",
"titanium",
"tungsten"
];

var modern_dusts = [
Expand All @@ -154,6 +155,7 @@ events.listen("recipes", function (event) {
"steel",
"tin",
"titanium",
"tungsten"
];

var modern_nuggets = [
Expand All @@ -169,7 +171,7 @@ events.listen("recipes", function (event) {
"silver",
"steel",
"tin",
"titanium",
"titanium"
];

var modern_metals = [
Expand All @@ -186,9 +188,18 @@ events.listen("recipes", function (event) {
"steel",
"tin",
"titanium",
"tungsten"
];

var modern_ores = ["copper", "bauxite", "lead", "silver", "tin"];
var modern_ores = [
"copper",
"bauxite",
"iridium",
"lead",
"silver",
"tin",
"tungsten"
];

// Plates
modern_materials.forEach(function (item, index) {
Expand Down Expand Up @@ -254,6 +265,12 @@ events.listen("recipes", function (event) {
"croptopia:salt_ore"
);

event.replaceOutput(
{},
"modern_industrialization:platinum_ore",
"techreborn:sheldonite_ore"
);

// REI
modern_materials.forEach(function (item, index) {
event.remove({
Expand Down Expand Up @@ -318,24 +335,24 @@ events.listen("recipes", function (event) {
});

// --------- BEWITCHMENT --------- //

var bewitchment = ["silver"];

// Ingots
bewitchment.forEach(function (item, index) {
event.replaceOutput(
{},
"bewitchment:" + item + "_ingot",
"techreborn:" + item + "_ingot"
);

// Blocks
event.replaceOutput(
{},
"bewitchment:" + item + "_block",
"techreborn:" + item + "_storage_block"
);

// REI
event.remove({ id: "bewitchment:" + item + "_ingot_from" + item + "block" });
event.remove({ id: "bewitchment:" + item + "_ingot_from_nuggets" });
Expand Down Expand Up @@ -424,6 +441,7 @@ events.listen("recipes", function (event) {
"bronze",
"electrum",
"titanium",
"tungsten",
"chrome",
];

Expand Down Expand Up @@ -458,6 +476,12 @@ events.listen("recipes", function (event) {
);
});

event.replaceInput(
{},
"#c:platinum_ores",
"techreborn:sheldonite_ore"
);

// REI Ingots
rei_ingots.forEach(function (item, index) {
event.replaceInput(
Expand Down

0 comments on commit 11d6475

Please sign in to comment.