From a1e544520c0ad0358d4a0f5c3d4b72b03b8c9072 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername Date: Fri, 26 Apr 2024 18:22:38 -0400 Subject: [PATCH 01/43] quick fixes --- mods/10kelements.js | 8 ++++---- mods/nousersthings.js | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mods/10kelements.js b/mods/10kelements.js index f60a6e13..957d4088 100644 --- a/mods/10kelements.js +++ b/mods/10kelements.js @@ -38,8 +38,8 @@ var randomProperty = function (obj) { if (Math.abs(settings.randomcount) == settings.randomcount){ if (!settings.skineasteregg){ for (var i = 1; i <= settings.randomcount; i++){ - var f = Math.random() < 0.2 - var co = Math.random() < 0.2 + var canHeat = Math.random() < 0.2 + var canCold = Math.random() < 0.2 elements["element_"+i] = { color: "#" + color[Math.floor(Math.random()*color.length)] + color[Math.floor(Math.random()*color.length)] + color[Math.floor(Math.random()*color.length)] + color[Math.floor(Math.random()*color.length)] + color[Math.floor(Math.random()*color.length)] + color[Math.floor(Math.random()*color.length)], category: "random", @@ -49,11 +49,11 @@ if (Math.abs(settings.randomcount) == settings.randomcount){ density: randomIntFromInterval(1, 10000) } total = i - if (f){ + if (canHeat){ elements["element_"+i].tempHigh = 20 + randomIntFromInterval(10, 6000) elements["element_"+i].stateHigh = elementslist[Math.floor(Math.random()*elementslist.length)] } - if (co){ + if (canCold){ elements["element_"+i].tempLow = 20 - randomIntFromInterval(10, 270) elements["element_"+i].stateLow = elementslist[Math.floor(Math.random()*elementslist.length)] } diff --git a/mods/nousersthings.js b/mods/nousersthings.js index 59e7028e..524b532e 100644 --- a/mods/nousersthings.js +++ b/mods/nousersthings.js @@ -1798,6 +1798,7 @@ elements.invisiblewall = { category: "solids", movable: false, noMix: true, + hardness: 1, }, elements.bismuth = { color: ["#818181","#989898","#b0b0b0","#c9c9c9"], From d09f3573d1ed1d0671ad03299dbe671147965fac Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Fri, 26 Apr 2024 22:51:14 -0400 Subject: [PATCH 02/43] Update mod-list.html --- mod-list.html | 1 + 1 file changed, 1 insertion(+) diff --git a/mod-list.html b/mod-list.html index 6b6bd780..6e4ebf1e 100644 --- a/mod-list.html +++ b/mod-list.html @@ -234,6 +234,7 @@ sbstuff.jsAdds many foodsstefanblox soups.jsAdds seasoning and souppixelegend4 weAllScreamFor.jsAdds ice cream toppingsrottenEgghead +CherrySoda.jsAdds materials to create Cherry Soda. Water + C02 = Seltzer, Potsassium permanganate + Tolulene = Benzaldehyde, Benzaldehyde + Seltzer = Cherry Soda. guzzo86 Life & Nature advanced_colonies.jsAdds davlers, creatures with complex coloniesDaviStudios From 700617b350f6040f1f08b877b52904e1d19df198 Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Sat, 27 Apr 2024 09:39:45 -0400 Subject: [PATCH 03/43] Update CherrySoda.js --- mods/CherrySoda.js | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/mods/CherrySoda.js b/mods/CherrySoda.js index 0be7f3da..98475765 100644 --- a/mods/CherrySoda.js +++ b/mods/CherrySoda.js @@ -29,7 +29,8 @@ elements.tolulene = { burnInto: ["steam", "smoke", "fire", "fire",], reactions: { "potassiumpermanganate": {elem1: "benzaldehyde", elem2: "benzaldehyde"}, - } + }, + tempHigh: 111, } elements.benzaldehyde = { color: "#F5F5F5", @@ -40,7 +41,7 @@ elements.benzaldehyde = { desc: "Benzaldehyde is cherry flavor. It is also clear like tolulene.", reactions: { "seltzer": {elem1: "cherrysoda", elem2: "cherrysoda"}, - } + }, } elements.cherrysoda = { color: "#D2042D", @@ -48,5 +49,29 @@ elements.cherrysoda = { category: "food", state: "liquid", density: 1045, - desc: "Cherry soda." + desc: "Cherry soda.", + tempHigh: 150, + stateHigh: "cherrysoda_gas", +} +elements.cherrysoda_gas = { + color: "#D20459", + behavior: behaviors.GAS, + category: "gases", + state: "gas", + density: 1025, + desc: "Cherry soda gas.", + tempLow: 149, + stateLow: "cherrysoda", + temp: 169, +} +elements.cherrysoda_ice = { + color: "BF4F9C", + behavior: behaviors.wALL, + category: "solids", + state: "solid", + density: 1065, + desc: "Cherry soda gas.", + tempHigh: -27, + stateHigh: "cherrysoda", + temp: -47, } From 5cdb595fe21af71a9a902661b52ab4c180f45bda Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Sat, 27 Apr 2024 09:40:06 -0400 Subject: [PATCH 04/43] Create GrapeSoda.js --- mods/GrapeSoda.js | 140 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 140 insertions(+) create mode 100644 mods/GrapeSoda.js diff --git a/mods/GrapeSoda.js b/mods/GrapeSoda.js new file mode 100644 index 00000000..5716aeac --- /dev/null +++ b/mods/GrapeSoda.js @@ -0,0 +1,140 @@ +elements.anthranilicacid = { + color: "#FFFFFF", + behavior: behaviors.POWDER, + category: "powders", + state: "solid", + tempHigh: 145, + stateHigh: "moltenanthranilicacid", + reactions: { + "methanol": {elem1: "methylanthranilate", elem2: "methylanthranilate"}, + }, + } + + elements.moltenanthranilicacid = { + color: ["#FFFF99", "#FFFF66", "#FFFF00"], + behavior: behaviors.LIQUID, + category: "states", + state: "liquid", + tempLow: 144, + stateLow: "anthranilicacid", + tempHigh: 340, + stateHigh: "anthranilicacidgas", + temp: 155, + viscosity: 10, + } + + elements.anthranilicacidgas = { + color: "#FEDEFF", + behavior: behaviors.GAS, + category: "gases", + state: "gas", + tempLow: 339, + stateLow: "moltenanthranilicacid", + temp: 350, + } + + elements.methanol = { + color: "#FFE4FF", + behavior: behaviors.LIQUID, + category: "liquids", + state: "liquid", + density: 792, + stateHigh: "methanolgas", + tempHigh: 65, + stateLow: "methanolice", + tempLow: -98, + burn: 100, + burnTime: 100, + burnInto: "carbondioxide" + } + + elements.methanolice = { + color: "#FFFFFF", + behavior: behaviors.SOLID, + category: "solids", + state: "solid", + density: 822, + stateHigh: "methanol", + temp: -117, + tempHigh: -97, + } + + elements.methanolgas = { + color: "#E1E4FF", + behavior: behaviors.GAS, + category: "gases", + state: "gas", + density: 942, + stateLow: "methanol", + tempLow: 64, + temp: 84, + } + elements.methylanthranilate = { + color: "#FFFBBA", + behavior: behaviors.LIQUID, + category: "liquids", + state: "liquid", + density: 1120, + stateHigh: "methylanthranilategas", + tempHigh: 257, + stateLow: "methylanthranilateice", + tempLow: -20, + reactions: { + "seltzer": {elem1: "grapesoda", elem2: "grapesoda",} + } + } + + elements.methylanthranilategas = { + color: "#FFFBBA", + behavior: behaviors.GAS, + category: "gases", + state: "gas", + density: 1120, + stateLow: "methylanthranilate", + tempLow: 256, + temp: 276, + } + elements.methylanthranilateice = { + color: "#FFFBD7", + behavior: behaviors.WALL, + category: "solids", + state: "solid", + density: 1120, + stateHigh: "methulanthranilate", + temphigh: -19, + temp: -39, + } + + elements.grapesoda = { + color: "#5B134F", + behavior: behaviors.LIQUID, + category: "food", + state: "liquid", + density: 1120, + stateHigh: "grapesodagas", + tempHigh: 257, + stateLow: "grapesodaice", + tempLow: -20, + } + + elements.grapesodagas = { + color: "#B99FEA", + behavior: behaviors.GAS, + category: "gases", + state: "gas", + density: 1100, + stateLow: "grapesoda", + tempLow: 256, + temp: 257, + } + +elements.grapesodaice = { + color: "#B99FC2", + behavior: behaviors.WALL, + category: "solids", + state: "solid", + density: 1140, + stateHigh: "grapesoda", + tempHigh: -19, + temp: -20, + } From 1d7563d4007b9e1efc7c80b79a071fea89636347 Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Sat, 27 Apr 2024 09:41:02 -0400 Subject: [PATCH 05/43] Update mod-list.html --- mod-list.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod-list.html b/mod-list.html index 6e4ebf1e..51d5b36c 100644 --- a/mod-list.html +++ b/mod-list.html @@ -234,7 +234,8 @@ sbstuff.jsAdds many foodsstefanblox soups.jsAdds seasoning and souppixelegend4 weAllScreamFor.jsAdds ice cream toppingsrottenEgghead -CherrySoda.jsAdds materials to create Cherry Soda. Water + C02 = Seltzer, Potsassium permanganate + Tolulene = Benzaldehyde, Benzaldehyde + Seltzer = Cherry Soda. guzzo86 +CherrySoda.jsAdds materials to make Cherry soda. Benzaldehyde + seltzer = Cherrysoda.guzzo86 +GrapeSoda.jsAdds materials to make Grape soda. Methylanthranilate + seltzer = Grapesoda.guzzo86 Life & Nature advanced_colonies.jsAdds davlers, creatures with complex coloniesDaviStudios From ecabf5e6097ad6ccc9dfd73728f154e9f5536a31 Mon Sep 17 00:00:00 2001 From: Retorta1 <165048795+Retorta1@users.noreply.github.com> Date: Sat, 27 Apr 2024 16:11:24 +0200 Subject: [PATCH 06/43] Update hu.json corrected some words --- lang/hu.json | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lang/hu.json b/lang/hu.json index b8645d87..9c4361c0 100644 --- a/lang/hu.json +++ b/lang/hu.json @@ -189,7 +189,7 @@ "bubble":"buborék", "acid":"sav", "neutral_acid":"semleges_sav", -"acid_gas":"savgáz", +"acid_gas":"savgőz", "glue":"ragasztó", "soda":"szénsavas_üdítőital", "gray_goo":"szürke_ragacs", @@ -242,7 +242,7 @@ "sterling":"sterling_ezüst", "gallium":"gallium", "molten_gallium":"olvadt_gallium", -"gallium_gas":"gallium_gáz", +"gallium_gas":"galliumgőz", "rose_gold":"rózsaarany", "purple_gold":"lila_arany", "blue_gold":"kék_arany", @@ -259,7 +259,7 @@ "molten_solder":"olvadt_forrasztó_fém", "juice":"lé", "juice_ice":"fagyott_lé", -"broth":"leves_leve", +"broth":"leveslé", "milk":"tej", "chocolate_milk":"csokis_tej", "fruit_milk":"gyümölcsös_tej", @@ -357,7 +357,7 @@ "liquid_helium":"folyékony_hélium", "sodium":"nátrium", "molten_sodium":"olvadt_nátrium", -"sodium_gas":"nátrium_gáz", +"sodium_gas":"nátriumgőz", "calcium":"kalcium", "molten_calcium":"olvadt_kalcium", "limestone":"mészkő", @@ -377,7 +377,7 @@ "fragrance":"illat", "perfume":"parfüm", "cyanide":"cián", -"cyanide_gas":"cián_gáz", +"cyanide_gas":"ciángáz", "ozone":"ózon", "cloud":"felfő", "rain_cloud":"esőfelhő", @@ -394,7 +394,7 @@ "led_b":"kék_led", "sulfur":"kén", "molten_sulfur":"olvadt_kén", -"sulfur_gas":"kén_gáz", +"sulfur_gas":"kéngőz", "copper_sulfate":"rézgálic", "snake":"kígyó", "loopy":"kacskaringós", @@ -426,7 +426,7 @@ "bead":"gyöngy", "color_sand":"színes_homok", "borax":"bórax", -"epsom_salt":"epsom_só", +"epsom_salt":"keserűsó", "potassium_salt":"kálium_só", "sodium_acetate":"nátrium-acetát", "lightning":"villámcsapás", @@ -501,7 +501,7 @@ "molten_blue_gold":"olvadt_kék_arany", "molten_electrum":"olvadt_elektrum", "molten_pyrite":"olvadt_pirit", -"broth_ice":"fagyott_leves_leve", +"broth_ice":"fagyott_leveslé", "frozen_vinegar":"fagyott_ecet", "sauce_ice":"fagyott_szósz", "alcohol_ice":"fagyott_alkohol", @@ -519,7 +519,7 @@ "molten_alga":"olvadt_alumínium-gallim_ötvözet", "molten_metal_scrap":"olvadt_fémtörmelék", "molten_borax":"olvadt_borax", -"molten_epsom_salt":"olvadt_epsom-só", +"molten_epsom_salt":"olvadt_keserűsó", "molten_potassium_salt":"olvadt_kálium_só", "molten_sodium_acetate":"olvadt_nátrium-acetát", "frozen_nitro":"fagyott_nitroglicerin", @@ -539,5 +539,5 @@ "tsunami": "cunami", "blaster": "plazmavető", "propane_ice": "fagyott_propán", -"molten_caustic_potash": "Olvadt_kálium-hidroxid" +"molten_caustic_potash": "olvadt_kálium-hidroxid" } From ddfb0446ae8ee1156c45e1b197c9cad8d0a28418 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Sat, 27 Apr 2024 14:29:04 -0400 Subject: [PATCH 07/43] infinite chef ad --- index.html | 1 + mod-list.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 94463d55..3f8dcae8 100644 --- a/index.html +++ b/index.html @@ -16243,6 +16243,7 @@ Cancer, Landmine, Grenade, Smoke Grenade">? 简体中文

+

Try our NEW GAME: Infinite Chef

Email us at contact@R74n.com for advertising, help, or education!

Be notified when Sandboxels and other R74n projects are updated, along with ramblings from the developer!

diff --git a/mod-list.html b/mod-list.html index e812157e..78e1a49e 100644 --- a/mod-list.html +++ b/mod-list.html @@ -117,7 +117,7 @@ velocity.jsBeta for explosion velocity, and later wind, which may come to the base game in the futureR74n Tools & Settings -adjustablepixelsize.jsAllows you to set the pixelSize with a URL parameterAlice + betaworldgen.jsadds a more advanced world generation to the gameAdora betterModManager.jsImprovements to the Mod Managerggod betterSettings.jsAdds additional settings and functionalityggod From d11857c30063f7b457efcd425dce74be553199a3 Mon Sep 17 00:00:00 2001 From: scen2tester <156643479+scen2tester@users.noreply.github.com> Date: Sat, 27 Apr 2024 23:14:18 -0400 Subject: [PATCH 08/43] spaceship --- mods/spaceship.js | 138 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 mods/spaceship.js diff --git a/mods/spaceship.js b/mods/spaceship.js new file mode 100644 index 00000000..3602462e --- /dev/null +++ b/mods/spaceship.js @@ -0,0 +1,138 @@ +elements.power_core = { + color: ["#10F7F3", "#5AEDEB", "#BDFCFB"], + behavior: behaviors.WALL, + temp: 250, + category: "special", + stateHigh: "n_explosion", + tempHigh: 9500, + state: "solid", + desc: "The power core for your spaceship! Make sure it doesnt reach 9500 degrees!" , + tick: function(pixel) { + const elementToCheck = "core_casing"; +let isValid = true; +for (let i = pixel.x - 4; i < pixel.x + 4; i++) { + for (let j = pixel.y - 4; j < pixel.y + 4; j++) { + if (Math.abs(pixel.x - i) === 4 || Math.abs(pixel.y - j) === 4) {isValid &= pixelMap[i][j]?.element === elementToCheck;} + else if (i !== pixel.x && j !== pixel.y) isValid &= isEmpty(i, j); + } +} +// if (!pixel.alerted) { + // if (isValid) { alert("Power Core succesfully stored") } + // else { alert("Invalid core! Make sure its a 9x9 hollow box with the pixel in the middle!"); } + // pixel.alerted = true; +// } Not finished Yet +if (pixel.temp === 5000) { pixel.color = pixelColorPick(pixel,"#F92810");} + else if ( pixel.temp < 2000) { pixel.color = pixelColorPick(pixel,"#F9B610");} + else { pixel.color = pixelColorPick(pixel,"#5AEDEB");} + if (isValid) { if (pixelMap[pixel.x][pixel.y-4].element === "core_casing") + {createPixel("core_energizer", pixel.x, pixel.y-5);}} + else {{createPixel("core_energizer", pixel.x, pixel.y-4);} + } +}, +}; +elements.thrusters = { + color: ["#8D8D8C", "#666666"], + behavior: behaviors.WALL, + category: "special", + behaviorOn: [ + "XX|XX|XX", + "XX|XX|CR:fire", + "XX|XX|XX", + ], + state: "solid", + desc: "Use this to drive your ship! (Cosmetic)", + conduct:1, +}; +elements.core_wall = { + color: ["#6EB5F1", "#708494"], + behavior: behaviors.WALL, + hardness: 1, + density: 90000000, + desc: "Harder than anything in the world!", + category: "special", +}; +elements.space_blaster = { + color: ["#10F7F3", "#5AEDEB", "#BDFCFB"], + tick: function(pixel) { + for (var i = 0; i < 3; i++) { + var skip = false; + if (!isEmpty(pixel.x,pixel.y-1,true)) { + var p = pixelMap[pixel.x][pixel.y-1]; + if (p.element === "space_blaster") { skip = true; } + if (Math.random() < 0.9 && elements[p.element].hardness !== 1) { + deletePixel(p.x,p.y); + } + } + if (!tryMove(pixel,pixel.x-1,pixel.y,["flash","heat_ray","electric"]) && !skip) { + explodeAt(pixel.x,pixel.y,30,"plasma"); + var coords = circleCoords(pixel.x,pixel.y,15); + coords.forEach(function(coord) { + var x = coord.x; + var y = coord.y; + if (!isEmpty(x,y,true)) { + pixelMap[x][y].temp += 10000; + pixelTempCheck(pixelMap[x][y]); + } + }) + deletePixel(pixel.x,pixel.y); + return; + } + } + }, + category: "energy", + state: "solid", + density: 100000000, + temp: 10000, + hardness: 1, + maxSize: 3, + cooldown: defaultCooldown, + excludeRandom: true, + desc: "A energized blaster pixel", +}; +elements.space_gunner_LEFT = { + color: ["#708494", "#5A6873"], + behavior: behaviors.WALL, + category: "special", + behaviorOn: [ + "XX|XX|XX", + "CR:space_blaster|XX|XX", + "XX|XX|XX", + ], + state: "solid", + desc: "Use this to shoot your enemies! (Shoots Left)", + conduct:1, +}; +elements.space_gunner_RIGHT = { + color: ["#708494", "#5A6873"], + behavior: behaviors.WALL, + category: "special", + behaviorOn: [ + "XX|XX|XX", + "XX|XX|CR:space_blaster", + "XX|XX|XX", + ], + state: "solid", + desc: "Use this to shoot your enemies! (Shoots Right)", + conduct:1, +}; +elements.core_energizer = { + color: "#FFFB00", + hidden: true, + behavior: behaviors.WALL, + state: "solid", + tick: function(pixel) { + createPixel("radiation", pixel.x, pixel.y+1) + }, +}; +elements.core_casing = { + color: ["#4A7375","#C1D875","#8BFCF3"], + reactions: { + "radiation": { elem2:"electric", temp1:200 } + }, + behavior: behaviors.WALL, + category: "special", + density: 2710, + conduct: 0.73, + hardness: 1, + desc: "Casing for the inner core!", + }; \ No newline at end of file From 5295b326d6f5b75391163e50631036e1eee4a4c0 Mon Sep 17 00:00:00 2001 From: ThatOtherProto <127895014+ThatOtherProto@users.noreply.github.com> Date: Sun, 28 Apr 2024 16:52:46 +0100 Subject: [PATCH 09/43] Update Science_mod.js Just finishing off my code from 2 days ago --- mods/Science_mod.js | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/mods/Science_mod.js b/mods/Science_mod.js index 4c216af2..b0690972 100644 --- a/mods/Science_mod.js +++ b/mods/Science_mod.js @@ -1,10 +1,8 @@ // Science mod for Sandboxels // (Inspired by survival.js) -// Build 19 -// By: Lucifer (@a_british_proto (Discord)) -// If there is anything you want to suggest or there's a bug then just dm me on discord +// Build 20 +// If there is anything you want to suggest or there's a bug then just dm me on discord (@a_british_proto) // Todo: -// - Try to get the mod to work by making different ways to craft all the (116) elements in the mod // - Make new substances that you can get after mixing different elements // - Make a way to get the different substances by mixing different elements and different substances // - Create different proporties for the substances (doing now) @@ -1383,7 +1381,7 @@ substance.Silver_Sulfate = { hidden:true } -// I have finally gotten my motivation back! :D +// Decided to just change the console.log to a comment because it got me confused between the github page and VSC substance.Silver_Selenide = { behavior: behaviors.WALL, @@ -1446,25 +1444,24 @@ substance.Aluminum_Diboride = { hidden:true } -// Doing this later as my schools blocked chatgpt and the definition is not on Ptable.com :/ -// substance.Aluminum_Dodecaboride = { -// behavior: behaviors.NULL, -// color: "000000", -// category: "null", -// state: "null", -// hidden:true -// } +substance.Aluminum_Dodecaboride = { + behavior: behaviors.WALL, + color: "000000", + category: "lands", + state: "solid", + hidden:true +} -// substance.Aluminum_Bromate_Nonahydrate = { -// behavior: behaviors.NULL, -// color: "000000", -// category: "null", -// state: "null", -// hidden:true -// } +substance.Aluminum_Bromate_Nonahydrate = { + behavior: behaviors.WALL, + color: "FFFFFF", + category: "lands", + state: "solid", + hidden:true +} substance.Aluminum_Tribromide = { - behavior: behavior.NULL, // It's meant to be a powder but I'm too tired to go look plus I need to go to my next lesson now + behavior: behavior.POWDER, color: "FF0000", category: "lands", state: "powder", From 1a8d5238308ab57ae015d2be783a043bd6033d63 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Sun, 28 Apr 2024 19:29:02 -0400 Subject: [PATCH 10/43] buildingreplicator.js --- mod-list.html | 1 + mods/buildingreplicator.js | 213 +++++++++++++++++++++++++++++++++++++ 2 files changed, 214 insertions(+) create mode 100644 mods/buildingreplicator.js diff --git a/mod-list.html b/mod-list.html index f07335c9..4c575eff 100644 --- a/mod-list.html +++ b/mod-list.html @@ -122,6 +122,7 @@ betterModManager.jsImprovements to the Mod Managerggod betterSettings.jsAdds additional settings and functionalityggod betterStats.jsSeparate “real” and “set” TPS, meaning you can see what the TPS actually is, instead of only seeing what it’s set tomollthecoder +buildingreplicator.jsScans and replicates builds anywhere on the screen, along with some preset submitted buildsnousernamefound change.jsAdds a tool that only replaces existing pixelsAlice color_tools.jsAdds tools that manipulate colorsAlice controllable_pixel_test.jsAdds a pixel that can be controlled with the keyboard keys. Read the commit description for more info. [PC ONLY]Alice diff --git a/mods/buildingreplicator.js b/mods/buildingreplicator.js new file mode 100644 index 00000000..bd05b3f0 --- /dev/null +++ b/mods/buildingreplicator.js @@ -0,0 +1,213 @@ +function playSound(soundFile) { + var audio = new Audio("https://JustAGenericUsername.github.io/" + soundFile); + audio.play(); + } + function reverseObject(obj) { + const reversedObj = {}; + for (const key in obj) { + const value = obj[key]; + reversedObj[value] = key; + } + return reversedObj; +} +let blueprint = [ + ["0","0","0","0","0","G","G","G","G","G","0","0","0","0","0"], + ["0","0","0","G","G","S","W","W","W","S","G","G","0","0","0"], + ["0","0","G","W","W","S","W","W","W","S","W","W","G","0","0"], + ["0","G","W","W","W","S","0","0","0","S","W","W","W","G","0"], + ["0","G","W","W","0","0","0","0","0","0","0","W","W","G","0"], + ["G","S","S","S","0","0","0","0","0","0","0","S","S","S","G"], + ["G","W","W","0","0","0","0","0","0","0","0","0","W","W","G"], + ["G","W","W","0","0","0","0","0","0","0","0","0","W","W","G"], + ["G","W","W","0","0","0","0","0","0","0","0","0","W","W","G"], + ["G","S","S","S","0","0","0","0","0","0","0","S","S","S","G"], + ["0","G","W","W","0","0","0","0","0","0","0","W","W","G","0"], + ["0","G","W","W","W","S","0","0","0","S","W","W","W","G","0"], + ["0","0","G","W","W","S","W","W","W","S","W","W","G","0","0"], + ["0","0","0","G","G","S","W","W","W","S","G","G","0","0","0"], + ["0","0","0","0","0","G","G","G","G","G","0","0","0","0","0"] +] +let decaybp = [ + [0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0], + [0,2,2,2,2,0,2,2,2,2,2,2,2,3,1,3,0,4,0], + [5,2,2,6,6,7,6,6,6,6,6,6,6,8,8,8,8,8,0], + [5,2,9,6,6,0,6,0,6,0,6,0,6,9,0,0,0,10,0], + [8,2,11,6,6,0,6,0,6,0,6,0,6,8,8,8,8,8,0], + [5,2,9,6,6,6,0,0,0,0,0,0,6,9,2,2,0,10,0], + [5,2,2,2,9,6,9,9,6,9,9,6,9,9,2,2,0,10,0], + [0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,10,0], + [0,0,9,9,0,9,9,0,9,0,9,9,0,9,9,2,2,2,2]] +function getRandomPixelCoordinates(pixel, offsetx, offsety, bp, keyobject) { + let x, y, r; + let attempts = 0; + const maxAttempts = 1000; + do { + x = Math.floor(Math.random() * bp[0].length); + y = Math.floor(Math.random() * bp.length); + r = bp[y][x]; + r = keyobject[r]; + if (r !== undefined) { + attempts++; + } + if (attempts >= maxAttempts) { + return "terminated"; + } + } while (r === undefined || r === 0 || r === "0" || !isEmpty(pixel.x + x - offsetx, pixel.y + y - offsety, true)); + return { x, y, r }; +} + +elements.turn_into = { + color: "#000000", + behavior: behaviors.WALL, + state: "gas", + hidden: true, + properties: { + timer: 8, + }, + category: "special", + tick: function(pixel){ + if (!pixel.turninto){deletePixel(pixel.x, pixel.y); return} + if (pixel.timer == 8){pixel.color = pixelColorPick({element: pixel.turninto})} + //console.log(elements[pixel.turninto].color) + pixel.timer -- + if (pixel.timer <= 0){ + deletePixel(pixel.x, pixel.y); + createPixel(pixel.turninto, pixel.x, pixel.y); + } + } +} +elements.submitted_blueprint_1_creator = { + color: "#64abfd", + behavior: behaviors.WALL, + state: "solid", + category: "special", + tick: function(pixel){ + if(!pixel.done){ + if (pixelTicks % 3 == 0){ + let randomcoord = getRandomPixelCoordinates(pixel, 7, 7, blueprint, {G: "glass", S: "steel", W: "silver"}); + if (randomcoord == "terminated"){pixel.done = true; return;} + let rx = pixel.x + randomcoord.x-7; + let ry = pixel.y + randomcoord.y-7; + playSound("synth.wav") + try { + createPixel("turn_into", rx, ry); + pixelMap[rx][ry].turninto = randomcoord.r; + pixelMap[rx][ry].timer = 8; + } catch (error) { + console.error("Error occurred at coordinates:", rx, ",", ry); + console.error("Error message:", error); + } + } + if(pixelTicks == pixel.start){ + // playSound("nocmusic.mp3") + } + } + } +} +elements.submitted_blueprint_2_creator = { + color: "#64abfd", + behavior: behaviors.WALL, + state: "solid", + category: "special", + tick: function(pixel){ + if(!pixel.done){ + if (pixelTicks % 3 == 0){ + let randomcoord = getRandomPixelCoordinates(pixel, -1, -1, decaybp, {1: "led_r", 2:"porcelain", 3: "glass", 4: "tungsten", 5: "zinc", 6: "aluminum", 7: "copper", 8: "copper", 9: "steel", 10: "bronze", 11: "sterling"}); + if (randomcoord == "terminated"){pixel.done = true; return;} + let rx = pixel.x + randomcoord.x+1; + let ry = pixel.y + randomcoord.y+1; + playSound("synth.wav") + try { + createPixel("turn_into", rx, ry); + pixelMap[rx][ry].turninto = randomcoord.r; + pixelMap[rx][ry].timer = 8; + } catch (error) { + console.error("Error occurred at coordinates:", rx, ",", ry); + console.error("Error message:", error); + } + } + if(pixelTicks == pixel.start){ + // playSound("nocmusic.mp3") + } + } + } +} +elements.custombp_creator = { + color: "#64abfd", + behavior: behaviors.WALL, + state: "solid", + category: "special", + tick: function(pixel){ + if(!pixel.done){ + if (pixelTicks % 3 == 0){ + let randomcoord = getRandomPixelCoordinates(pixel, -1, -1, customBP, customBPKey); + if (randomcoord == "terminated"){pixel.done = true; return;} + let rx = pixel.x + randomcoord.x+1; + let ry = pixel.y + randomcoord.y+1; + playSound("synth.wav") + try { + createPixel("turn_into", rx, ry); + pixelMap[rx][ry].turninto = randomcoord.r; + pixelMap[rx][ry].timer = 8; + } catch (error) { + console.error("Error occurred at coordinates:", rx, ",", ry); + console.error("Error message:", error); + } + } + if(pixelTicks == pixel.start){ + // playSound("nocmusic.mp3") + } + } + } +} +var customBP = [] +var customBPKey = {} +let bpsizeH = 15; +let bpsizeW = 15; +let generatedBP = []; +let seenElements = {}; +elements.bp_generator = { + color: "#64abfd", + behavior: behaviors.SOLID, + state: "solid", + category: "special", + onSelect: function(pixel){ + bpsizeH = prompt("Enter the height of the blueprint", 15); + bpsizeW = prompt("Enter the width of the blueprint", 15); + generatedBP = []; + for (let y = 1; y <= bpsizeH; y++){ + generatedBP.push([]); + } + }, + tick: function(pixel){ + if(pixelTicks == pixel.start){ + let elementCounter = 1; + seenElements = {}; + for (let y = 0; y < bpsizeH; y++){ + for (let x = 1; x <= bpsizeW; x++){ + if (!isEmpty(pixel.x + x, pixel.y + y, true)){ + var opElement = pixelMap[pixel.x + x][pixel.y + y].element; + if (!seenElements[opElement]){ + generatedBP[y].push(elementCounter); + seenElements[opElement] = elementCounter; + elementCounter++; + //console.log(elementCounter) + //console.log(seenElements) + //console.log(opElement) + } else { + generatedBP[y].push(seenElements[opElement]); + } + } else { + generatedBP[y].push(0); + } + } + } + console.log(generatedBP) + console.log(seenElements) + generatedBP.shift(); + deletePixel(pixel.x, pixel.y); + customBP = generatedBP; + customBPKey = reverseObject(seenElements); + } + } +} \ No newline at end of file From 99a3cfc4bce457490c63eb2d339a3665f87a6848 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Sun, 28 Apr 2024 19:30:54 -0400 Subject: [PATCH 11/43] t --- mods/buildingreplicator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/buildingreplicator.js b/mods/buildingreplicator.js index bd05b3f0..d34e3ae3 100644 --- a/mods/buildingreplicator.js +++ b/mods/buildingreplicator.js @@ -132,7 +132,7 @@ elements.submitted_blueprint_2_creator = { } } } -elements.custombp_creator = { +elements.custom_bp_spawner = { color: "#64abfd", behavior: behaviors.WALL, state: "solid", @@ -166,13 +166,13 @@ let bpsizeH = 15; let bpsizeW = 15; let generatedBP = []; let seenElements = {}; -elements.bp_generator = { +elements.bp_scanner = { color: "#64abfd", behavior: behaviors.SOLID, state: "solid", category: "special", onSelect: function(pixel){ - bpsizeH = prompt("Enter the height of the blueprint", 15); + bpsizeH = prompt("Enter the height of the blueprint. It will be scanned from the TOP LEFT corner.", 15); bpsizeW = prompt("Enter the width of the blueprint", 15); generatedBP = []; for (let y = 1; y <= bpsizeH; y++){ From 20cdda7d1df799b51cf923d61c20443089c0fc70 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:59:30 -0400 Subject: [PATCH 12/43] yuh --- mods/buildingreplicator.js | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/mods/buildingreplicator.js b/mods/buildingreplicator.js index d34e3ae3..0d7f29fc 100644 --- a/mods/buildingreplicator.js +++ b/mods/buildingreplicator.js @@ -174,26 +174,23 @@ elements.bp_scanner = { onSelect: function(pixel){ bpsizeH = prompt("Enter the height of the blueprint. It will be scanned from the TOP LEFT corner.", 15); bpsizeW = prompt("Enter the width of the blueprint", 15); - generatedBP = []; - for (let y = 1; y <= bpsizeH; y++){ - generatedBP.push([]); - } }, tick: function(pixel){ if(pixelTicks == pixel.start){ + generatedBP = []; + for (let y = 1; y <= bpsizeH; y++){ + generatedBP.push([]); + } let elementCounter = 1; seenElements = {}; for (let y = 0; y < bpsizeH; y++){ - for (let x = 1; x <= bpsizeW; x++){ - if (!isEmpty(pixel.x + x, pixel.y + y, true)){ - var opElement = pixelMap[pixel.x + x][pixel.y + y].element; + for (let x = 0; x < bpsizeW; x++){ + if (!isEmpty(pixel.x + x + 1, pixel.y + y + 1, true)){ + var opElement = pixelMap[pixel.x + x+1][pixel.y + y+1].element; if (!seenElements[opElement]){ generatedBP[y].push(elementCounter); seenElements[opElement] = elementCounter; elementCounter++; - //console.log(elementCounter) - //console.log(seenElements) - //console.log(opElement) } else { generatedBP[y].push(seenElements[opElement]); } @@ -202,12 +199,12 @@ elements.bp_scanner = { } } } - console.log(generatedBP) - console.log(seenElements) - generatedBP.shift(); + console.log(generatedBP); + console.log(seenElements); deletePixel(pixel.x, pixel.y); customBP = generatedBP; customBPKey = reverseObject(seenElements); } } -} \ No newline at end of file +} + From 53c00e659217b1baab06ba1fe77c1314aaf21f08 Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Tue, 30 Apr 2024 01:04:26 -0400 Subject: [PATCH 13/43] Create potato_chips.js --- mods/potato_chips.js | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 mods/potato_chips.js diff --git a/mods/potato_chips.js b/mods/potato_chips.js new file mode 100644 index 00000000..e0de48f1 --- /dev/null +++ b/mods/potato_chips.js @@ -0,0 +1,44 @@ +elements.potato_chip = { + behavior: behaviors.STURDYPOWDER, + state: "solid", + density: 1350, + color: ["#F7DD93", "#D8A44B"], + category: "food", + desc: "Potato chip. Turns potato next to it into potato chip if temp is >= 104.", + + tick: function(pixel) { + if(pixelTicks - pixel.start >= 15) { + if (!isEmpty(pixel.x, pixel.y - 1, true)) { + if (pixel.temp >= 104 && pixelMap[pixel.x][pixel.y - 1].element === "potato") { + changePixel(pixelMap[pixel.x][pixel.y - 1], "potato_chip"); + } + } + if (!isEmpty(pixel.x, pixel.y + 1, true)) { + if (pixel.temp >= 104 && pixelMap[pixel.x][pixel.y + 1].element === "potato") { + changePixel(pixelMap[pixel.x][pixel.y + 1], "potato_chip"); + } + } + if (!isEmpty(pixel.x - 1, pixel.y, true)) { + if (pixel.temp >= 104 && pixelMap[pixel.x - 1][pixel.y].element === "potato") { + changePixel(pixelMap[pixel.x - 1][pixel.y], "potato_chip"); + } + } + if (!isEmpty(pixel.x + 1,pixel.y, true)) { + if (pixel.temp >= 104 && pixelMap[pixel.x + 1][pixel.y].element === "potato") { + changePixel(pixelMap[pixel.x + 1][pixel.y], "potato_chip"); + } + } + } + } +} + +elements.sunflower_oil = { + behavior: behaviors.LIQUID, + color: ["#FFFFCC", "#FFFF99", "#FFFF66", "#FFFF33", "#FFFF00", "#FFCC00"], + viscosity: 63, + category: "food", + state: "liquid", + reactions: { + "potato": {elem2: "potato_chip", tempMin: 140}, + } +} From f2d2ec023345183dc4c06ac0523cc59dc9dd5a2e Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Tue, 30 Apr 2024 01:06:44 -0400 Subject: [PATCH 14/43] Update mod-list.html --- mod-list.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mod-list.html b/mod-list.html index fed60b74..f454de11 100644 --- a/mod-list.html +++ b/mod-list.html @@ -225,18 +225,19 @@ Food & Cooking aChefsDream.jsAdds more foods, animals, tools and many other cooking related items. Updates can be found in this YouTube PlaylistSquareScreamYT aChefsDream_beta.jsBeta testing for aChefsDream. The code can be found on GitHubSquareScreamYT -bananas.jsAdds bananas and banana plantsAlice +bananas.jsAdds bananas and banana plantsAlice' +CherrySoda.jsAdds materials to make Cherry soda. Benzaldehyde + seltzer = Cherrysoda.guzzo86 community_desserts.jsAdds various desserts from community suggestionsTisquares +GrapeSoda.jsAdds materials to make Grape soda. Methylanthranilate + seltzer = Grapesoda.guzzo86 greenitemsandmore.jsAdds various green things, including apples and more foodzonneschijn7 ketchup_mod.jsAdds a bunch of ketchup related stuff, plus a few other condimentsNubo318 (main dev), Devi, Alice (contributors) lemonade.jsAdds lemons and lemonadepersonman / baconthemyth morefoodsmod.jsAdds more foodsClide4 pizzasstuff.jsNew animals, foods, and plants_ilikepizza_ +potato_chips.jsPotato chips.guzzo86 sbstuff.jsAdds many foodsstefanblox soups.jsAdds seasoning and souppixelegend4 weAllScreamFor.jsAdds ice cream toppingsrottenEgghead -CherrySoda.jsAdds materials to make Cherry soda. Benzaldehyde + seltzer = Cherrysoda.guzzo86 -GrapeSoda.jsAdds materials to make Grape soda. Methylanthranilate + seltzer = Grapesoda.guzzo86 Life & Nature advanced_colonies.jsAdds davlers, creatures with complex coloniesDaviStudios From 63c011b3916932a23b87599c878e48c01c2f0289 Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Tue, 30 Apr 2024 01:08:05 -0400 Subject: [PATCH 15/43] Create potato_chips.js --- mods/potato_chips.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/potato_chips.js b/mods/potato_chips.js index e0de48f1..816ad59b 100644 --- a/mods/potato_chips.js +++ b/mods/potato_chips.js @@ -4,7 +4,7 @@ elements.potato_chip = { density: 1350, color: ["#F7DD93", "#D8A44B"], category: "food", - desc: "Potato chip. Turns potato next to it into potato chip if temp is >= 104.", + desc: "Potato chip. Turns potato next to it into potato chip if temp is >= 104 - 180.", tick: function(pixel) { if(pixelTicks - pixel.start >= 15) { From 4af97a7201f158edaf92c8f5146cf7c2099f39cd Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Tue, 30 Apr 2024 01:14:55 -0400 Subject: [PATCH 16/43] Update CherrySoda.js --- mods/CherrySoda.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/CherrySoda.js b/mods/CherrySoda.js index 98475765..2561b7e7 100644 --- a/mods/CherrySoda.js +++ b/mods/CherrySoda.js @@ -65,7 +65,7 @@ elements.cherrysoda_gas = { temp: 169, } elements.cherrysoda_ice = { - color: "BF4F9C", + color: "#BF4F9C", behavior: behaviors.wALL, category: "solids", state: "solid", From 329b7f61f8de86724869b065dd988394db88fc39 Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:52:44 -0400 Subject: [PATCH 17/43] Update GrapeSoda.js --- mods/GrapeSoda.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/GrapeSoda.js b/mods/GrapeSoda.js index 5716aeac..1d67b1db 100644 --- a/mods/GrapeSoda.js +++ b/mods/GrapeSoda.js @@ -45,7 +45,6 @@ elements.anthranilicacid = { tempLow: -98, burn: 100, burnTime: 100, - burnInto: "carbondioxide" } elements.methanolice = { @@ -68,6 +67,8 @@ elements.anthranilicacid = { stateLow: "methanol", tempLow: 64, temp: 84, + burn: 100, + burnTime: 100, } elements.methylanthranilate = { color: "#FFFBBA", From 403ebbb15cfbdc24ee1092b5f2819f5890458b62 Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Tue, 30 Apr 2024 18:16:36 -0400 Subject: [PATCH 18/43] Create customtemptools.js --- mods/customtemptools.js | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 mods/customtemptools.js diff --git a/mods/customtemptools.js b/mods/customtemptools.js new file mode 100644 index 00000000..00dbcb8f --- /dev/null +++ b/mods/customtemptools.js @@ -0,0 +1,50 @@ +var ct = 100 + +elements.customtemp = { + color: ["#FF0000", "#FF6600", "#FFCC00", "#FFFF00", "#CCFF00", "#66FF00", "#00FF00", "#00FF66", "#00FFCC", "#00FFFF"], + onSelect: function() { + var answer4 = parseInt(prompt("Please input the desired temperature to reach.",(ct||undefined))); + if (!answer4) { return } + ct = answer4; + if (isNaN(answer4)) { + ct = 100 + } + }, + tool: function(pixel) { + pixel.temp = ct, + pixelTempCheck(pixel) + }, + category: "tools", +}; +elements.customheat = { + color: ["#FF0000", "#FFFFFF", "#FF0000"], + onSelect: function() { + var answer4 = parseInt(prompt("Please input the desired temperature increase per tick. (In celsius)",(ct|undefined))); + if (!answer4) { return } + ct = answer4; + if (isNaN(answer4)) { + ct = 100 + } + }, + tool: function(pixel) { + pixel.temp = pixel.temp + ct, + pixelTempCheck(pixel) + }, + category: "tools", +}; +elements.customcool = { + color: ["#0000FF", "#FFFFFF", "#0000FF"], + onSelect: function() { + var answer4 = parseInt(prompt("Please input the desired temperature decrease per tick. (In celsius)",(cc|undefined))); + if (!answer4) { return } + ct = answer4; + if (isNaN(answer4)) { + ct = 100 + } + }, + tool: function(pixel) { + pixel.temp = pixel.temp - ct, + pixelTempCheck(pixel) + }, + category: "tools", +}; From 6b6290401d3ae69dc2f03b4c0dc657f0c20f0b83 Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Tue, 30 Apr 2024 18:18:15 -0400 Subject: [PATCH 19/43] Update mod-list.html --- mod-list.html | 1 + 1 file changed, 1 insertion(+) diff --git a/mod-list.html b/mod-list.html index f454de11..41780ac0 100644 --- a/mod-list.html +++ b/mod-list.html @@ -127,6 +127,7 @@ color_tools.jsAdds tools that manipulate colorsAlice controllable_pixel_test.jsAdds a pixel that can be controlled with the keyboard keys. Read the commit description for more info. [PC ONLY]Alice cpt_alt.jsAdds a more destructive variant of the controllable pixelAlice +customtemptools.jsAdds custom input temp tools.guzzo86 debugRework.jsRevamps the Debug toolFioushemastor delete_all_of_element.jsAdds a tool that deletes every pixel of the element(s) the user clicks onAlice descriptions.jsAdds descriptions to the info page and tooltips of elementsmollthecoder From 5b381748f7724891162a18555236d0840f2b0c97 Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Tue, 30 Apr 2024 18:25:44 -0400 Subject: [PATCH 20/43] Update customtemptools.js --- mods/customtemptools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/customtemptools.js b/mods/customtemptools.js index 00dbcb8f..62c8b239 100644 --- a/mods/customtemptools.js +++ b/mods/customtemptools.js @@ -19,7 +19,7 @@ elements.customtemp = { elements.customheat = { color: ["#FF0000", "#FFFFFF", "#FF0000"], onSelect: function() { - var answer4 = parseInt(prompt("Please input the desired temperature increase per tick. (In celsius)",(ct|undefined))); + var answer4 = parseInt(prompt("Please input the desired temperature increase per tick. (In celsius)",(ct||undefined))); if (!answer4) { return } ct = answer4; if (isNaN(answer4)) { @@ -35,7 +35,7 @@ elements.customheat = { elements.customcool = { color: ["#0000FF", "#FFFFFF", "#0000FF"], onSelect: function() { - var answer4 = parseInt(prompt("Please input the desired temperature decrease per tick. (In celsius)",(cc|undefined))); + var answer4 = parseInt(prompt("Please input the desired temperature decrease per tick. (In celsius)",(ct||undefined))); if (!answer4) { return } ct = answer4; if (isNaN(answer4)) { From 165053097161e67de3d8f10adce0ddeacc4e0bfb Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Tue, 30 Apr 2024 18:28:17 -0400 Subject: [PATCH 21/43] Update potato_chips.js --- mods/potato_chips.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/potato_chips.js b/mods/potato_chips.js index 816ad59b..c1beeb75 100644 --- a/mods/potato_chips.js +++ b/mods/potato_chips.js @@ -7,7 +7,7 @@ elements.potato_chip = { desc: "Potato chip. Turns potato next to it into potato chip if temp is >= 104 - 180.", tick: function(pixel) { - if(pixelTicks - pixel.start >= 15) { + if(pixelTicks - pixel.start >= 10) { if (!isEmpty(pixel.x, pixel.y - 1, true)) { if (pixel.temp >= 104 && pixelMap[pixel.x][pixel.y - 1].element === "potato") { changePixel(pixelMap[pixel.x][pixel.y - 1], "potato_chip"); From bbd9bef7424f640f521615197fd21d7fa5e5c007 Mon Sep 17 00:00:00 2001 From: jakob3797 <167775393+jakob3797@users.noreply.github.com> Date: Wed, 1 May 2024 10:31:03 -0500 Subject: [PATCH 22/43] Create Quicksand_one.js Tested and working --- mods/Quicksand_one.js | 266 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 266 insertions(+) create mode 100644 mods/Quicksand_one.js diff --git a/mods/Quicksand_one.js b/mods/Quicksand_one.js new file mode 100644 index 00000000..ccaa75a5 --- /dev/null +++ b/mods/Quicksand_one.js @@ -0,0 +1,266 @@ + + elements.peat_bog = { + color: "#483C32", + behavior: behaviors.LIQUID, + viscosity: 10000, + tempHigh: 55, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 120, + stain: 0.2 + }; +elements.marsh_muck = { + color: "#6B8E23", + behavior: behaviors.LIQUID, + viscosity: 10000, + tempHigh: 50, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 140, + stain: 0.25 + }; +elements.quagmire = { + color: "#8B4513", + behavior: behaviors.LIQUID, + viscosity: 10000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 160, + stain: 0.3 + }; +elements.slime_mold = { + color: "#00FF00", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 30, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 100, + stain: 0.2 + }; +elements.mangrove_mud = { + color: "#8B4513", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 55, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 150, + stain: 0.25 + }; + peat_slurry = { + color: "#556B2F", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 50, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 130, + stain: 0.28 + }; + elements.bog_ooze = { + color: "#2E8B57", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 100, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 135, + stain: 0.3 + }; + elements.fen_mud = { + color: "#556B2F", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 100, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 155, + stain: 0.28 + }; + elements.swamp_sludge = { + color: "#6B8E23", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 52, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 145, + stain: 0.25 + }; + elements.marsh_slime = { + color: "#00FF00", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 32, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 105, + stain: 0.16 + }; + elements.peat_paste = { + color: "#8B4513", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 57, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 160, + stain: 0.1 + }; + elements.mudflat_mud = { + color: "#8B4513", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 170, + stain: 0.25 + }; + elements.swamp_ooze = { + color: "#556B2F", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 54, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 140, + stain: 0.20 + }; + elements.peat_pudding = { + color: "#8B4513", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 58, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 160, + stain: 0.21 + }; + elements.mudflow = { + color: "#8B4513", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 170, + stain: 0.2 + }; + elements.marsh_mire = { + color: "#6B8E23", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 55, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 150, + stain: 0.12 + }; + elements.peat_paste = { + color: "#556B2F", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 57, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 160, + stain: 0.18 + }; + elements.quicksand_fen = { + color: "#DAA520", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 62, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 155, + stain: 0.15 + }; + elements.marsh_mudslide = { + color: "#8B4513", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 58, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 160, + stain: 0.1 + }; + elements.swamp_slime = { + color: "#00FF00", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 35, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 110, + stain: 0.15 + }; + elements.mire_mud = { + color: "#8B4513", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 170, + stain: 0.17 + }; + elements.peat_quicksand = { + color: "#DAA520", + behavior: behaviors.STICKY, + viscosity: 10000, + tempHigh: 65, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 180, + stain: 0.15 + }; + From 83a5761dad89fa1e690246e5f87c322ca325f574 Mon Sep 17 00:00:00 2001 From: ThatOtherProto <127895014+ThatOtherProto@users.noreply.github.com> Date: Wed, 1 May 2024 20:09:23 +0100 Subject: [PATCH 23/43] Update Science_mod.js Just an update ig --- mods/Science_mod.js | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/mods/Science_mod.js b/mods/Science_mod.js index b0690972..c2ad9e2c 100644 --- a/mods/Science_mod.js +++ b/mods/Science_mod.js @@ -1,6 +1,6 @@ // Science mod for Sandboxels // (Inspired by survival.js) -// Build 20 +// Build 21 // If there is anything you want to suggest or there's a bug then just dm me on discord (@a_british_proto) // Todo: // - Make new substances that you can get after mixing different elements @@ -1376,7 +1376,7 @@ substance.Silver_Oxzide = { substance.Silver_Sulfate = { behavior: behaviors.WALL, color: "FFFFFF", - category: "lands" + category: "lands", state: "solid", hidden:true } @@ -1467,3 +1467,43 @@ substance.Aluminum_Tribromide = { state: "powder", hidden:true } + +substance.Aluminum_Bromide_Hexahydrate = { + behavior: behaviors.WALL, + color: "FFFFFF", + category: "lands", + state: "solid", + hidden:true +} + +substance.Aluminum_Cerium_Oxide = { + behavior: behaviors.WALL, + color: "FF5E00", + category: "lands", + state: "solid", + hidden:true +} + +substance.Aluminum_Chloride = { + behavior: behaviors.WALL, + color: "FFFFFF", + category: "lands", + state: "solid", + hidden:true +} + +substance.Aluminum_Chlorohydrate = { + behavior: behaviors.POWDER, + color: "FFFFFF", + category: "lands", + state: "powder", + hidden:true +} + +substance.Aluminum_Chloride_Hydrate = { + behavior: behaviors.WALL, + color: "FFFFFF", + category: "lands", + state: "solid", + hidden:true +} From 49af22eecff9ef425717fd5066fb8f261e97c403 Mon Sep 17 00:00:00 2001 From: jakob3797 <167775393+jakob3797@users.noreply.github.com> Date: Thu, 2 May 2024 08:20:46 -0500 Subject: [PATCH 24/43] Update Quicksand_one.js Combined tested and working --- Quicksand_one.js | 517 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 517 insertions(+) create mode 100644 Quicksand_one.js diff --git a/Quicksand_one.js b/Quicksand_one.js new file mode 100644 index 00000000..1c1c4ab1 --- /dev/null +++ b/Quicksand_one.js @@ -0,0 +1,517 @@ + +elements.peat_bog = { + color: "#483C32", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 55, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1200, + stain: 0.2 +}; +elements.marsh_muck = { + color: "#6B8E23", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 50, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1000, + stain: 0.25 +}; +elements.quagmire = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1000, + stain: 0.3 +}; +elements.slime_mold = { + color: "#00FF00", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 30, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1000, + stain: 0.2 +}; +elements.mangrove_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 55, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1089, + stain: 0.25 +}; +peat_slurry = { + color: "#556B2F", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 50, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1452, + stain: 0.28 +}; +elements.bog_ooze = { + color: "#2E8B57", + behavior:elements.slime.behavior, + viscosity: 10000, + tempHigh: 100, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1350, + stain: 0.3 +}; +elements.fen_mud = { + color: "#556B2F", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 100, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1550, + stain: 0.28 +}; +elements.swamp_sludge = { + color: "#6B8E23", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 52, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1450, + stain: 0.25 +}; +elements.marsh_slime = { + color: "#00FF00", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 32, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1050, + stain: 0.16 +}; +elements.peat_paste = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 57, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1600, + stain: 0.1 +}; +elements.mudflat_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1700, + stain: 0.25 +}; +elements.swamp_ooze = { + color: "#556B2F", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 54, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1400, + stain: 0.20 +}; +elements.peat_pudding = { + color: "#8B4513", + behavior: elements.sap.behavior, + viscosity: 10000, + tempHigh: 58, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1600, + stain: 0.21 +}; +elements.mudflow = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1700, + stain: 0.2 +}; +elements.marsh_mire = { + color: "#6B8E23", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 55, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1500, + stain: 0.12 +}; +elements.moor = { + color: "#556B2F", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 57, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1600, + stain: 0.18 +}; +elements.quicksand_fen = { + color: "#DAA520", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 62, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1550, + stain: 0.15 +}; +elements.marsh_mudslide = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 58, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1600, + stain: 0.1 +}; +elements.swamp_slime = { + color: "#00FF00", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 35, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1100, + stain: 0.15 +}; +elements.mire_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1700, + stain: 0.17 +}; +elements.peat_quicksand = { + color: "#DAA520", + behavior: elements.slime.behavior, + viscosity: 10000, + tempHigh: 65, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1800, + stain: 0.15 +}; +elements.dense_quicksand = { + color: "#DAA520", + behavior: elements.slime.behavior, + viscosity: 1000, + tempHigh: 65, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1900, + stain: 0.2 +}; +elements.swamp_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 1000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1700, + stain: 0.25 +}; +elements.wet_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 1200, + tempHigh: 55, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1600, + stain: 0.3 +}; +elements.wet_quicksand = { + color: "#DAA520", + behavior: elements.slime.behavior, + viscosity: 700, + tempHigh: 70, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1080, + stain: 0.25 +}; +elements.slimy_mud = { + color: "#008000", + behavior: elements.slime.behavior, + viscosity: 900, + tempHigh: 55, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1550, + stain: 0.3 +}; +elements.sticky_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 1100, + tempHigh: 58, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1321, + stain: 0.25 +}; +elements.sloppy_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 1000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1700, + stain: 0.3 +}; +elements.thick_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 1300, + tempHigh: 50, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1800, + stain: 0.35 +}; +elements.gloopy_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosit: 1950, + tempHigh: 56, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1000, + stain: 0.28 +}; +elements.squelchy_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 1050, + tempHigh: 58, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1050, + stain: 0.3 +}; +elements.mucky_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 950, + tempHigh: 57, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1200, + stain: 0.28 +}; +elements.soggy_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 1050, + tempHigh: 58, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1090, + stain: 0.3 +}; +elements.gunky_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 900, + tempHigh: 55, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1550, + stain: 0.28 +}; +elements.oozy_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 950, + tempHigh: 56, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1000, + stain: 0.3 +}; +elements.gooey_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 1000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1300, + stain: 0.3 +}; +elements.goopy_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 1100, + tempHigh: 58, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1080, + stain: 0.3 +}; +elements.mushy_mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 1000, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1200, + stain: 0.3 +}; +elements.mud = { + color: "#8B4513", + behavior: elements.slime.behavior, + viscosity: 1050, + tempHigh: 58, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1000, + stain: 0.3 +}; +elements.quicksand = { + color: "#DAA520", + behavior: elements.slime.behavior, + viscosity: 1750, + tempHigh: 70, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1300, + stain: 0.25 +}; +elements.sandy_mud = { + color: "#8B4513", + behavior: elements.sap.behavior, + viscosity: 1600, + tempHigh: 60, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1100, + stain: 0.3 +}; +elements.sticky_quicksand = { + color: "#DAA520", + behavior: behaviors.LIQUID, + viscosity: 1700, + tempHigh: 65, + stateHigh: "liquid", + tempLow: 0, + category: "liquids", + state: "liquid", + density: 1100, + stain: 0.25 +}; From 2b4a3b89953bb76ba6629919842b7e0d29102fe3 Mon Sep 17 00:00:00 2001 From: jakob3797 <167775393+jakob3797@users.noreply.github.com> Date: Thu, 2 May 2024 08:31:00 -0500 Subject: [PATCH 25/43] Update Quicksand_one.js --- Quicksand_one.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Quicksand_one.js b/Quicksand_one.js index 1c1c4ab1..01659cc1 100644 --- a/Quicksand_one.js +++ b/Quicksand_one.js @@ -505,7 +505,7 @@ elements.sandy_mud = { }; elements.sticky_quicksand = { color: "#DAA520", - behavior: behaviors.LIQUID, + behavior:elements.sap.behavior, viscosity: 1700, tempHigh: 65, stateHigh: "liquid", From efe36412dce9862360c2b184f752ab0ea500b8f3 Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Thu, 2 May 2024 21:45:40 -0400 Subject: [PATCH 26/43] Update mod-list.html --- mod-list.html | 1 + 1 file changed, 1 insertion(+) diff --git a/mod-list.html b/mod-list.html index 41780ac0..c6a76044 100644 --- a/mod-list.html +++ b/mod-list.html @@ -199,6 +199,7 @@ fine_tuned_cloner.jsAdds a cloner that can spawn at different rates and prevent unwated cloningBatteRaquette58 flipflop.jsToggleable switches; ExplanationFlix gameOfLife.jsConway's Game of Life on a screenggod +fuel_generators.jsAdds diesel and gasoline powered generatorsguzzo86, nousernamefound/td> logicgates.jsAdds predictable electricity and logic gatesnousernamefound note_block.jsAdds musical Note BlocksAlice nousersthings.jsDestroyable machines, pipe variants, filters, and morenousernamefound From 6c89141f7b2d580ee91a79c065b77316fc41bc80 Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Fri, 3 May 2024 07:31:58 -0400 Subject: [PATCH 27/43] Update mod-list.html --- mod-list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod-list.html b/mod-list.html index c6a76044..81b7e719 100644 --- a/mod-list.html +++ b/mod-list.html @@ -199,7 +199,7 @@ fine_tuned_cloner.jsAdds a cloner that can spawn at different rates and prevent unwated cloningBatteRaquette58 flipflop.jsToggleable switches; ExplanationFlix gameOfLife.jsConway's Game of Life on a screenggod -fuel_generators.jsAdds diesel and gasoline powered generatorsguzzo86, nousernamefound/td> +fuel_generators.jsAdds diesel and gasoline powered generatorsguzzo86 logicgates.jsAdds predictable electricity and logic gatesnousernamefound note_block.jsAdds musical Note BlocksAlice nousersthings.jsDestroyable machines, pipe variants, filters, and morenousernamefound From ae5664e47dc1c1988de47be14804b5fc6cb99440 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Fri, 3 May 2024 15:01:20 -0400 Subject: [PATCH 28/43] Delete mods/Quicksand_one.js --- mods/Quicksand_one.js | 266 ------------------------------------------ 1 file changed, 266 deletions(-) delete mode 100644 mods/Quicksand_one.js diff --git a/mods/Quicksand_one.js b/mods/Quicksand_one.js deleted file mode 100644 index ccaa75a5..00000000 --- a/mods/Quicksand_one.js +++ /dev/null @@ -1,266 +0,0 @@ - - elements.peat_bog = { - color: "#483C32", - behavior: behaviors.LIQUID, - viscosity: 10000, - tempHigh: 55, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 120, - stain: 0.2 - }; -elements.marsh_muck = { - color: "#6B8E23", - behavior: behaviors.LIQUID, - viscosity: 10000, - tempHigh: 50, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 140, - stain: 0.25 - }; -elements.quagmire = { - color: "#8B4513", - behavior: behaviors.LIQUID, - viscosity: 10000, - tempHigh: 60, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 160, - stain: 0.3 - }; -elements.slime_mold = { - color: "#00FF00", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 30, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 100, - stain: 0.2 - }; -elements.mangrove_mud = { - color: "#8B4513", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 55, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 150, - stain: 0.25 - }; - peat_slurry = { - color: "#556B2F", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 50, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 130, - stain: 0.28 - }; - elements.bog_ooze = { - color: "#2E8B57", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 100, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 135, - stain: 0.3 - }; - elements.fen_mud = { - color: "#556B2F", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 100, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 155, - stain: 0.28 - }; - elements.swamp_sludge = { - color: "#6B8E23", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 52, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 145, - stain: 0.25 - }; - elements.marsh_slime = { - color: "#00FF00", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 32, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 105, - stain: 0.16 - }; - elements.peat_paste = { - color: "#8B4513", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 57, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 160, - stain: 0.1 - }; - elements.mudflat_mud = { - color: "#8B4513", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 60, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 170, - stain: 0.25 - }; - elements.swamp_ooze = { - color: "#556B2F", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 54, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 140, - stain: 0.20 - }; - elements.peat_pudding = { - color: "#8B4513", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 58, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 160, - stain: 0.21 - }; - elements.mudflow = { - color: "#8B4513", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 60, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 170, - stain: 0.2 - }; - elements.marsh_mire = { - color: "#6B8E23", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 55, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 150, - stain: 0.12 - }; - elements.peat_paste = { - color: "#556B2F", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 57, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 160, - stain: 0.18 - }; - elements.quicksand_fen = { - color: "#DAA520", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 62, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 155, - stain: 0.15 - }; - elements.marsh_mudslide = { - color: "#8B4513", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 58, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 160, - stain: 0.1 - }; - elements.swamp_slime = { - color: "#00FF00", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 35, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 110, - stain: 0.15 - }; - elements.mire_mud = { - color: "#8B4513", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 60, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 170, - stain: 0.17 - }; - elements.peat_quicksand = { - color: "#DAA520", - behavior: behaviors.STICKY, - viscosity: 10000, - tempHigh: 65, - stateHigh: "liquid", - tempLow: 0, - category: "liquids", - state: "liquid", - density: 180, - stain: 0.15 - }; - From 1812374689fb89574e20e57c3a7be27eafcb3373 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Fri, 3 May 2024 15:01:22 -0400 Subject: [PATCH 29/43] moved Quicksand_one.js --- Quicksand_one.js => mods/Quicksand_one.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Quicksand_one.js => mods/Quicksand_one.js (100%) diff --git a/Quicksand_one.js b/mods/Quicksand_one.js similarity index 100% rename from Quicksand_one.js rename to mods/Quicksand_one.js From e9fe9563c5ac184094f1bcb2998a9549fd37c28c Mon Sep 17 00:00:00 2001 From: DoobieRalsei <163950752+DoobieRalsei@users.noreply.github.com> Date: Fri, 3 May 2024 13:22:17 -0700 Subject: [PATCH 30/43] Fixed scp.js bugs Fixed doc body color bug, made 682 and 096 kill zombies. Next update will make 096 more functional. --- mods/scp.js | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/mods/scp.js b/mods/scp.js index bdc51970..a6eb71dc 100644 --- a/mods/scp.js +++ b/mods/scp.js @@ -253,7 +253,6 @@ elements.mask_head = { burnTime: 250, burnInto: "possessive_mask", breakInto: "possessive_mask", - forceSaveColor: true, reactions: { "cancer": { elem1: "possessive_mask", chance:0.05 }, "tea": { elem2:null, chance:0.2 }, @@ -429,6 +428,7 @@ elements.plague_doctor = { createPixel("doc_head", pixel.x, pixel.y-1); pixelMap[pixel.x][pixel.y-1].color = pixel.color; pixel.element = "doc_body"; + pixelMap[pixel.x][pixel.y].color = ["#11111f","#242424"]; } else { deletePixel(pixel.x, pixel.y); @@ -593,7 +593,6 @@ elements.doc_body = { burn: .01, burnTime: 300, burnInto: "rotten_meat", - forceSaveColor: true, reactions: { "head": { elem2 : "z_head" , chance:0.3}, "body": { elem2 : "z_body" , chance:0.3}, @@ -869,9 +868,11 @@ elements.shy_head = { burnTime: 3000, burnInto: "bone", reactions: { - "homunculus": { elem2 : ["blood","slime","blood","slime","rotten_meat",null] }, - "head": { elem2 : ["blood","blood","blood","bone",null] }, - "body": { elem2: ["blood","blood","meat","bone",null] }, + "homunculus": { elem2 : ["blood","slime","blood","slime","rotten_meat",null] }, + "head": { elem2 : ["blood","blood","blood","bone",null] }, + "body": { elem2: ["blood","blood","meat","bone",null] }, + "z_head": { elem2 : ["infection","infection","infection","bone",null] }, + "z_body": { elem2: ["infection","infection","rotten_meat","bone",null] }, "rat": { elem2: ["infection","rotten_meat",null]}, "frog": { elem2: ["slime",null] }, "cell": { elem2: ["dna","water",null] }, @@ -986,10 +987,12 @@ elements.shy_body = { burnInto: "bone", forceSaveColor: true, reactions: { - "homunculus": { elem2 : ["blood","slime","blood","slime","rotten_meat",null] }, - "head": { elem2 : ["blood","blood","blood","meat","bone",null] }, - "body": { elem2: ["blood","blood","meat","bone",null] }, - "rat": { elem2: ["infection","rotten_meat"]}, + "homunculus": { elem2 : ["blood","slime","blood","slime","rotten_meat",null] }, + "head": { elem2 : ["blood","blood","blood","bone",null] }, + "body": { elem2: ["blood","blood","meat","bone",null] }, + "z_head": { elem2 : ["infection","infection","infection","bone",null] }, + "z_body": { elem2: ["infection","infection","rotten_meat","bone",null] }, + "rat": { elem2: ["infection","infection","plague"] }, "frog": { elem2: "slime" }, "cell": { elem2: ["dna","water",null] }, "cancer": { elem2: ["dna","dirty_water"] }, @@ -1007,11 +1010,12 @@ elements.SCP_682 = { category: "scp", density: 7500, reactions: { - "head": { elem2 : ["bone","blood",null] , chance:10 }, - "body": { elem1 : "mad_682" , elem2 : ["meat","blood",null] , chance:10 }, - "z_head": { elem2 : ["bone","infection",null] , chance:10 }, - "z_body": { elem1 : "mad_682" , elem2 : ["rotten_meat","infection",null] , chance:10 }, - "homunculus": { elem2 : ["slime","blood",null] , chance:10 }, + "head": { elem2 : ["bone","blood",null] , chance:50 }, + "body": { elem1 : "mad_682" , elem2 : ["meat","blood",null] , chance:50 }, + "z_head": { elem2 : ["infection","infection","infection","bone",null] , chance:50 }, + "z_body": { elem1 : "mad_682" , elem2: ["infection","infection","rotten_meat","bone",null] , chance:50 }, + "homunculus": { elem2 : ["slime","blood",null] , chance:10 }, + "rat": { elem2: ["infection","infection","plague"] }, "frog": { elem2 : ["slime","blood",null] , chance:10 }, "bird": { elem2 : ["feather","blood",null] , chance:10 }, "meat": { elem2 : null , chance:0.2 }, @@ -1072,6 +1076,8 @@ elements.mad_682 = { reactions: { "head": { elem2 : ["bone","blood",null] }, "body": { elem2 : ["meat","blood",null] }, + "z_head": { elem2 : ["bone","infection",null] }, + "z_body": { elem2 : ["meat","infection",null] }, "homunculus": { elem2 : ["slime","blood",null] }, "frog": { elem2 : ["slime","blood",null] }, "bird": { elem2 : ["feather","blood",null] }, @@ -1223,4 +1229,4 @@ elements.hyper_tickle_monster = { stain: 0.08, }; -// SCPs with ID over 999 here \ No newline at end of file +// SCPs with ID over 999 here From 1f5a8d1c008e5c18df3d9c87972169e998a23f39 Mon Sep 17 00:00:00 2001 From: DoobieRalsei <163950752+DoobieRalsei@users.noreply.github.com> Date: Fri, 3 May 2024 13:56:38 -0700 Subject: [PATCH 31/43] Updates scp.js --- mods/scp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/scp.js b/mods/scp.js index a6eb71dc..4792e6f4 100644 --- a/mods/scp.js +++ b/mods/scp.js @@ -428,7 +428,7 @@ elements.plague_doctor = { createPixel("doc_head", pixel.x, pixel.y-1); pixelMap[pixel.x][pixel.y-1].color = pixel.color; pixel.element = "doc_body"; - pixelMap[pixel.x][pixel.y].color = ["#11111f","#242424"]; + pixel.color = pixelColorPick(pixel) } else { deletePixel(pixel.x, pixel.y); From e5403e8ebcd40a0aa30303ee2345291ed5d5f6d6 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Fri, 3 May 2024 18:01:02 -0400 Subject: [PATCH 32/43] heat fix --- mods/heatglow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/heatglow.js b/mods/heatglow.js index 8c8dabc0..2293bc77 100644 --- a/mods/heatglow.js +++ b/mods/heatglow.js @@ -3,7 +3,7 @@ function weightedAverage(num1, num2, weight){ } const heatfunc = function(pixel){ if (pixel.element != "metal_scrap" || eLists.metals.includes(pixel.scrapType) || !pixel.scrapType){{ - if (pixel.ogR == null || pixel.ogG == null || pixel.ogB == null || (pixel.element != pixel.ogElement && pixel.element == "metal_scrap") || (pixel.element != "metal_scrap" && pixel.ogElement == "metal_scrap")){ + if (pixel.ogR == null || pixel.ogG == null || pixel.ogB == null || (pixel.element != pixel.ogElement && pixel.element == "metal_scrap") || (pixel.element != "metal_scrap" && pixel.ogElement == "metal_scrap") || (pixel.element == "oxidized_copper" && pixel.ogElement == "copper")){ pixel.ogR = parseInt(pixel.color.slice(4, pixel.color.indexOf(',')), 10) pixel.ogG = parseInt(pixel.color.slice(pixel.color.indexOf(',') + 1, pixel.color.lastIndexOf(',')), 10) pixel.ogB = parseInt(pixel.color.slice(pixel.color.lastIndexOf(',') + 1, -1), 10) From f4b3b5d26cfb4ca450b5760607bea04d58e8a1d8 Mon Sep 17 00:00:00 2001 From: CarbonMonoxida <164758530+CarbonMonoxida@users.noreply.github.com> Date: Sat, 4 May 2024 19:26:37 +0700 Subject: [PATCH 33/43] Update mod-list.html change aScientistsWish main Programmer from CPU into Sobble --- mod-list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod-list.html b/mod-list.html index fed60b74..93a4b128 100644 --- a/mod-list.html +++ b/mod-list.html @@ -156,7 +156,7 @@ Science & Chemistry alcohol.jsAdds methanol, (iso-)propanol, and butanolAlice alkahest.jsAdds the alkahest, a liquid which dissolves anythingAlice -aScientistsWish.jsAdds things that related to science, especially radiationCarbon Monoxide, CPU +aScientistsWish.jsAdds things that related to science, especially radiationCarbon Monoxide, Sobble bettermetalscrap.jsAllows metal scrap to be melted back into its original materialnousernamefound bigger_star_spawners.jsAdds spawners for larger starsAlice bioooze_and_pyrogens.jsAdds Bio-Ooze from Frackin’ Universe and several heat-producing materials from various games’ modsAlice From b382f4b237f398f2d057427a325fd03fb77bf803 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Sat, 4 May 2024 17:58:57 -0400 Subject: [PATCH 34/43] hotfix --- index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 3f8dcae8..61314622 100644 --- a/index.html +++ b/index.html @@ -16244,7 +16244,7 @@ Cancer, Landmine, Grenade, Smoke Grenade">? Infinite Chef

-

Email us at contact@R74n.com for advertising, help, or education!

+

Email us at contact@R74n.com for advertising, help, or education!

Be notified when Sandboxels and other R74n projects are updated, along with ramblings from the developer!

@@ -16259,10 +16259,10 @@ Cancer, Landmine, Grenade, Smoke Grenade">? + --> +

Support development by subscribing on our Patreon! Many benefits!!

@@ -16285,7 +16285,7 @@ Cancer, Landmine, Grenade, Smoke Grenade">? applications in education. With a hands-on experience, it can give students an understanding of emerging phenomena in many fields, such as biology, chemistry, ecology, geology, cooking, and even virology. There are countless aspects to discover.

We have a thriving community on Discord! There you can post feedback or share your creations.

-

Business inquiries? Education stories? Help needed? Email us at contact@R74n.com!

+

Business inquiries? Education stories? Help needed? Email us at contact@R74n.com!

More links: HelpTipsModsMobileOfflinePrivacy

Thanks to: Serioustar, ggod, Midi_png, personman, fnl4y, PitsPower, swagg boi, kaeud, WeiChei, Trent, u2ce

From b38b85ead8fcdd1e3b12e1506d9cae0a61293494 Mon Sep 17 00:00:00 2001 From: ludus530 <163735402+ludus530@users.noreply.github.com> Date: Sun, 5 May 2024 09:35:22 +0200 Subject: [PATCH 35/43] cash_n_more.js adds cash and paper --- mods/cash_n_more.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 mods/cash_n_more.js diff --git a/mods/cash_n_more.js b/mods/cash_n_more.js new file mode 100644 index 00000000..ffe5dd21 --- /dev/null +++ b/mods/cash_n_more.js @@ -0,0 +1,37 @@ +elements.cash = { + color: "#00e600", + behavior: behaviors.POWDER, + category: "powders", +}; + +elements.paper = { + color: "#ffffff", + behavior: behaviors.SOLID, + category: "solids", +}; + +elements.shredded_paper = { + color: "#ffffff", + behavior: behaviors.POWDER, + category: "powders", +}; + +elements.shredded_cash = { + color: "#004d00", + behavior: behaviors.POWDER, + category: "powders", +}; + +elements.shredder = { + color: "#08b508", + behavior: behaviors.SOLID, + tool: function(pixel) { + if (pixel.element == "cash") { + pixel.element = "shredded_cash" + }, + if (pixel.element == "paper") { + pixel.element = "shredded_money" + } + }, + category: "tools", +}; From a3adf44dbe36fb6b4e3a1b744f5f5407d27a776d Mon Sep 17 00:00:00 2001 From: ludus530 <163735402+ludus530@users.noreply.github.com> Date: Sun, 5 May 2024 12:57:30 +0200 Subject: [PATCH 36/43] cash_n_more.js added sponges --- mods/cash_n_more.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/mods/cash_n_more.js b/mods/cash_n_more.js index ffe5dd21..e267a8f7 100644 --- a/mods/cash_n_more.js +++ b/mods/cash_n_more.js @@ -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, From 25477dd8618d2823939899707f1cf54144a86be0 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Sun, 5 May 2024 15:49:10 -0400 Subject: [PATCH 37/43] texturepack.js --- mods/10kelements.js | 8 ++++ mods/texturepack.js | 94 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 mods/texturepack.js diff --git a/mods/10kelements.js b/mods/10kelements.js index 957d4088..711a4ea6 100644 --- a/mods/10kelements.js +++ b/mods/10kelements.js @@ -74,6 +74,14 @@ if (Math.abs(settings.randomcount) == settings.randomcount){ }else(elements["element_"+i].desc += (" or " + reaction)) } } + for (var reaction in elements["element_" + i].reactions){ + if (elements[elements["element_"+i].reactions[reaction].elem1].category == "tools" || elements[elements["element_"+i].reactions[reaction].elem2].category == "tools"){ + console.log(i + " makes a tool...? when it touches " + reaction) + if (!elements["element_"+i].desc){ + elements["element_" + i].desc = "This breaks the laws of physics if it touches " + reaction + }else(elements["element_"+i].desc += (" or " + reaction)) + } + } } } else { for (var i = 1; i <= settings.randomcount; i++){ diff --git a/mods/texturepack.js b/mods/texturepack.js new file mode 100644 index 00000000..fdb9de06 --- /dev/null +++ b/mods/texturepack.js @@ -0,0 +1,94 @@ +if (!settings.texturepack){ + settings.texturepack = {} + saveSettings() +} +elements.clear_textures = { + color: "#dd0000", + onSelect: function(){ + var sure = prompt("Are you sure you wanna reset all texture data? Type \"yes\". Also, refresh once you've done this for the changes to apply!", "no"); + if (sure == "yes"){ + settings.texturepack = {} + saveSettings() + } + }, + canPlace: false, + category: "texture tools" +} +var addSave = null +elements.add_texture = { + color: elements.rainbow.color, + category: "texture tools", + canPlace: false, + onSelect: function(){ + var whoelement = prompt("What element would you like to change the texture of? Type no if this was a mistake.", (addSave||"no")) + if (whoelement != "no"){ + addSave = whoelement + var replacehm = prompt("Would you like to overwrite all textures or add? 1 for overwrite, 2 for add.", 2) + var colortodo = prompt("Hex code, please! Also, refresh once you've done this for the changes to apply!", "#ff0000") + if (replacehm == 1){ + if (!replacehm || !colortodo){return} + if (!settings.texturepack[whoelement]){settings.texturepack[whoelement] = []} + settings.texturepack[whoelement] = [colortodo] + elements[whoelement].color = settings.texturepack[whoelement] + saveSettings() + } else { + if (!replacehm || !colortodo){return} + if (!settings.texturepack[whoelement]){settings.texturepack[whoelement] = []} + settings.texturepack[whoelement].push(colortodo) + elements[whoelement].color = settings.texturepack[whoelement] + saveSettings() + } + } + } +} +elements.remove_a_texture = { + color: elements.void.color, + category: "texture tools", + canPlace: false, + onSelect: function(){ + var whoelement = prompt("What element would you like to change the texture of? Type no if this was a mistake.", "no") + if (whoelement != "no"){ + var replacehm = prompt("Would you like to delete all textures of the element or just one? Type 1 for all, 2 for just one.", 2) + var colortodo = prompt(("Ignore this if you chose 1. Index of the color you wanna delete. For reference, here are the current colors:" + settings.texturepack[whoelement]), 0) + if (replacehm == 1){ + delete settings.texturepack[whoelement] + saveSettings() + } else { + delete settings.texturepack[whoelement][colortodo] + elements[whoelement].color = settings.texturepack[whoelement] + saveSettings() + } + } + } +} +elements.list_all_textures = { + color: elements.mix.color, + category: "texture tools", + canPlace: false, + onSelect: function(){ + var whoelement = prompt("What element would you like to see the textures of?") + alert(whoelement + " has the following textures: " + settings.texturepack[whoelement]) + } +} +elements.texture_pack_share_or_load = { + color: elements.image.color, + category: "texture tools", + canPlace: false, + onSelect: function(){ + var whichSL = prompt("Would you like to copy the texture pack to your clipboard or load it from your clipboard? Type 1 for copy, 2 for load.", 1) + if (whichSL == 1){ + var text = JSON.stringify(settings.texturepack) + alert(text) + } else { + var text = prompt("Paste your texture pack here. It should be in the format of a JSON object.") + if (text){ + settings.texturepack = JSON.parse(text) + saveSettings() + } + } + } +} +if (settings.texturepack){ +for (var elementi in settings.texturepack){ + elements[elementi].color = settings.texturepack[elementi] +}} \ No newline at end of file From e3709bfc09c439423dfd2a823084a76fdaf450a3 Mon Sep 17 00:00:00 2001 From: GGod <46885632+GGodPL@users.noreply.github.com> Date: Sun, 5 May 2024 22:05:28 +0200 Subject: [PATCH 38/43] Create colorLED.js --- mods/colorLED.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 mods/colorLED.js diff --git a/mods/colorLED.js b/mods/colorLED.js new file mode 100644 index 00000000..ec3a4622 --- /dev/null +++ b/mods/colorLED.js @@ -0,0 +1,38 @@ +elements.led = { + behavior: behaviors.WALL, + reactions: { + "light": {"charge1":1}, + "liquid_light": {"charge1":1}, + }, + color: "#666666", + colorOn: "#ffffff", + category: "machines", + tempHigh: 1500, + stateHigh: ["molten_glass","molten_glass","molten_glass","molten_gallium"], + conduct: 1, + breakInto: "glass_shard", + tick: (pixel) => { + if (pixel.start == pixelTicks) { + pixel.normalColor = pixel.color; + pixel.chargeColor = `rgb(${pixel.color.replace(/[rgb\(\)]/g, "").split(",").map(a => parseInt(a.trim()) + 120).join(", ")})`; + } + if (pixel.color != pixel.normalColor && !pixel.charge && !pixel.chargeCD) { + pixel.normalColor = pixel.color; + pixel.chargeColor = `rgb(${pixel.color.replace(/[rgb\(\)]/g, "").split(",").map(a => parseInt(a.trim()) + 120).join(", ")})`; + } + if (pixel.charge) { + pixel.color = pixel.chargeColor; + } else { + pixel.color = pixel.normalColor; + } + } +} + +pixelColorPick = (function() { + const oldPixelColorPick = pixelColorPick; + + return function(pixel, customColor = null) { + if (pixel.element == "led" && pixel.color && !customColor) return pixel.color; + return oldPixelColorPick.apply(this, arguments); + } +})() \ No newline at end of file From c7dd5f6f89147024bd4d043caf494acca22e7ad6 Mon Sep 17 00:00:00 2001 From: JustAGenericUsername <92590792+JustAGenericUsername@users.noreply.github.com> Date: Sun, 5 May 2024 16:07:17 -0400 Subject: [PATCH 39/43] f --- mod-list.html | 1 + 1 file changed, 1 insertion(+) diff --git a/mod-list.html b/mod-list.html index fed60b74..83e5553f 100644 --- a/mod-list.html +++ b/mod-list.html @@ -151,6 +151,7 @@ save_loading.jsAdds the ability to save and load scenes from files (See the info page of the element)Alice selective_paint.jsAdds a tool to paint only selected elementsSquareScreamYT stripe_paint.jsAdds a tool to paint with stripesAlice +texturepack.jsAdds tools that let you create and share custom texture packsnousernamefound the_ground.jsAdds several rock types, worldgen settings, and gemstonesAlice Science & Chemistry From 10f3ba326b2499005b23bbe5326396319daccf9c Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Sun, 5 May 2024 19:31:58 -0400 Subject: [PATCH 40/43] Create colored_lightbulbs.js --- mods/colored_lightbulbs.js | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 mods/colored_lightbulbs.js diff --git a/mods/colored_lightbulbs.js b/mods/colored_lightbulbs.js new file mode 100644 index 00000000..84f8ad85 --- /dev/null +++ b/mods/colored_lightbulbs.js @@ -0,0 +1,44 @@ +elements.colored_light_bulb = { + color: "#666666", + colorOn: "#ffffff", + behavior: behaviors.WALL, + category: "machines", + tempHigh: 1500, + stateHigh: ["molten_glass","molten_glass","molten_copper"], + conduct: 1, + breakInto: "glass_shard", + tick: function(pixel) { + if (pixel.start == pixelTicks) { + pixel.normalColor = pixel.color; + pixel.chargeColor = `rgb(${pixel.color.replace(/[rgb\(\)]/g, "").split(",").map(a => parseInt(a.trim()) + 150).join(", ")})`; + } + if (pixel.color != pixel.normalColor && !pixel.charge && !pixel.chargeCD) { + pixel.normalColor = pixel.color; + pixel.chargeColor = `rgb(${pixel.color.replace(/[rgb\(\)]/g, "").split(",").map(a => parseInt(a.trim()) + 150).join(", ")})`; + } + if (pixel.charge) { + pixel.color = pixel.chargeColor; + } else { + pixel.color = pixel.normalColor; + } + if (pixel.charge > 0) { + for (let i = 0; i < adjacentCoords.length; i++){ + let coord = adjacentCoords[i] + let x = coord[0]+pixel.x + let y = coord[1]+pixel.y + if (isEmpty(x, y)){ + //do crap to the pixel + createPixel("light", x, y,), + pixelMap[x][y].color = pixel.chargeColor + } + } + }} +} +pixelColorPick = (function() { + const oldPixelColorPick = pixelColorPick; + + return function(pixel, customColor = null) { + if (pixel.element == "colored_light_bulb" && pixel.color && !customColor) return pixel.color; + return oldPixelColorPick.apply(this, arguments); + } +})() From ac25c2051d4dfac3641459fb1732d67e259c4a75 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Sun, 5 May 2024 19:33:22 -0400 Subject: [PATCH 41/43] fixed inconsistency --- mod-list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod-list.html b/mod-list.html index 93a4b128..a06fed4d 100644 --- a/mod-list.html +++ b/mod-list.html @@ -156,7 +156,7 @@ Science & Chemistry alcohol.jsAdds methanol, (iso-)propanol, and butanolAlice alkahest.jsAdds the alkahest, a liquid which dissolves anythingAlice -aScientistsWish.jsAdds things that related to science, especially radiationCarbon Monoxide, Sobble +aScientistsWish.jsAdds things that related to science, especially radiationCarbon Monoxide, salmonfishy bettermetalscrap.jsAllows metal scrap to be melted back into its original materialnousernamefound bigger_star_spawners.jsAdds spawners for larger starsAlice bioooze_and_pyrogens.jsAdds Bio-Ooze from Frackin’ Universe and several heat-producing materials from various games’ modsAlice From d6796c7ea6d1562d4228b40c14869221ae533bcd Mon Sep 17 00:00:00 2001 From: guzzo86 <126430018+guzzo86@users.noreply.github.com> Date: Sun, 5 May 2024 19:33:38 -0400 Subject: [PATCH 42/43] Update mod-list.html --- mod-list.html | 1 + 1 file changed, 1 insertion(+) diff --git a/mod-list.html b/mod-list.html index 81b7e719..e273ce68 100644 --- a/mod-list.html +++ b/mod-list.html @@ -203,6 +203,7 @@ logicgates.jsAdds predictable electricity and logic gatesnousernamefound note_block.jsAdds musical Note BlocksAlice nousersthings.jsDestroyable machines, pipe variants, filters, and morenousernamefound +colored_lightbulbs.jsAdds a light bulb that can be painted.guzzo86, ggod portal.jsAdds portals that can teleport pixelsAlice pullers.jsAdds pixels that pull pixels towards themvoidapex11 pushers.jsAdds pixels that push elements away from themAlice From 32f8ac5d896bc4722248f212df5810123d943d1d Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Sun, 5 May 2024 19:39:20 -0400 Subject: [PATCH 43/43] Update mod-list.html --- mod-list.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/mod-list.html b/mod-list.html index 07d08604..fe276e5f 100644 --- a/mod-list.html +++ b/mod-list.html @@ -127,7 +127,6 @@ color_tools.jsAdds tools that manipulate colorsAlice controllable_pixel_test.jsAdds a pixel that can be controlled with the keyboard keys. Read the commit description for more info. [PC ONLY]Alice cpt_alt.jsAdds a more destructive variant of the controllable pixelAlice -customtemptools.jsAdds custom input temp tools.guzzo86 debugRework.jsRevamps the Debug toolFioushemastor delete_all_of_element.jsAdds a tool that deletes every pixel of the element(s) the user clicks onAlice descriptions.jsAdds descriptions to the info page and tooltips of elementsmollthecoder @@ -199,11 +198,9 @@ fine_tuned_cloner.jsAdds a cloner that can spawn at different rates and prevent unwated cloningBatteRaquette58 flipflop.jsToggleable switches; ExplanationFlix gameOfLife.jsConway's Game of Life on a screenggod -fuel_generators.jsAdds diesel and gasoline powered generatorsguzzo86 logicgates.jsAdds predictable electricity and logic gatesnousernamefound note_block.jsAdds musical Note BlocksAlice nousersthings.jsDestroyable machines, pipe variants, filters, and morenousernamefound -colored_lightbulbs.jsAdds a light bulb that can be painted.guzzo86, ggod portal.jsAdds portals that can teleport pixelsAlice pullers.jsAdds pixels that pull pixels towards themvoidapex11 pushers.jsAdds pixels that push elements away from themAlice @@ -231,7 +228,6 @@ bananas.jsAdds bananas and banana plantsAlice' CherrySoda.jsAdds materials to make Cherry soda. Benzaldehyde + seltzer = Cherrysoda.guzzo86 community_desserts.jsAdds various desserts from community suggestionsTisquares -GrapeSoda.jsAdds materials to make Grape soda. Methylanthranilate + seltzer = Grapesoda.guzzo86 greenitemsandmore.jsAdds various green things, including apples and more foodzonneschijn7 ketchup_mod.jsAdds a bunch of ketchup related stuff, plus a few other condimentsNubo318 (main dev), Devi, Alice (contributors) lemonade.jsAdds lemons and lemonadepersonman / baconthemyth