mod manager update

This commit is contained in:
slweeb 2022-01-16 20:17:12 -05:00
parent 0b8670c59f
commit a22924c5dc
4 changed files with 528 additions and 263 deletions

View File

@ -2,7 +2,21 @@
+ Artists' Update (Painting, Lines, Shapes, etc.) + Artists' Update (Painting, Lines, Shapes, etc.)
+ Explosives Update + Explosives Update
+ Machines Update + Machines Update
+ Mod Manager Update
[Version 0.9 - Mod Manager Update]
+ Mod Manager Menu
+ Clay Soil
+ Salt Water, Sugar Water, and Dirty Water evaporate into their components
+ Blood, Ketchup, Molasses, Slime, Vinegar, and Alcohol evaporate into their components
+ Reactions between cloud types
+ Acid Gas can form Acid Clouds
+ Fire Clouds turn to Pyrocumulus when cooled
+ Torches can be extinguished with water
+ Some Fireballs will burn into steam
~ Improved color of Permafrost, Dirt, Grass, Gravel, Basalt, Lamp Oil, Honey, Molasses, Chocolate Syrup, Bamboo, Corn, Corn Seed, Root, Potato Seed, Iron, Rust, Glass, Copper, Zinc, Tin, Silver, and Straw
~ Anaesthesia now a gas
+ Technical: stateHigh and stateLow can be an array, a random option is chosen
~ Fixed: Fireball rocks continue to burn after being extinguished
[Version 0.8.3] [Version 0.8.3]
+ Laser + Laser

File diff suppressed because it is too large Load Diff

40
mods/example_mod.js Normal file
View File

@ -0,0 +1,40 @@
// This is how to add a new mod to the game.
// Create a new Javascript file like this one.
// Add the file to the mods folder on GitHub, or host it somewhere else.
// https://github.com/slweeb/sandboxels/tree/main/mods
// To add it in the Mod Loader:
// If it is in the mods folder, you can just use the name of the file.
// If it is hosted somewhere else, you can use the full URL, including the HTTPS://.
// Adding elements:
elements.mayo = {
color: "#ffffff",
behavior: behaviors.LIQUID,
category: "liquids",
viscosity: 100000,
state: "liquid",
density: 720,
};
// 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",
"XX|DL|XX",
"XX|XX|XX",
];
// Creating eLists:
eLists.CONDIMENT = ["ketchup","melted_cheese","mayo"];
// Adding elements to eLists:
eLists.CONDIMENT.push("honey");

View File

@ -1,8 +1,8 @@
elements.mustard = { elements.mayo = {
color: "#ffff00", color: "#ffffff",
behavior: behaviors.LIQUID, behavior: behaviors.LIQUID,
category: "liquids", category: "liquids",
viscosity: 60000, viscosity: 100000,
state: "liquid", state: "liquid",
density: 720, density: 720,
} };