From 3d20a79d0e72837ac54d47ec89af8996bd9bdd51 Mon Sep 17 00:00:00 2001 From: Suss <167750109+therealsuss@users.noreply.github.com> Date: Mon, 28 Apr 2025 11:42:47 +1000 Subject: [PATCH 1/3] sand without the boxels why did i make this --- mods/sand.js | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 mods/sand.js diff --git a/mods/sand.js b/mods/sand.js new file mode 100644 index 00000000..66fc5002 --- /dev/null +++ b/mods/sand.js @@ -0,0 +1,33 @@ +//remove all except sand +runAfterLoad(function() { + for (var elem in elements) { + if (elem !== "sand") { + delete elements[elem]; + } + } +}); + +runAfterLoad(function() { + // replace the text sandboxels + document.body.innerHTML = document.body.innerHTML.replace(/(?!]*>)(sandboxels)(?![^<]*<\/a>)/gi, "Sand"); + + // silly link stuff so it doesn't go to the wrong page + var links = document.querySelectorAll('a'); + links.forEach(function(link) { + var originalHref = link.href; + if (originalHref.includes("sand") && !originalHref.includes("sandboxels")) { + var newHref = originalHref.replace(/sand/gi, "sandboxels"); + link.href = newHref; // update link + } + }); + + // replace the other stuff + document.body.innerHTML = document.body.innerHTML + .replace(/over 500 unique elements/gi, "1 whole element") + .replace(/There are thousands of interactions between the many materials, plants, animals, fluids, and powders in the game\./gi, "There are no interactions in the game except collision.") + .replace(/a category,\s*like\s*Liquids<\/strong>,\s*then\s*pick\s*an\s*element,\s*like\s*Water<\/strong>\./gi, "sand.") + .replace(/biology, chemistry, ecology, geology, cooking, and even virology. There are countless aspects to discover\./gi, "sand."); +}); +// no categories because why would we need that for one pixel type +elements.sand.category = "tools"; +// honestly i should've just not made it replace the text but wheres the fun in that \ No newline at end of file From bd92258955f9d191040c1f2e30395e4202dfc0b5 Mon Sep 17 00:00:00 2001 From: Suss <167750109+therealsuss@users.noreply.github.com> Date: Sat, 17 May 2025 17:04:45 +1000 Subject: [PATCH 2/3] those pixel variants that are for a limited time but they're mods i gues yeah --- mods/CandyCanes.js | 15 +++++++++++++++ mods/CandyCorn.js | 8 ++++++++ mods/EasterEggs.js | 1 + 3 files changed, 24 insertions(+) create mode 100644 mods/CandyCanes.js create mode 100644 mods/CandyCorn.js create mode 100644 mods/EasterEggs.js diff --git a/mods/CandyCanes.js b/mods/CandyCanes.js new file mode 100644 index 00000000..0fd982f3 --- /dev/null +++ b/mods/CandyCanes.js @@ -0,0 +1,15 @@ +elements.candy.colorPattern = [ + "WWRRRWWRRR", + "WWRRWWWRRW", + "WRRRWWRRRW", + "WRRWWWRRWW", + "RRRWWRRRWW", + "RRWWWRRWWW", + "RRWWRRRWWR", + "RWWWRRWWWR", + "RWWRRRWWRR", + "WWWRRWWWRR", + ] + elements.candy.colorKey = {"R":"#c92626", "W":"#e3e3e3"} + elements.candy.color = ["#c92626","#e3e3e3","#c92626","#e3e3e3","#c92626"] + elements.candy.breakIntoColor = ["#c92626","#e3e3e3"] \ No newline at end of file diff --git a/mods/CandyCorn.js b/mods/CandyCorn.js new file mode 100644 index 00000000..93ca5ce9 --- /dev/null +++ b/mods/CandyCorn.js @@ -0,0 +1,8 @@ +elements.candy.colorPattern = [ + "W","W","W","W","W", + "O","O","O","O","O", + "Y","Y","Y","Y","Y", + ] + elements.candy.colorKey = {"W":"#ffffff", "Y":"#ffcd55", "O":"#ff9933"} + elements.candy.color = ["#ffffff","#ffffff","#ff9933","#ff9933","#ffcd55","#ffcd55"] + elements.candy.breakIntoColor = ["#ffffff","#ffcd55","#ff9933"] \ No newline at end of file diff --git a/mods/EasterEggs.js b/mods/EasterEggs.js new file mode 100644 index 00000000..5ec3707f --- /dev/null +++ b/mods/EasterEggs.js @@ -0,0 +1 @@ +elements.egg.color = elements.bead.color \ No newline at end of file From 3a4788c31cf6f3f6ba8377c3167422be30d2e760 Mon Sep 17 00:00:00 2001 From: Suss <167750109+therealsuss@users.noreply.github.com> Date: Sat, 17 May 2025 17:07:08 +1000 Subject: [PATCH 3/3] begone --- mods/sand.js | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 mods/sand.js diff --git a/mods/sand.js b/mods/sand.js deleted file mode 100644 index 66fc5002..00000000 --- a/mods/sand.js +++ /dev/null @@ -1,33 +0,0 @@ -//remove all except sand -runAfterLoad(function() { - for (var elem in elements) { - if (elem !== "sand") { - delete elements[elem]; - } - } -}); - -runAfterLoad(function() { - // replace the text sandboxels - document.body.innerHTML = document.body.innerHTML.replace(/(?!]*>)(sandboxels)(?![^<]*<\/a>)/gi, "Sand"); - - // silly link stuff so it doesn't go to the wrong page - var links = document.querySelectorAll('a'); - links.forEach(function(link) { - var originalHref = link.href; - if (originalHref.includes("sand") && !originalHref.includes("sandboxels")) { - var newHref = originalHref.replace(/sand/gi, "sandboxels"); - link.href = newHref; // update link - } - }); - - // replace the other stuff - document.body.innerHTML = document.body.innerHTML - .replace(/over 500 unique elements/gi, "1 whole element") - .replace(/There are thousands of interactions between the many materials, plants, animals, fluids, and powders in the game\./gi, "There are no interactions in the game except collision.") - .replace(/a category,\s*like\s*Liquids<\/strong>,\s*then\s*pick\s*an\s*element,\s*like\s*Water<\/strong>\./gi, "sand.") - .replace(/biology, chemistry, ecology, geology, cooking, and even virology. There are countless aspects to discover\./gi, "sand."); -}); -// no categories because why would we need that for one pixel type -elements.sand.category = "tools"; -// honestly i should've just not made it replace the text but wheres the fun in that \ No newline at end of file