2024-11-10 06:10:38 -05:00
// mod moment
// also made by 3pm
// starting the initiation
2025-05-18 10:00:36 -04:00
version = "0.0.1"
subversion = "0.0.12"
versionname = "Gullible On The Ceilling"
2024-11-10 06:10:38 -05:00
2025-05-18 10:00:36 -04:00
console . log ( "3pms_mod.js " + version + " \"" + versionname + "\"" )
2024-11-10 06:10:38 -05:00
console . log ( "3pms_mod.js | Initiating..." )
// bypassing the tps limit
2025-05-18 10:00:36 -04:00
// nvm this is useless
// whatever im keeping it
2024-11-10 06:10:38 -05:00
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 ) ;
2025-05-18 10:00:36 -04:00
// more settings
2024-11-10 06:10:38 -05:00
function showMoreSettings ( ) {
showingMenu = "moresettings"
console . log ( "3pms_mod.js | Opening More Settings...." )
var moresettingsParent = document . getElementById ( "moresettingsParent" ) ;
moresettingsParent . style . display = "block" ;
}
setTimeout ( ( ) => {
const gamediv = document . getElementById ( "gameDiv" )
2025-05-18 09:49:39 -04:00
gamediv . insertAdjacentHTML ( "beforeend" , `
< div id = "moresettingsParent" style = "display: none" class = "menuParent" >
< div id = "moresettingsMenu" >
< button class = "XButton" onclick = "closeMenu();showSettings();" > - < / b u t t o n >
< span class = "menuTitle" > More Settings < / s p a n >
< div class = "menuText" style = "padding-top:1em" >
< p > Nothing to see here ; 3 < / p >
< / d i v >
< / d i v >
< / d i v > ` ) ;
const menuText = document . getElementsByClassName ( "menuText" ) [ 6 ]
2024-11-10 06:10:38 -05:00
const newButton = document . createElement ( "button" )
newButton . innerText = "More Settings"
newButton . className = "settingsButton"
newButton . onclick = ( ) => {
closeMenu ( ) ;
showMoreSettings ( )
}
menuText . appendChild ( newButton )
} , 1000 ) ;
// elements
elements . calcium _oxide = { // most of this is taken off calcium
color : [ "#544E45" , "#6A635E" , "#6E6A61" , "#756F62" , "#918A7B" ] ,
tick : function ( pixel ) {
behaviors . POWDER ( pixel ) ;
for ( var i = 0 ; i < adjacentCoords . length ; i ++ ) {
var x = pixel . x + adjacentCoords [ i ] [ 0 ] ;
var y = pixel . y + adjacentCoords [ i ] [ 1 ] ; } } ,
tempHigh : 842 ,
reactions : {
water : { elem1 : "calcium_oxide" , elem2 : "steam" } ,
salt _water : { elem1 : "calcium_oxide" , elem2 : "steam" } ,
sugar _water : { elem1 : "calcium_oxide" , elem2 : "steam" } ,
dirty _water : { elem1 : "calcium_oxide" , elem2 : "steam" }
} ,
category : "powders" ,
state : "solid" ,
density : 1550 ,
conduct : 0.40 ,
hardness : 0.2 ,
fireColor : "#ff6b21"
}
2025-05-18 10:00:36 -04:00
elements . eeraser = { // finally integrating it after over a year
color : "#FFFF00" ,
behavior : behaviors . WALL ,
behaviorON : [
"DL|DL|DL" ,
"DL|DL|DL" ,
"DL|DL|DL" ,
] ,
category : "machines" ,
insulate : elements . wire . insulate ,
conduct : elements . wire . conduct ,
noMix : elements . wire . noMix
} ;
2024-11-10 06:10:38 -05:00
// stopping the initiation
setTimeout ( ( ) => {
console . log ( "3pms_mod.js | Initiated. Thank you." )
2025-05-18 09:49:39 -04:00
} , 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 )