Mr.Mine

Mr.Mine

41 ratings
Mr. Mine automated chest grabbing
By LATERAL
Hey Guys.

I was reading the game files and found a way to grab chests without clicking on them!
Game version (v.018). Works with v0.19!

OUTDATED. Thank you everyone for your support!
   
Award
Favorite
Favorited
Unfavorite
Finding the file
  1. Open this folder:
    your_drive:\Program Files (x86)\Steam\steamapps\common\MrMine\win-unpacked\resources\app\Shared\src\chest
  2. Look for the javascript file called:
    ChestService.js
Edit the file
  1. Backup the file and open the original one with your text editor.
  2. Scroll down to line 164, you should see the next lines:
    rollForRandomChest(tenthOfDepth, source) { let validBlockDepths = this.getValidBlockDepths(tenthOfDepth); if(validBlockDepths.length && this.rollForBasicChest()) { this.spawnChest(tenthOfDepth, source, this.rollForGoldenChest(), validBlockDepths); } }
  3. Add the next line after line 164:
    this.presentChest(tenthOfDepth);

    It shoud look like this:
    rollForRandomChest(tenthOfDepth, source) { let validBlockDepths = this.getValidBlockDepths(tenthOfDepth); if(validBlockDepths.length && this.rollForBasicChest()) { this.spawnChest(tenthOfDepth, source, this.rollForGoldenChest(), validBlockDepths); this.presentChest(tenthOfDepth); } }

  4. Now go to line 210 and find the next function:
    presentChest(tenthOfDepth) { let chest = this.getChest(tenthOfDepth); if(!keysPressed["Shift"]) { openUi(ChestWindow, undefined, chest); } else { this.giveChestReward(chest.tenthOfDepth); newNews(_("You got {0} from a Chest!", chestService.getChestRewardText()), true); } if(chest.isGolden) { trackEvent_FoundChest(1); } else { trackEvent_FoundChest(0); } }

  5. Change the presentChest function to look like this:
    presentChest(tenthOfDepth) { let chest = this.getChest(tenthOfDepth); this.giveChestReward(chest.tenthOfDepth); newNews(_("You got {0} from a Chest!", chestService.getChestRewardText()), true); if(chest.isGolden) { trackEvent_FoundChest(1); } else { trackEvent_FoundChest(0); } }

  6. Save and close the file
  7. Restart the game
Conclusion
Now you won't see chest spawning, but you'll get the rewards! You can checkout the Event Log for proof.


If you want to automate the combat system, checkout Sebastian's guide: https://cs2bus.com/sharedfiles/filedetails/?id=2429496307

In the next days I'll be looking a way to automate ore selling!
Happy Mining!
26 Comments
imran 23 Mar, 2024 @ 12:48am 
g
NowThenGoodBad 25 Feb, 2024 @ 8:38pm 
I don't know if this is how it worked before, but now it seems like holding Shift on the keyboard skips the chest open animation, replacing this script.

Thank you for sharing it!
TesT 21 Aug, 2022 @ 7:09am 
I can confirm that this works as of today, thank you for this guide this is a lifeline after playing Mr Mine for 700+ hours without anything automated.
♥ The holy german Patriot ♥ 21 Jun, 2022 @ 4:00am 
if you want
ONLY use the easy game
without changing any, look to my Guide:

Gold and Chests Quick Opening Guide, also reaktor tipp ;-} ♥
Xenomile 11 Apr, 2022 @ 7:38am 
chinese MFs going into some shitty idle mobile games source code to automate the "beating son with a belt" function
CkuMeH 14 Dec, 2021 @ 5:24pm 
v 0.23 working ?
Iwantpizzagd 5 Oct, 2021 @ 6:40pm 
OUTDATED D:
Nub.John 12 Aug, 2021 @ 10:15am 
Also I teach you how to fully automate battles !
Nub.John 12 Aug, 2021 @ 10:15am 
I made a guide with the fix for this automation :
https://cs2bus.com/sharedfiles/filedetails/?id=2573032703
SyncopeSanvio 9 Aug, 2021 @ 6:39am 
Anyone has an update version of this ?