cash_n_more.js

added sponges
This commit is contained in:
ludus530 2024-05-05 12:57:30 +02:00 committed by GitHub
parent b38b85ead8
commit a3adf44dbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 21 additions and 0 deletions

View File

@ -4,6 +4,27 @@ elements.cash = {
category: "powders",
};
delete elements.paper;
delete elements.sponge;
elements.sponge = {
color: "#ffff1a",
behavior: behaviors.SOLID,
category: "solids",
tool: function(pixel) {
if (pixel.element == "water") {
pixel.element = "wet_sponge"
}
},
};
elements.wet_sponge = {
color: "#cccc00",
behavior: behaviors.SOLID,
category: "solids",
};
elements.paper = {
color: "#ffffff",
behavior: behaviors.SOLID,