minehut-download is a helpful tool that allows you to quickly download a folder from your Minehut server.
- Clone this repository by running
git clone https://github.com/tarna/minehut-download. - Install the dependencies by running either
npm installoryarn install.
- Create a file called
.envin the root directory of the project. - Copy the contents of
.env.exampleinto.env. - Fill in the values with your Minehut account authorization. View the authorization section for more information.
To get your Minehut auth details, open the browser console while on the Minehut website and paste in the following code:
const getCookie = (name) => decodeURIComponent(document.cookie).split("; ").find(
cookie => cookie.startsWith(name)
).slice(name.length + 1);
console.log(({
minehutToken: getCookie("access_token_prd"),
minehutSession: localStorage.minehut_session_id,
slgUserToken: localStorage.slg_user_token,
}));Then copy over the values into the .env file.
- Run
npm run buildto build the project. - Then run
node build/index.js --server=tarna --folder=worldto run the project with your own server and folder.
- Run
yarn start --server=tarna --folder=worldto run the project with your own server and folder.
If you are receiving an error, recheck the following:
- Your
.envfile is filled out correctly. - You have the correct server name and folder name.
- You have the correct authorization details.
- The folder exists on your server.
- You own the server you are trying to download from.
There is currently an issue where users using a windows computer are getting an error of "cannot find module 'registry-js'". This is a known issue and will be fixed in the future.