diff --git a/mods/3pms_mod.js b/mods/3pms_mod.js new file mode 100644 index 00000000..93137f7d --- /dev/null +++ b/mods/3pms_mod.js @@ -0,0 +1,91 @@ +// mod moment +// also made by 3pm + +// starting the initiation + +console.log("3pms_mod.js | Initiating...") + +// bypassing the tps limit + +setTimeout(() => { + const tpsbutton = document.getElementById("tpsButton"); + tpsbutton.onclick = () => { + var tpsprompt = prompt( + "Enter the new simulation Ticks Per Second (TPS). This is how many updates per second the simulation will run.\n\n" + + "The default is 30.\n\nThe current TPS is " + tps + ".\n\nNOTE: 3pms_mod.js removes the TPS limit.\n" + + "Any TPS higher than 1000 isn\'t recommended.\n\n" + ); + + var newtps = parseInt(tpsprompt); + if (tpsprompt !== null) { + if (isNaN(newtps) || newtps == "") { + alert("You did not enter a valid TPS."); + } else { + tps = parseInt(newtps); + if (isNaN(tps) || tps <= 0) { + alert("You did not enter a valid TPS."); + tps = 30; + } + } + resetInterval(tps); + } + focusGame(); + }; +}, 1000); + +// more settings ig (coming soon) + +/* +function showMoreSettings() { + showingMenu="moresettings" + console.log("3pms_mod.js | Opening More Settings....") + var moresettingsParent = document.getElementById("moresettingsParent"); + moresettingsParent.style.display = "block"; +} + +setTimeout(() => { + // make the html injecting easier, do le insert adjacent html + const gamediv = document.getElementById("gameDiv") + gamediv.insertAdjacentHTML("beforeend", '