From 64f9ce71f111e68f577c8c91a2e492c99df8273e Mon Sep 17 00:00:00 2001 From: Suss <167750109+therealsuss@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:20:02 +1100 Subject: [PATCH 1/2] yeah woohooo another mod --- mods/elementreplacer.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 mods/elementreplacer.js diff --git a/mods/elementreplacer.js b/mods/elementreplacer.js new file mode 100644 index 00000000..cf0572d1 --- /dev/null +++ b/mods/elementreplacer.js @@ -0,0 +1,12 @@ +elements.element_replacer = { + color: ["#ff007a", "#4625e3"], + onSelect: function(){ + var answerreplace = prompt("Element to replace clicked elements with:"); + if (!answerreplace) {return} + replacingelement = mostSimilarElement(answerreplace); + }, + tool: function(pixel) { + pixel.element = replacingelement + }, + category: "tools", +}; \ No newline at end of file From adb23659098bfe3e59c3e9f6ba80d3dde0cb70f6 Mon Sep 17 00:00:00 2001 From: Suss <167750109+therealsuss@users.noreply.github.com> Date: Mon, 13 Jan 2025 12:25:11 +1100 Subject: [PATCH 2/2] okay the new mod is on the mod list too --- mod-list.html | 1 + 1 file changed, 1 insertion(+) diff --git a/mod-list.html b/mod-list.html index 5ce2fc1e..350a4ce8 100644 --- a/mod-list.html +++ b/mod-list.html @@ -152,6 +152,7 @@ descriptions.jsAdds descriptions to the info page and tooltips of elementsmollthecoder editTools.jsSelections, Copying, Pasting, Cutting, Shapes, and more!ggod elementEraser.jsAdds a tool that deletes only desired elementSquareScreamYT +elementreplacer.jsAdds a tool that replaces elements with other elements while keeping their colorSuss elementsManager.jsCreate and edit custom elementsggod evenmoretemptools.jsAdds different temperature-modifying tools (±350/tick, NaN, and Infinity)Alice extra_element_info.jsAdds descriptions to various vanilla elements. Used to provide the functionality that desc now does before it was added to vanillaMelecie