periodic_and_more.js Update 1.0.3

Had to fix some stuff
This commit is contained in:
Boxeled 2024-07-31 08:29:28 -05:00 committed by GitHub
parent 8d9e754550
commit 0c0b49a5ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 13 deletions

View File

@ -2,20 +2,13 @@
elements.beryllium = {
color: "#b3b3b3",
behavior: behaviors.WALL,
category: "periodic",
category: "solids",
viscosity: 100000,
state: "solid",
density: 720,
reactions: {
};
// Changing existing elements:
elements.water.color = "#ff0000";
elements.water.behavior = behaviors.WALL;
// Removing elements:
// Be aware, things may break
delete elements.ketchup;
// Adding behavior presets:
behaviors.SELFDELETE = [
"XX|XX|XX",
@ -57,15 +50,13 @@ runAfterLoad(function() {
console.log("Hello World!");
});
// Run if another mod is active
if (enabledMods.includes["mods/chem.js", "mods/moreChemistry.js", "mods/metals.js", "mods/halogen.js", "mods/noblegas.js", "mods/radioactive.js", "mods/nousersthings.js"]) {
runAfterLoad(function() {
// Your code here
console.log("Hello World!");
});
}
// Creating eLists:
eLists.PERIODIC = ["beryllium", "scandium", "vanadium", "manganese", "cobalt"];
// Adding elements to eLists:
eLists.CONDIMENT.push("honey");
// Adding elements to