Merge pull request #1215 from pizzapi2012/main

more_art_states.js
This commit is contained in:
slweeb 2025-08-18 16:13:10 -04:00 committed by GitHub
commit 0e287ce46f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 90 additions and 0 deletions

View File

@ -377,6 +377,7 @@
<tr><td>memelists.js</td><td>You must select elements through a list at the bottom of the page</td><td>mollthecoder</td></tr>
<tr><td>minecraft.js</td><td>Several things from Minecraft</td><td>nousernamefound</td></tr>
<tr><td>minesweeper.js</td><td>Implementation of Minesweeper</td><td>Alice</td></tr>
<tr><td>more_art_states.js</td><td>More states of the Art element</td><td>ACrazyPencil</td></tr>
<tr><td>musicalfruit.js</td><td>Humans get gas from eating Beans</td><td>mollthecoder</td></tr>
<tr><td>nekonicos_stuff.js</td><td>Random stuff like graphite, oobleck, and red ice, as well as many machines</td><td>Nekonico</td></tr>
<tr><td>prideflags.js</td><td>Some pride flags to the game</td><td>Adora</td></tr>

89
mods/more_art_states.js Normal file
View File

@ -0,0 +1,89 @@
/*
A mod that adds some extra states of the art element.
(c) ACrazyPencil 2025
*/
elements.powder_art = {
name: "Powder Art",
color: "#ffffff",
behavior: behaviors.POWDER,
tool: function(pixel) {
if (pixel.element === "paper") {
deletePixel(pixel.x,pixel.y)
}
},
canPlace: true,
customColor: true,
category: "powders",
related: ["art", "liquid_art", "gas_art", "breakable_art"],
burn: false,
hardness: 1,
conduct: false,
stain: 0,
state: "powder"
}
elements.liquid_art = {
name: "Liquid Art",
behavior: behaviors.LIQUID,
tool: function(pixel) {
if (pixel.element === "paper") {
deletePixel(pixel.x,pixel.y)
}
},
canPlace: true,
customColor: true,
category: "liquids",
related: ["art", "powder_art", "breakable_art", "gas_art"],
burn: false,
hardness: 1,
conduct: false,
stain: 0,
state: "liquid"
}
elements.gas_art = {
name: "Gas Art",
behavior: behaviors.GAS,
tool: function(pixel) {
if (pixel.element === "paper") {
deletePixel(pixel.x,pixel.y)
}
},
canPlace: true,
customColor: true,
category: "gases",
related: ["art", "powder_art", "liquid_art", "breakable_art"],
burn: false,
hardness: 1,
conduct: false,
stain: 0,
state: "gas"
}
elements.breakable_art = {
name: "Breakable Art",
behavior: behaviors.WALL,
tool: function(pixel) {
if (pixel.element === "paper") {
deletePixel(pixel.x,pixel.y)
}
},
canPlace: true,
customColor: true,
category: "solids",
related: ["art", "powder_art", "liquid_art"],
burn: false,
conduct: false,
stain: 0,
state: "solid",
tempLow: -45.555556,
stateLow: "liquid_art",
tempHigh: 204.444444,
stateHigh: "gas_art",
breakInto: "powder_art",
breakIntoColorMultiplier: [1,1,1],
}
elements.art.related = ["powder_art", "liquid_art", "gas_art", "breakable_art"]
elements.art.hardness = 1