From d0c51e4b95d340ffd5d63667fe916108c09533d2 Mon Sep 17 00:00:00 2001 From: SquareScreamYT <134925668+SquareScreamYT@users.noreply.github.com> Date: Sat, 30 Mar 2024 13:36:58 +0800 Subject: [PATCH 1/7] Update mod-list.html --- mod-list.html | 1 + 1 file changed, 1 insertion(+) diff --git a/mod-list.html b/mod-list.html index 8facd81c..24b65442 100644 --- a/mod-list.html +++ b/mod-list.html @@ -249,6 +249,7 @@ nocancer.jsRemoves cancer from the game one tick after it is createdmollthecoder nocancer2.jsRemoves cancer from the game altogether. May be incompatible with other mods that spawn cancermollthecoder nograssgrow.jsPrevents Grass from growingmollthecoder +ocean.jsAdds many Marine lifeSquareScreamYT pizzasstuff.jsNew animals, foods, and plants_ilikepizza_ plants.jsAdds a wide variety of new plants and fruitsAdora primordial_birthpool.jsA cross between Primordial Soup and Birthpool. Requires F&MAlice From 1a6051c3df8f9a09b1d8cb7ae6810d292433fde7 Mon Sep 17 00:00:00 2001 From: SquareScreamYT <134925668+SquareScreamYT@users.noreply.github.com> Date: Sat, 30 Mar 2024 13:37:18 +0800 Subject: [PATCH 2/7] Update ocean.js --- mods/ocean.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ocean.js b/mods/ocean.js index 70e5e5ed..762e6321 100644 --- a/mods/ocean.js +++ b/mods/ocean.js @@ -1,3 +1,5 @@ +// made by sqec + elements.coral_stem = { color: "#4a5e49", behavior: [ From 9c3b18c960fb2825b55440fd203d8e12e1b0c4bf Mon Sep 17 00:00:00 2001 From: SquareScreamYT <134925668+SquareScreamYT@users.noreply.github.com> Date: Sat, 30 Mar 2024 18:47:06 +0800 Subject: [PATCH 3/7] Create fools+.js --- mods/fools+.js | 286 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 286 insertions(+) create mode 100644 mods/fools+.js diff --git a/mods/fools+.js b/mods/fools+.js new file mode 100644 index 00000000..0eed2199 --- /dev/null +++ b/mods/fools+.js @@ -0,0 +1,286 @@ +// all the credits go to R74n +// made worse by sqec +// i'm sorry, here's some poorly made ascii art bleach for your eyes +// tbh most of it was copied from index.html or fools.js +// moss inspired +/* +_____ +| | +|--------. +| \ +| |\ \ +| | \ \ +| \ \ \ +| \_| . +| | +| BLEACH | +| 12floz | +| | +|_____________| +*/ + +behaviors.CRASH = [ + "XX|XX|XX", + "XX|EX:100000>flash|XX", + "XX|XX|XX", +] + +fonts = ["Webdings","Comic Sans MS","Times New Roman","Monospace","Wingdings","Courier New", + "Papyrus","Impact","Curlz MT","Jokerman","Segoe Script","Bradley Hand ITC"] +funnysavenames = ["identity theft","the saveinator","Save 95","nuclear reactor","stomach man", + "calculator","potato chip","bread bowl","more gun","error 704 save not found","fortnite dance", + "foghorn","Unknown","mixup save","balls 🏀","sbave","the moss field","uhhhh", + "Grumman f-14 tomcat fighter jet","mcdonnell douglas f-15 eagle fighter jet", + "untextured unrigged blender brick","rebar","the giant enemy spider", + "statue of ryan","🟩","🟥","the temple of ryan","🌳 🌳 🌳","R74n ripoff", + "the powder toy","tpt save","save from tpt","sand:box save","sandspiel save", + "cool plane","big mac with uranium"] + +allproperties = {} + +skipproperties = ["color", "colorOn", "forceAutoGen", "name", "category", "colorObject", "hidden", "tempHigh", "tempLow", "stateHigh", "stateLow"] +goodproperties = ["behavior","tick"] +elements.molten_rad_glass.color = "#ffffff" + +for (element in elements) { + var elementdata = elements[element] + if (elementdata.category === "tools") { continue } + for (property in elementdata) { + //if (skipproperties.indexOf(property) !== -1) { continue } + // only use properties that are in goodproperties + if (goodproperties.indexOf(property) === -1) { continue } + if (!allproperties[property]) { + allproperties[property] = [] + } + allproperties[property].push(elementdata[property]) + } +} +// delete all properties from elements except skipproperties +for (element in elements) { + var elementdata = elements[element] + if (elementdata.category === "tools") { continue } + for (property in elementdata) { + //if (skipproperties.indexOf(property) === -1) { + // only delete properties that are in goodproperties + if (goodproperties.indexOf(property) !== -1) { + delete elementdata[property] + } + } +} + +// make a randomized shuffled list of all elements +var elementlist = Object.keys(elements) +elementlist.sort(function() { return 0.5 - Math.random() }) + +// randomly assign properties to elements +for (property in allproperties) { + // list of values for this property + var propertyvalues = allproperties[property] + // loop through elements, assigning values until we run out + for (var i = 0; i < elementlist.length; i++) { + if (i >= propertyvalues.length) { break } + var element = elementlist[i] + var elementdata = elements[element] + elementdata[property] = propertyvalues[i] + } + // reshuffle the list of elements + elementlist.sort(function() { return 0.5 - Math.random() }) +} + +// choose random values for properties +for (element in elements) { + elementdata = elements[element] + if (elementdata.category === "tools") { continue } + // set tempHigh to a random value between 0 and 10000 + elementdata.tempHigh = Math.floor(Math.random() * 10000) + // set tempLow to a random value between -273 and 0 + elementdata.tempLow = Math.floor(Math.random() * 273) - 273 + if (elementdata.stateHigh) { + elementdata.stateHigh = elementlist[Math.floor(Math.random() * elementlist.length)] + } + if (elementdata.stateLow) { + elementdata.stateLow = elementlist[Math.floor(Math.random() * elementlist.length)] + } + if (elementdata.reactions) { + for (reactant in elementdata.reactions) { + elementdata.reactions[reactant].elem1 = elementlist[Math.floor(Math.random() * elementlist.length)] + elementdata.reactions[reactant].elem2 = elementlist[Math.floor(Math.random() * elementlist.length)] + elementdata.reactions[elementlist[Math.floor(Math.random() * elementlist.length)]] = elementdata.reactions[reactant] + delete elementdata.reactions[reactant] + } + } + +} + +// Generate random hex color codes +function getRandomHexColor() { + let hex = '#'; + for (let i = 0; i < 6; i++) { + hex += Math.floor(Math.random() * 16).toString(16); + } + return hex; +} +//random word generator +function generateRandomWord() { + let word = ''; + const letters = 'abcdefghijklmnopqrstuvwxyz'; + + // Generate random word + for(let i = 0; i < Math.floor(Math.random() * 20); i++) { + word += letters.charAt(Math.floor(Math.random() * letters.length)); + } + + // Randomly add spaces + for(let i = 0; i < word.length; i++) { + if(Math.random() < 0.2) { + word = word.slice(0, i) + ' ' + word.slice(i); + } + } + + return word; + } +// Set random colors +for (let element in elements) { + let elementData = elements[element]; + if (Math.random() < 0.3) { + elementData.color = [getRandomHexColor(),getRandomHexColor(),getRandomHexColor()]; + } + else if (Math.random() < 0.5) { + elementData.color = [getRandomHexColor(),getRandomHexColor()]; + } + else if (Math.random() < 0.8) { + elementData.color = getRandomHexColor(); + } + else { + elementData.color = [getRandomHexColor(),getRandomHexColor(),getRandomHexColor(),getRandomHexColor(),getRandomHexColor()]; + } +} +// Set random category +for (let element in elements) { + let elementData = elements[element]; + if (elementData.category === "tools") { continue } + elementData.category = generateRandomWord(); +} +runAfterLoad(function() { + pixelTempCheckTemp = pixelTempCheck + pixelTempCheck = function(pixel) { + try { + pixelTempCheckTemp(pixel) + } + catch (e) {} + } +}) + +var fonttouse = fonts[Math.floor(Math.random() * fonts.length)] + +runAfterLoad(function() { + //inverts scroll direction + if (navigator.platform.toUpperCase().indexOf('MAC')>=0) { + settings.invertscroll = false; + } + else { + settings.invertscroll = true; + } + // change every font to to random + var css = document.createElement("style") + css.innerHTML = "* { font-family: "+fonttouse+" !important; font-size: 32px !important;}" + document.body.appendChild(css) + // randomize background color + document.body.style.backgroundColor = "rgb(" + Math.floor(Math.random() * 256) + "," + Math.floor(Math.random() * 256) + "," + Math.floor(Math.random() * 256) + ")" + document.body.style.color = "rgb(" + Math.floor(Math.random() * 256) + "," + Math.floor(Math.random() * 256) + "," + Math.floor(Math.random() * 256) + ")" + document.body.style.textShadow = "35px 35px white"; + // replace choose element so it's impossible to find any element + chooseElementPrompt = function() { + alert("This feature is disabled for April Fools Day :)") + } + //showSaves = function() { + // alert("This feature is disabled for April Fools Day :)") + //} + showSaves = function() { + var savesParent = document.getElementById("savesParent"); + var saveSlotList = document.getElementById("saveSlotList"); + saveSlotList.innerHTML = ""; + // loop 12 times, checking if local storage SandboxelsSaves/x exists + // Slot 1 Clear Load Save + // Unnamed Clear Load Save + for (var i = 1; i < 13; i++) { + var save = localStorage.getItem("SandboxelsSaves/"+i); + var name = funnysavenames[Math.floor(Math.random() * funnysavenames.length)]; + if (save) { + name = JSON.parse(save).meta.name || "Unnamed"; + name = name.replace(/&/g, "&").replace(/ 16) { name = name.substring(0,16)+"..."; } + saveSlotList.innerHTML += ""+name+" Clear Load Save"; + } + else { + saveSlotList.innerHTML += ""+name+" Clear Load Save"; + } + } + savesParent.style.display = "block"; + showingMenu = "saves"; + } + // set zoom to 110%. it doesn't do anything but apparently offsets the brush? what. + document.body.style.zoom = "110%"; + // set background (game background not page background) to a random color + setSetting('bg',getRandomHexColor()); + // no more pause for you! + togglePause = function() { + alert("This feature is disabled for April Fools Day :)") + } + // Get all element keys + const elementsList = Object.keys(elements); + + // Shuffle the keys randomly + elementsList.sort(() => Math.random() - 0.5); + + // Create new shuffled elements object + const shuffledElements = {}; + + // Add elements to new object in shuffled order + elementsList.forEach(key => { + shuffledElements[key] = elements[key]; +}); + +// Replace original with shuffled version +elements = shuffledElements; +}) +// generate random element +function selectRandomElement() { + const elementKeys = Object.keys(elements); + const randomIndex = Math.floor(Math.random() * elementKeys.length); + const randomElementKey = elementKeys[randomIndex]; + + return elements[randomElementKey].name; + } +// randomly increases or decreases mouse size +setInterval(function(){ + if (Math.random() < 0.5) { + if (Math.random() < 0.5) { + mouseSize = mouseSize + 1; + } + else { + mouseSize = mouseSize - 1; + } + } + if (Math.random() < 0.05) { + selectElement(selectRandomElement()); + } + // evil random popup + if (Math.random() < 0.005) { + alert("funny popup"); + } + // useless prompt + if (Math.random() < 0.005) { + var funnyuselessprompt = prompt("funny prompt"); + } + if (Math.random() < 0.2) { + tps = tps + Math.round(Math.random()*4)-2; + } + if (Math.random() < 0.005) { + tps = 1000 + } + if (Math.random() < 0.05) { + tps = 30 + } +}, 200); From 19d79f149a90bfe5c2160fc149532eba01d86847 Mon Sep 17 00:00:00 2001 From: SquareScreamYT <134925668+SquareScreamYT@users.noreply.github.com> Date: Sat, 30 Mar 2024 18:50:12 +0800 Subject: [PATCH 4/7] Update mod-list.html --- mod-list.html | 1 + 1 file changed, 1 insertion(+) diff --git a/mod-list.html b/mod-list.html index 24b65442..63e63621 100644 --- a/mod-list.html +++ b/mod-list.html @@ -266,6 +266,7 @@ citybuilding.jsAdds seeds that create miniature buildings and other city-related itemsSquareScreamYT collab_mod.jsCreated by multiple people, adds random thingsmrapple, ilikepizza, stefanblox elem3.jsAdds all elements and combinations from Elemental 3 [Very Large]Sophie +fools+.jsimproves and makes fools.js EXTREMELY annoying.SquareScreamYT funny elements 2022-11-15.jsAdds a few curated randomly-generated elementsAlice funny_solid.jsAdds fecesAlice haseulite.jsAdds Loona-related materials with various propertiesAlice From 8318a7b8a8233066faa2f9561b8786a72ccb271d Mon Sep 17 00:00:00 2001 From: SquareScreamYT <134925668+SquareScreamYT@users.noreply.github.com> Date: Sat, 30 Mar 2024 19:16:14 +0800 Subject: [PATCH 5/7] thing --- mods/aChefsDream.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/aChefsDream.js b/mods/aChefsDream.js index e9e333bd..ed4b5646 100644 --- a/mods/aChefsDream.js +++ b/mods/aChefsDream.js @@ -385,6 +385,8 @@ elements.test = { } */ +console.log("Thanks fro using aChefsDream.js! -sqec") + function interpolateRgb(rgb1, rgb2, ratio) { const interpolatedRgb = { r: Math.round(rgb1.r + (rgb2.r - rgb1.r) * ratio), From 1fa5def9101b1f4e120a9a53b5415709ebf6bff5 Mon Sep 17 00:00:00 2001 From: SquareScreamYT <134925668+SquareScreamYT@users.noreply.github.com> Date: Sat, 30 Mar 2024 19:17:05 +0800 Subject: [PATCH 6/7] thing 2 --- mods/aChefsDream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/aChefsDream.js b/mods/aChefsDream.js index ed4b5646..57c2c7c0 100644 --- a/mods/aChefsDream.js +++ b/mods/aChefsDream.js @@ -385,7 +385,7 @@ elements.test = { } */ -console.log("Thanks fro using aChefsDream.js! -sqec") +console.log("Thanks for using aChefsDream.js! -sqec") function interpolateRgb(rgb1, rgb2, ratio) { const interpolatedRgb = { From c0e0e6985a56954f9e9c08031407d3b54173542d Mon Sep 17 00:00:00 2001 From: SquareScreamYT <134925668+SquareScreamYT@users.noreply.github.com> Date: Sat, 30 Mar 2024 21:10:54 +0800 Subject: [PATCH 7/7] the worst experience. have some myopia --- mods/fools+.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/mods/fools+.js b/mods/fools+.js index 0eed2199..213e396b 100644 --- a/mods/fools+.js +++ b/mods/fools+.js @@ -3,6 +3,7 @@ // i'm sorry, here's some poorly made ascii art bleach for your eyes // tbh most of it was copied from index.html or fools.js // moss inspired +// code messy don't read /* _____ | | @@ -34,7 +35,9 @@ funnysavenames = ["identity theft","the saveinator","Save 95","nuclear reactor", "untextured unrigged blender brick","rebar","the giant enemy spider", "statue of ryan","🟩","🟥","the temple of ryan","🌳 🌳 🌳","R74n ripoff", "the powder toy","tpt save","save from tpt","sand:box save","sandspiel save", - "cool plane","big mac with uranium"] + "cool plane","big mac with uranium","nyc","mountain thing","Slot NaN","Slot 1", + "Slot 1.5","Slot pi","Slot golden ratio","Slot Infinity","Computer thing","Pro Kitchen", + "Airport","Coconut Plantation","Eiffel Tower","car"] allproperties = {} @@ -188,7 +191,7 @@ runAfterLoad(function() { // randomize background color document.body.style.backgroundColor = "rgb(" + Math.floor(Math.random() * 256) + "," + Math.floor(Math.random() * 256) + "," + Math.floor(Math.random() * 256) + ")" document.body.style.color = "rgb(" + Math.floor(Math.random() * 256) + "," + Math.floor(Math.random() * 256) + "," + Math.floor(Math.random() * 256) + ")" - document.body.style.textShadow = "35px 35px white"; + document.body.style.textShadow = "20px 0px "+getRandomHexColor(); // replace choose element so it's impossible to find any element chooseElementPrompt = function() { alert("This feature is disabled for April Fools Day :)") @@ -240,6 +243,9 @@ runAfterLoad(function() { // Add elements to new object in shuffled order elementsList.forEach(key => { shuffledElements[key] = elements[key]; + + // blurs page + document.body.style.filter = "blur(0.8px)"; }); // Replace original with shuffled version @@ -283,4 +289,11 @@ setInterval(function(){ if (Math.random() < 0.05) { tps = 30 } + // every once in a while, everythign randomises + if (Math.random() < 0.1) { + document.body.style.color = getRandomHexColor(); + document.body.style.textShadow = "20px 0px "+getRandomHexColor(); + document.body.style.backgroundColor = "rgb(" + Math.floor(Math.random() * 256) + "," + Math.floor(Math.random() * 256) + "," + Math.floor(Math.random() * 256) + ")" + setSetting('bg',getRandomHexColor()); + } }, 200);