Last active
April 9, 2024 22:09
-
-
Save mrryanjohnston/dd8db8e92936ade0352f002ff037e9f8 to your computer and use it in GitHub Desktop.
Turbo Baker 9001 - A Cookie Clicker Steam Mod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Name": "Turbo Baker 9001", | |
"ID": "TurboBaker9001", | |
"Author": "ryjo", | |
"Description": "A mod that lets you bake any amount of cookies on demand! I made this. ryjo.", | |
"ModVersion": 1, | |
"GameVersion": 2.052, | |
"Date": "04/01/2024", | |
"Dependencies": [], | |
"Disabled": 0, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Game.registerMod("TurboBaker9001",{ | |
init:function(){ | |
Game.Notify(`Your new Turbo Baker 9001 whirs to life...`,`You can now bake any amount of cookies that you wish instantly!`,[16,5]); | |
l('storeTitle').insertAdjacentHTML('beforeend', | |
'<input id="TurboBakeAmount" type="text" style="width:100%;text-align:center;padding:4px 8px;box-sizing:border-box;margin:8px 3px;" value="1">'); | |
l('storeTitle').insertAdjacentHTML('beforeend', | |
'<a style="font-size:12px;position:absolute;bottom:2px;right:2px;display:block;" class="smallFancyButton" id="TurboBake">Turbo Bake!</a>'); | |
let MOD=this; | |
AddEvent(l('TurboBake'),'click',function(){ | |
MOD.TurboBake(l('TurboBakeAmount').value) | |
}); | |
// uncomment this line to replace the cookie with the ryjo.codes branded cookie :) | |
// Game.Loader.Replace('perfectCookie.png',this.dir+'/perfectCookie.png'); | |
}, | |
save:function(){}, | |
load:function(){}, | |
TurboBake:function(amt) | |
{ | |
Game.Earn(parseInt(amt)); | |
Game.Notify(`Turbo Baker 9001`,`Turbo Baked ` + amt + ` cookies!`,[16,5]); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment