yeah woohooo another mod

This commit is contained in:
Suss 2025-01-13 12:20:02 +11:00 committed by GitHub
parent 109318413a
commit 64f9ce71f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

12
mods/elementreplacer.js Normal file
View File

@ -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",
};