Create cool_tools.js

my first mod
This commit is contained in:
mrnoodleface 2023-03-21 17:27:30 -04:00 committed by GitHub
parent 8a90f2dee2
commit 985bd514f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 29 additions and 0 deletions

29
mods/cool_tools.js Normal file
View File

@ -0,0 +1,29 @@
elements.exploder = {
color: "#fa872f",
tool: function(pixel) {
if (pixel.element == "sand") {
pixel.element = "explosion"
}
},
category: "tools",
elements.radiator = {
color: "#248c1c",
tool: function(pixel) {
if (pixel.element == "null") {
pixel.element == "radiation"
}
if (pixel.element == "cloud") {
pixel.element = "rad_cloud"
}
if (pixel.element == "cell") {
pixel.element = "cancer"
}
if (pixel.element == "steam" {
pixel.element = "rad_steam
}
},
category: "tools",
//im aware that theres more radiation stuf than this