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 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