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.
This commit is contained in:
MicaelNotUsed 2025-03-16 01:02:28 -03:00 committed by GitHub
parent 4a30095413
commit ae76a7c9a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 91 additions and 1 deletions

View File

@ -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 };
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;
});
};