Skip to content

Commit

Permalink
Merge pull request #484 from Jellonator/fix/unused-plates
Browse files Browse the repository at this point in the history
Removed recipes for some hidden Tech Reborn items
  • Loading branch information
Laskyyy authored Jan 5, 2025
2 parents 9b1e7b1 + f16ac72 commit 61fea69
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions kubejs/server_scripts/removals.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ onEvent("recipes", (event) => {
{ output: "techreborn:compressor" },
{ output: "techreborn:synthetic_redstone_crystal" },
{ output: "techreborn:bronze_nugget" },
{ output: "techreborn:iron_plate" },
{ output: "techreborn:steel_ingot" },
{ output: "techreborn:steel_block" },
{ output: "techreborn:steel_plate" },
Expand Down Expand Up @@ -597,12 +596,7 @@ onEvent("recipes", (event) => {

// Define the array of materials
const materials = [
"techreborn:lead",
"techreborn:bronze",
"techreborn:steel",
"techreborn:tin",
"techreborn:copper",
"techreborn:steel",
"techreborn:silver",
];

Expand All @@ -619,6 +613,8 @@ onEvent("recipes", (event) => {
event.remove({ output: material + "_shovel" });
}

materials.forEach(removeRecipes);

const metal = [
"tungstensteel",
"chrome",
Expand Down Expand Up @@ -647,6 +643,28 @@ onEvent("recipes", (event) => {
event.remove({ output: `techreborn:${metal}_nugget` });
});

// remove unused plate materials.
const plates = [
"iron",
"copper",
"gold",
"advanced_alloy",
"iridium_alloy",
"iridium",
"carbon",
"coal",
"emerald",
"lapis",
"lazurite",
"obsidian",
"redstone",
"silicon",
];

plates.forEach((plate) => {
event.remove({ output: `techreborn:${plate}_plate` });
});

const dusts = [
["almandine", false],
["amethyst", true],
Expand Down Expand Up @@ -696,6 +714,11 @@ onEvent("recipes", (event) => {
["uvarovite", false],
["glowstone", true],
["redstone", true],
["peridot", false],
["red_garnet", false],
["ruby", false],
["sapphire", false],
["yellow_garnet", false],
];
dusts.forEach((dust) => {
if (!dust[1]) {
Expand Down

0 comments on commit 61fea69

Please sign in to comment.