-
Create a new
Bashrepl
-
Type the following command into the shell:
git clone https://github.com/etcherfx/MCServerTemplate.git && shopt -s dotglob && mv MCServerTemplate/* MCServerTemplate/../ && rm -rf MCServerTemplate main.sh
-
In the files section on replit, click the three dots and click
Show hidden files
-
Navigate to
replit.nixand follow these intructions:- For Minecraft 1.16.x and below, do not change anything.
- For Minecraft 1.17.x and above, make sure to change
pkgs.openjdk8-bootstraptopkgs.openjdk18-bootstrap
-
Click on the
Secretsbutton in the tools section on the far left side of your screen
-
Create a new secret called
ngrok_regionand input one of the regional codes from the list below as the value:Choose the closest region for better network connectivity.
Region Code United States (Ohio) usEurope (Frankfurt) euAsia/Pacific (Singapore) apAustralia (Sydney) auSouth America (Sao Paulo) saJapan (Tokyo) jpIndia (Mumbai) in
-
Do the same for the variables in the list below:
Key Value ngrok_tokenYour authtoken for ngrok. SERVERThe server software in all lowercase. e.g purpurVERSIONVersion of Minecraft your server is running on. e.g 1.19.4BUILDThe build number of your server software. Only use this if you have paperas the server softwareIf you don't have a ngrok authtoken, you can visit here and make an account to get your token.
-
List of server software supported:
-
Here are some recommended build numbers for
paper:Minecraft Version Build # 1.19.45261.18.23881.17.14111.16.57941.15.23931.14.42451.13.26571.12.216201.11.211061.10.29181.9.47751.8.8445To get a list of all build numbers for paper, visit here
- Run the repl and follow the instructions on the console
- Once the console displays
Done! For help, type "help", navigate tostatus.logand copy the IP address online 7and enter it inside of Minecraft. The IP should be something liketcp://9.tcp.eu.ngrok.io:46797and you want to copy the whole address EXCEPT thetcp://part.
- Boost your repl
- Follow this server optimization guide
