Skip to content
Riot Bits

Riot Bits

  • Home
  • All Games
  • Guides
  • Video Guides
  • Patch Notes
  • Crossword Vault
  • Report Abuse
  • Toggle search form
Mr. Mine

Mr. Mine – Automated Chest Grabbing

Posted on 06/02/202106/11/2021 By moNst_ No Comments on Mr. Mine – Automated Chest Grabbing
Mr. Mine

Tired of clicking the screen just to grab the chests in Mr. Mine? In this guide, we will be teaching you how to automate chest grabbing in Mr. Mine.

Search for the File

Go to the installation folder of Mr. Mine on your PC. By default, it’s located in:

C:\Program Files (x86)\Steam\steamapps\common\MrMine\win-unpacked\resources\app\Shared\src\chest

Look for the javascript file called ChestService.js

Edit the File

First things first. Make a backup copy of the file. Once done, open it using any text editor.

Scroll down to line 148, 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);
      }
  }

Add the next line after line 148:

this.presentChest(tenthOfDepth);

It should 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);
      }
  }

Now go to line 199 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);
      }
 }

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);
        }
    }

Save and close the file and restart the game. Now you won’t see chest spawning, but you’ll get the rewards! You can check out the Event Log for proof.

That's everything we are sharing today for this Mr. Mine guide. This guide was originally created and written by moNst_. In case we fail to update this guide, you can find the latest update by following this link.

If you believe that any of the content on this site violates your rights, including your intellectual property rights, please contact us immediately using our contact form.
Mr. Mine Tags:Guides

Post navigation

Previous Post: Going Medieval – How to Add Custom Map Sizes
Next Post: Portal Reloaded – Every Chamber’s Hints and Guide
Login
guest
guest
0 Comments
Inline Feedbacks
View all comments

Disclaimer

All content cited is derived from their respective sources. If you think we have used your content without permission, make sure to reach us and we will be taking it seriously.

Recent Posts

  • The Haunted: Hells Reach 100% Achievement Guide
  • The Magnificent Trufflepigs 100% Achievement Guide + Bonuses
  • The Night Way Home – All Little Rina Locations Guide
  • Celeste – Where to Find Moon Berry
  • Hanako in the abandoned school 100% Achievement Guide
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms of Service

Copyright © 2022 Riot Bits.

en English
en Englishnl Dutchfr Frenchpt Portuguesees Spanishit Italiande German