From ae76a7c9a98749f56db9de731bb0ff2b5b94b2f6 Mon Sep 17 00:00:00 2001 From: MicaelNotUsed Date: Sun, 16 Mar 2025 01:02:28 -0300 Subject: [PATCH] Updating Stainless Steel so u can make it on survival.js Now it has caustic soda, and other elements to do stainless steel, those are gonna be updated in the next mod update. but for now thats their only use. --- mods/stainless_steel.js | 92 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 91 insertions(+), 1 deletion(-) diff --git a/mods/stainless_steel.js b/mods/stainless_steel.js index d91bb64c..0dd9d38e 100644 --- a/mods/stainless_steel.js +++ b/mods/stainless_steel.js @@ -34,4 +34,94 @@ elements.chrome = { }; // obtaining chrome (makes stainless steel) -elements.molten_aluminum.reactions.chromite = { elem2:"chrome", tempMin:1000, tempMax:1200, chance:0.1 }; \ No newline at end of file +elements.molten_aluminum.reactions.chromite = { elem2:"chrome", tempMin:1000, tempMax:1200, chance:0.1 }; + +// bauxite (makes aluminum) +elements.bauxite = { + color: ["#c4ad9d","#996644"], + behavior: behaviors.WALL, + category: "solids", + state: "solid", + tempHigh: 2072, + breakInto: "crushed_bauxite", +}; + +// obtaining caustic soda +elements.salt_water.reactions.copper = { elem1:["hydrogen","hydrogen","oxygen","chlorine","caustic_soda"], charged:true, chance:0.0075 }; +elements.salt_water.reactions.zinc = { elem1:["hydrogen","hydrogen","oxygen","chlorine","caustic_soda"], charged:true, chance:0.015 }; +elements.salt_water.reactions.steel = { elem1:["hydrogen","hydrogen","oxygen","chlorine","caustic_soda"], charged:true, chance:0.0125 }; +elements.salt_water.reactions.aluminum = { elem1:["hydrogen","hydrogen","oxygen","chlorine","caustic_soda"], charged:true, chance:0.0025 }; +elements.salt_water.reactions.iron = { elem1:["hydrogen","hydrogen","oxygen","chlorine","caustic_soda"], charged:true, chance:0.0125 }; +elements.salt_water.reactions.tin = { elem1:["hydrogen","hydrogen","oxygen","chlorine","caustic_soda"], charged:true, chance:0.1 }; +elements.salt_water.reactions.brass = { elem1:["hydrogen","hydrogen","oxygen","chlorine","caustic_soda"], charged:true, chance:0.001 }; +elements.salt_water.reactions.bronze = { elem1:["hydrogen","hydrogen","oxygen","chlorine","caustic_soda"], charged:true, chance:0.001 }; +elements.salt_water.reactions.silver = { elem1:["hydrogen","hydrogen","oxygen","chlorine","caustic_soda"], charged:true, chance:0.0075 }; +elements.salt_water.reactions.gold = { elem1:["hydrogen","hydrogen","oxygen","chlorine","caustic_soda"], charged:true, chance:0.0075 }; + +// soda lime +elements.soda_lime = { + color: "#dcdcdc", + behavior: behaviors.POWDER, + state: "solid", + category: "powders", + reactions: { + "crushed_bauxite": { elem1:"alumina", chance:50 } + }, + alias: "calcium hydroxide", +}; + +// alumina +elements.alumina = { + color: "#c3d4c3", + behavior: behaviors.WALL, + state: "solid", + category: "solids", + tempHigh: 2072, + stateHigh: "molten_aluminum", + conduct: 1, + alias: "aluminum oxide", +}; + +// uh +elements.aluminum.alias = "aluminium"; + +// caustic soda +elements.caustic_soda = { + color: "#ececec", + behavior: behaviors.POWDER, + state: "solid", + category: "powders", + reactions: { + "quicklime": { elem1:"soda_lime" } + }, + alias: "sodium hydroxide", + denisity: 3000, + tempHigh: 318, +}; + +// crushed bauxite (part of the process) +elements.crushed_bauxite = { + color: ["#a28e7b","#774422"], + behavior: behaviors.POWDER, + category: "powders", +}; + +// Alumina oxidizes. +elements.oxygen.reactions.alumina = { elem1:oxidized_alumina} + +// Makes Chrome and Stainless Steel more expensive on survival.js +if (enabledMods.includes("mods/survival.js")) { + runAfterLoad(function() { + elementWorth.chrome = 2; + elementWorth.stainless_steel = 5; + }); +}; + +// Obtaining Bauxite (ores.js only) +if (enabledMods.includes("mods/ores.js")) { + runAfterLoad(function() { + eLists.oreSpawnConditions.bauxite = 0.38; + eLists.oreRgb.bauxite = "rgba(140, 109, 88, "; + eLists.idealOreHeight.bauxite = 0.2; + }); +};