2024-07-29 17:15:10 -04:00
|
|
|
|
2024-07-29 18:29:16 -04:00
|
|
|
elements.beryllium = {
|
|
|
|
|
color: "#b3b3b3",
|
|
|
|
|
behavior: behaviors.WALL,
|
2024-07-31 09:29:28 -04:00
|
|
|
category: "solids",
|
2024-07-29 17:15:10 -04:00
|
|
|
viscosity: 100000,
|
2024-07-29 18:29:16 -04:00
|
|
|
state: "solid",
|
2024-07-29 17:15:10 -04:00
|
|
|
density: 720,
|
2024-07-31 09:29:28 -04:00
|
|
|
reactions: {
|
2024-07-29 17:15:10 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Adding behavior presets:
|
|
|
|
|
behaviors.SELFDELETE = [
|
|
|
|
|
"XX|XX|XX",
|
|
|
|
|
"XX|DL|XX",
|
|
|
|
|
"XX|XX|XX",
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
// Raw JavaScript behaviors:
|
|
|
|
|
behaviors.mud.tick = function(pixel) {
|
|
|
|
|
if (tryMove(pixel, pixel.x, pixel.y+1)) {
|
|
|
|
|
console.log("Moved!");
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
console.log("Couldn't move!")
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Create a new tool:
|
|
|
|
|
elements.sand_exploder = {
|
|
|
|
|
color: "#ff0000",
|
|
|
|
|
tool: function(pixel) {
|
|
|
|
|
if (pixel.element == "sand") {
|
|
|
|
|
pixel.element = "explosion"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
category: "tools",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Add reactions to existing elements
|
|
|
|
|
if (!elements.water.reactions) { // Include this block once
|
|
|
|
|
elements.water.reactions = {} // This creates the property if it doesn't exist
|
|
|
|
|
}
|
|
|
|
|
elements.water.reactions.mayo = { "elem1":null, "elem2":"mayo_water" }
|
|
|
|
|
elements.water.reactions.soap = { "elem1":null, "elem2":"soapy_water" }
|
|
|
|
|
|
|
|
|
|
// Run after all mods are loaded, for cross-mod compatibility
|
|
|
|
|
runAfterLoad(function() {
|
|
|
|
|
// Your code here
|
|
|
|
|
console.log("Hello World!");
|
|
|
|
|
});
|
|
|
|
|
|
2024-07-29 18:34:36 -04:00
|
|
|
if (enabledMods.includes["mods/chem.js", "mods/moreChemistry.js", "mods/metals.js", "mods/halogen.js", "mods/noblegas.js", "mods/radioactive.js", "mods/nousersthings.js"]) {
|
2024-07-29 17:15:10 -04:00
|
|
|
runAfterLoad(function() {
|
2024-07-31 09:29:28 -04:00
|
|
|
|
2024-07-29 17:15:10 -04:00
|
|
|
console.log("Hello World!");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Creating eLists:
|
|
|
|
|
eLists.PERIODIC = ["beryllium", "scandium", "vanadium", "manganese", "cobalt"];
|
2024-07-31 09:29:28 -04:00
|
|
|
// Adding elements to
|