Merge pull request #1282 from 3pm-on-github/main
Let's take a look... (3pms_mod.js 0.0.2)
This commit is contained in:
commit
47b73a4ccb
|
|
@ -363,6 +363,7 @@
|
||||||
<tr><td>volcanic_expansion.js</td><td>Obsidian, Pumice, and Andesite rocks</td><td>Jayd</td></tr>
|
<tr><td>volcanic_expansion.js</td><td>Obsidian, Pumice, and Andesite rocks</td><td>Jayd</td></tr>
|
||||||
|
|
||||||
<!----><tr><td class="modCat" colspan="3">Fun & Games</td></tr><!---->
|
<!----><tr><td class="modCat" colspan="3">Fun & Games</td></tr><!---->
|
||||||
|
<tr><td>3pms_mod.js</td><td>Adds random stuff and tools</td><td>3pm</td></tr>
|
||||||
<tr><td>10kelements.js</td><td>Customizable amount of randomly generated elements</td><td>nousernamefound</td></tr>
|
<tr><td>10kelements.js</td><td>Customizable amount of randomly generated elements</td><td>nousernamefound</td></tr>
|
||||||
<tr><td>all_around_fillers.js</td><td>Directional Filler variants</td><td>idk73248</td></tr>
|
<tr><td>all_around_fillers.js</td><td>Directional Filler variants</td><td>idk73248</td></tr>
|
||||||
<tr><td>allliquids.js</td><td>Made all elements liquids</td><td>Orchid</td></tr>
|
<tr><td>allliquids.js</td><td>Made all elements liquids</td><td>Orchid</td></tr>
|
||||||
|
|
|
||||||
133
mods/3pms_mod.js
133
mods/3pms_mod.js
|
|
@ -1,43 +1,37 @@
|
||||||
// mod moment
|
// made by 3pm
|
||||||
// also made by 3pm
|
|
||||||
|
|
||||||
// starting the initiation
|
version = "0.0.2"
|
||||||
version = "0.0.1"
|
subversion = "0.0.21"
|
||||||
subversion = "0.0.12"
|
versionname = "Let's take a look..."
|
||||||
versionname = "Gullible On The Ceilling"
|
|
||||||
|
|
||||||
console.log("3pms_mod.js " + version + " \"" + versionname + "\"")
|
console.log("3pms_mod.js " + version + " \"" + versionname + "\"")
|
||||||
console.log("3pms_mod.js | Initiating...")
|
console.log("3pms_mod.js | Initiating...")
|
||||||
|
|
||||||
// bypassing the tps limit
|
// bypassing the tps limit
|
||||||
// nvm this is useless
|
|
||||||
// whatever im keeping it
|
|
||||||
|
|
||||||
setTimeout(() => {
|
function tpsPrompt() {
|
||||||
const tpsbutton = document.getElementById("tpsButton");
|
promptInput("Enter the new simulation Ticks Per Second (TPS). This is how many updates per second the simulation will run.\n\nThe default is 30.\n\nThe current TPS is " + tps + ".\n\nNOTE: 3pms_mod.js removes the TPS limit.\nAny TPS higher than 1000 isn't recommended.\n\n",
|
||||||
tpsbutton.onclick = () => {
|
(r) => {
|
||||||
var tpsprompt = prompt(
|
var newtps = parseInt(r);
|
||||||
"Enter the new simulation Ticks Per Second (TPS). This is how many updates per second the simulation will run.\n\n" +
|
if (r !== null) {
|
||||||
"The default is 30.\n\nThe current TPS is " + tps + ".\n\nNOTE: 3pms_mod.js removes the TPS limit.\n" +
|
if (isNaN(newtps) || newtps == "") logMessage("You did not enter a valid TPS.");
|
||||||
"Any TPS higher than 1000 isn\'t recommended.\n\n"
|
else {
|
||||||
);
|
newtps = parseInt(newtps);
|
||||||
|
if (isNaN(newtps) || newtps <= 0) {
|
||||||
var newtps = parseInt(tpsprompt);
|
logMessage("You did not enter a valid TPS.");
|
||||||
if (tpsprompt !== null) {
|
}
|
||||||
if (isNaN(newtps) || newtps == "") {
|
else {
|
||||||
alert("You did not enter a valid TPS.");
|
tps = newtps;
|
||||||
} else {
|
delete currentSaveData.oldTps;
|
||||||
tps = parseInt(newtps);
|
}
|
||||||
if (isNaN(tps) || tps <= 0) {
|
}
|
||||||
alert("You did not enter a valid TPS.");
|
resetInterval(tps);
|
||||||
tps = 30;
|
|
||||||
}
|
}
|
||||||
}
|
focusGame();
|
||||||
resetInterval(tps);
|
},
|
||||||
}
|
"Change TPS"
|
||||||
focusGame();
|
)
|
||||||
};
|
}
|
||||||
}, 1000);
|
|
||||||
|
|
||||||
// more settings
|
// more settings
|
||||||
|
|
||||||
|
|
@ -60,7 +54,7 @@ setTimeout(() => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>`);
|
</div>`);
|
||||||
const menuText = document.getElementsByClassName("menuText")[6]
|
const menuText = document.getElementsByClassName("menuText")[9]
|
||||||
const newButton = document.createElement("button")
|
const newButton = document.createElement("button")
|
||||||
newButton.innerText = "More Settings"
|
newButton.innerText = "More Settings"
|
||||||
newButton.className = "settingsButton"
|
newButton.className = "settingsButton"
|
||||||
|
|
@ -73,7 +67,7 @@ setTimeout(() => {
|
||||||
|
|
||||||
// elements
|
// elements
|
||||||
|
|
||||||
elements.calcium_oxide = { // most of this is taken off calcium
|
elements.calcium_oxide = {
|
||||||
color: ["#544E45","#6A635E","#6E6A61","#756F62","#918A7B"],
|
color: ["#544E45","#6A635E","#6E6A61","#756F62","#918A7B"],
|
||||||
tick: function(pixel) {
|
tick: function(pixel) {
|
||||||
behaviors.POWDER(pixel);
|
behaviors.POWDER(pixel);
|
||||||
|
|
@ -95,39 +89,56 @@ elements.calcium_oxide = { // most of this is taken off calcium
|
||||||
fireColor: "#ff6b21"
|
fireColor: "#ff6b21"
|
||||||
}
|
}
|
||||||
|
|
||||||
elements.eeraser = { // finally integrating it after over a year
|
elements.eeraser = {
|
||||||
color: "#FFFF00",
|
color: "#FFFF00",
|
||||||
behavior: behaviors.WALL,
|
behaviorOn: [
|
||||||
behaviorON: [
|
"DL|XX|DL",
|
||||||
"DL|DL|DL",
|
"DL|XX|DL",
|
||||||
"DL|DL|DL",
|
|
||||||
"DL|DL|DL",
|
"DL|DL|DL",
|
||||||
],
|
],
|
||||||
|
behavior: [
|
||||||
|
"XX|XX|XX",
|
||||||
|
"XX|XX|XX",
|
||||||
|
"XX|XX|XX"
|
||||||
|
],
|
||||||
|
conduct: 0.5,
|
||||||
category: "machines",
|
category: "machines",
|
||||||
insulate: elements.wire.insulate,
|
state: "solid",
|
||||||
conduct: elements.wire.conduct,
|
|
||||||
noMix: elements.wire.noMix
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// stopping the initiation
|
// tools
|
||||||
|
elements.replace_all_of_element = {
|
||||||
|
color: ["#ff3030", "#800000"],
|
||||||
|
name: "replace all of element",
|
||||||
|
onSelect: async function() {
|
||||||
|
promptInput(
|
||||||
|
"Enter the element to be replaced.",
|
||||||
|
(r) => {
|
||||||
|
if (r in elements) {
|
||||||
|
elements.replace_all_of_element.tool = function(pixel) {
|
||||||
|
elementbefore = pixel.element
|
||||||
|
for (var i = 0; i <= width; i++) {
|
||||||
|
for (var j = 0; j <= height; j++) {
|
||||||
|
if (!isEmpty(i,j,true)) {
|
||||||
|
if(pixelMap[i][j].element == elementbefore) {
|
||||||
|
changePixel(pixelMap[i][j], r)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
logMessage("You did not enter an existing element.");
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"3pms_mod.js"
|
||||||
|
);
|
||||||
|
},
|
||||||
|
category: "tools",
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log("3pms_mod.js | Initiated. Thank you.")
|
console.log("3pms_mod.js | Initiated. Thank you.")
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const thing=document.createElement("p");thing.innerText="MY NAME 📛 IS DAVID 👨🎤 DAD 👨👩👧👦👨👩👧👧 I ℹ️ WANT SOME ICE 🧊🇦🇶 CREAM 🧴🧴 DAVID 👨🎤 THAT IS MY NAME 📛 DAVID 👨🎤👨🎤 I ℹ️ WANT ANOTHER WHERE ❔❓ IS MY BALL 🏈🏈 I’M RUNNING 🏃♂️🏃♀️ OUT ON 🔛 THE ROAD 🚧 THERE IS A 🅰️ CAR 🚔🚖 AND IT IS GOING TO HIT 👊 ME 🖐🙋♀️ HEEEEEEEEELP HELP 💁 MEEEEEEE HEEEEEEEEEEEEEEEEELP\n\nthanks for using 3pms_mod.js :3";document.body.appendChild(thing)
|
|
||||||
Loading…
Reference in New Issue