From e05a7d1f25c09590086c44c5eb949a8654dde82e Mon Sep 17 00:00:00 2001
From: Alexthetransfem <124483815+theenchantedsword@users.noreply.github.com>
Date: Mon, 18 Dec 2023 20:06:01 -0600
Subject: [PATCH 1/6] Update morechemistry.js
---
mods/morechemistry.js | 133 ++++++++++++++++++++++++++++++++++++------
1 file changed, 115 insertions(+), 18 deletions(-)
diff --git a/mods/morechemistry.js b/mods/morechemistry.js
index a5fa278f..c29fc2a3 100644
--- a/mods/morechemistry.js
+++ b/mods/morechemistry.js
@@ -1,4 +1,5 @@
//This mod was made by Alex the transfem, https://discord.com/users/778753696804765696 on discord and https://www.tiktok.com/@alextheagenenby?_t=8hoCVI3NRhu&_r=1 on tiktok.
+//V1.4.1: added a mixer element and an improved sensor element.
function customExplosion(pixel1, pixel2, radius, list) {
let x = pixel1.x;
let y = pixel1.y;
@@ -278,23 +279,7 @@ elements.acid.ignore.push("aqua_regia");
elements.cwall = {
"color": "rgb(128,128,128)",
"name": "Conductive Wall",
- "behavior": [
- [
- "XX",
- "XX",
- "XX"
- ],
- [
- "XX",
- "XX",
- "XX"
- ],
- [
- "XX",
- "XX",
- "XX"
- ]
- ],
+ "behavior": [["XX", "XX", "XX"], ["XX", "XX", "XX"], ["XX", "XX", "XX"]],
"category": "solids",
"insulate": false,
"hardness": 1,
@@ -811,7 +796,6 @@ elements.rubidiumsalt = {
density: 2800,
}
-elements.hydrogen.burnInto = "steam";
elements.irradiate = {
"color": "rgb(25,150,25)",
"temp": 2,
@@ -910,3 +894,116 @@ elements.rubidiumhydroxidecrystals = {
stateHigh: "potassiumhydroxidecrystals",
tempHigh: "1388",
}
+elements.esuperheater = {
+ conduct: 1,
+ color: '#dd1111',
+ colorObject: {
+ "r": 221,
+ "g": 17,
+ "b": 17
+ },
+ behavior: behaviors.WALL,
+ behaviorOn: [
+ [
+ "XX",
+ "HT:10",
+ "XX"
+ ],
+ [
+ "HT:10",
+ "XX",
+ "HT:10"
+ ],
+ [
+ "XX",
+ "HT:10",
+ "XX"
+ ]
+ ],
+ category: "machines",
+ name: "e-superheater",
+},
+ elements.efreezer = {
+ conduct: 1,
+ color: '#ffffff',
+ colorObject: {
+ "r": 255,
+ "g": 255,
+ "b": 255
+ },
+ behavior: behaviors.WALL,
+ behaviorOn: [
+ [
+ "XX",
+ "CO:10",
+ "XX"
+ ],
+ [
+ "CO:10",
+ "XX",
+ "CO:10"
+ ],
+ [
+ "XX",
+ "CO:10",
+ "XX"
+ ]
+ ],
+ category: "machines",
+ name: "e-freezer",
+ },
+ elements.mixer = {
+ name: "Mixer",
+ behavior:[
+ [
+ "SW",
+ "SW",
+ "SW"
+ ],
+ [
+ "SW",
+ "XX",
+ "SW"
+ ],
+ [
+ "SW",
+ "SW",
+ "SW"
+ ]
+ ],
+ category: "machines",
+ noMix: true,
+ }
+let item = "";
+elements.improvedsensor = {
+ behavior: behaviors.WALL,
+ color: "#bebfa3",
+ onSelect: function(){
+ item = prompt("what item should it detect?");
+ },
+ tick: function(pixel) {
+ if(pixel.start == pixelTicks){
+ pixel.clone = item;
+ }
+
+ for (var i = 0; i < adjacentCoords.length; i++) {
+ var coords = adjacentCoords[i];
+ var x = pixel.x + coords[0];
+ var y = pixel.y + coords[1];
+ if (!isEmpty(x,y,true)) {
+ var sensed = pixelMap[x][y];
+ if (sensed.element == pixel.clone) {
+ pixel.charge = 5;
+ break;
+ }
+ }
+ }
+ doDefaults(pixel);
+ },
+ conduct: 1,
+ movable: false,
+ category:"machines",
+ darkText: true,
+ hardness: 1,
+
+ };
From 1567c84929991e55cf19173c8ca887cb8da29676 Mon Sep 17 00:00:00 2001
From: Alexthetransfem <124483815+theenchantedsword@users.noreply.github.com>
Date: Mon, 18 Dec 2023 20:14:18 -0600
Subject: [PATCH 2/6] Update mod-list.html
---
mod-list.html | 3 +++
1 file changed, 3 insertions(+)
diff --git a/mod-list.html b/mod-list.html
index 394b68fe..2aeeb4e3 100644
--- a/mod-list.html
+++ b/mod-list.html
@@ -121,6 +121,7 @@
| change.js | Adds a tool that only replaces existing pixels | Alice |
| color_tools.js | Adds tools that manipulate colors | Alice |
| controllable_pixel_test.js | Adds a pixel that can be controlled with the keyboard keys. Read the commit description for more info. [PC ONLY] | Alice |
+| customexplosion.js | Added a custom explosion element and interface for it. check out its source code for how modders can use it. | Alex |
| cpt_alt.js | Adds a more destructive variant of the controllable pixel | Alice |
| delete_all_of_element.js | Adds a tool that deletes every pixel of the element(s) the user clicks on | Alice |
| descriptions.js | Adds descriptions to the info page and tooltips of elements | mollthecoder |
@@ -163,6 +164,7 @@
| liquid_energy.js | Adds liquid versions of the elements in the Energy category | Alice |
| metals.js | Adds several metals | Alice |
| mixture.js | Allows many chemicals to be mixed | lllllllllwith10ls |
+| morechemistry.js | Adds many new chemicals and compounds as well as some new machines | Alex |
| moreliquids.js | Adds various liquids | te-agma-at |
| nellfire.js | Adds a weird transforming flame and several rock types | Alice |
| Neutronium Mod.js | Variety of scientific elements Explosions | StellarX20 |
@@ -220,6 +222,7 @@
| toothpaste.js | Teeth and paste | Alice |
| Fun & Games |
+| allliquids.js | Made all elements liquids | Alex |
| amogus.js | Adds a small amogus structure | Alice |
| elem3.js | Adds all elements and combinations from Elemental 3 [Very Large] | Sophie |
| funny elements 2022-11-15.js | Adds a few curated randomly-generated elements | Alice |
From ccfb140f2c14d34eafb3451cea8427a40e5e9edc Mon Sep 17 00:00:00 2001
From: Alexthetransfem <124483815+theenchantedsword@users.noreply.github.com>
Date: Mon, 18 Dec 2023 20:14:36 -0600
Subject: [PATCH 3/6] Create allliquids.js
---
allliquids.js | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 allliquids.js
diff --git a/allliquids.js b/allliquids.js
new file mode 100644
index 00000000..ae92e535
--- /dev/null
+++ b/allliquids.js
@@ -0,0 +1,21 @@
+let liquid = [["XX", "XX", "XX"], ["M1", "XX", "M1"], ["M1", "M2", "M1"]]
+for (var element in elements){
+
+ let a = elements[element].behavior;
+ console.log(a, elements[element], liquid)
+ if(a != undefined && typeof a != 'function'){
+ let i = 0;
+ while (i < a.length){
+ if(typeof a[i] == "string"){
+ a[i] = a[i].split("|");
+ i += 1;
+ } else {
+ i += 1;
+ }
+ }
+ elements[element].behavior = [[a[0][0], a[0][1], a[0][2]], [`${a[1][0]} AND M1`, a[1][1], `${a[1][2]} AND M1`], [`${a[2][0]} AND M1`, `${a[2][1]} AND M2`, `${a[2][2]} AND M1`]];
+ } else {
+ elements[element].behavior = liquid;
+ }
+
+}
From 1eceeedf5de6d1c1b8b19f2ef66f5a6f9f00ed70 Mon Sep 17 00:00:00 2001
From: Alexthetransfem <124483815+theenchantedsword@users.noreply.github.com>
Date: Tue, 19 Dec 2023 10:12:04 -0600
Subject: [PATCH 4/6] Delete allliquids.js
---
allliquids.js | 21 ---------------------
1 file changed, 21 deletions(-)
delete mode 100644 allliquids.js
diff --git a/allliquids.js b/allliquids.js
deleted file mode 100644
index ae92e535..00000000
--- a/allliquids.js
+++ /dev/null
@@ -1,21 +0,0 @@
-let liquid = [["XX", "XX", "XX"], ["M1", "XX", "M1"], ["M1", "M2", "M1"]]
-for (var element in elements){
-
- let a = elements[element].behavior;
- console.log(a, elements[element], liquid)
- if(a != undefined && typeof a != 'function'){
- let i = 0;
- while (i < a.length){
- if(typeof a[i] == "string"){
- a[i] = a[i].split("|");
- i += 1;
- } else {
- i += 1;
- }
- }
- elements[element].behavior = [[a[0][0], a[0][1], a[0][2]], [`${a[1][0]} AND M1`, a[1][1], `${a[1][2]} AND M1`], [`${a[2][0]} AND M1`, `${a[2][1]} AND M2`, `${a[2][2]} AND M1`]];
- } else {
- elements[element].behavior = liquid;
- }
-
-}
From 03b0b7630f0f20c4418912fc7132e75cc5caa8d7 Mon Sep 17 00:00:00 2001
From: Alexthetransfem <124483815+theenchantedsword@users.noreply.github.com>
Date: Tue, 19 Dec 2023 10:13:55 -0600
Subject: [PATCH 5/6] Create allliquids.js
---
mods/allliquids.js | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 mods/allliquids.js
diff --git a/mods/allliquids.js b/mods/allliquids.js
new file mode 100644
index 00000000..ae92e535
--- /dev/null
+++ b/mods/allliquids.js
@@ -0,0 +1,21 @@
+let liquid = [["XX", "XX", "XX"], ["M1", "XX", "M1"], ["M1", "M2", "M1"]]
+for (var element in elements){
+
+ let a = elements[element].behavior;
+ console.log(a, elements[element], liquid)
+ if(a != undefined && typeof a != 'function'){
+ let i = 0;
+ while (i < a.length){
+ if(typeof a[i] == "string"){
+ a[i] = a[i].split("|");
+ i += 1;
+ } else {
+ i += 1;
+ }
+ }
+ elements[element].behavior = [[a[0][0], a[0][1], a[0][2]], [`${a[1][0]} AND M1`, a[1][1], `${a[1][2]} AND M1`], [`${a[2][0]} AND M1`, `${a[2][1]} AND M2`, `${a[2][2]} AND M1`]];
+ } else {
+ elements[element].behavior = liquid;
+ }
+
+}
From c4cb74a968c42cfe477f802681d2cca37e96d408 Mon Sep 17 00:00:00 2001
From: slweeb <91897291+slweeb@users.noreply.github.com>
Date: Tue, 19 Dec 2023 11:18:04 -0500
Subject: [PATCH 6/6] Delete .replit
---
.replit | 2 --
1 file changed, 2 deletions(-)
delete mode 100644 .replit
diff --git a/.replit b/.replit
deleted file mode 100644
index 65984a6d..00000000
--- a/.replit
+++ /dev/null
@@ -1,2 +0,0 @@
-language="html"
-run="index.html"
\ No newline at end of file