🔥Minecraft Server on Repl.it!🔥
How to run a minecraft server on repl.it
Hey guys today I'm going to show you how to run a minecraft server on repl.it.
Note: You need hacker plan for this to work right now!
Installation is super simple!
- If you want to support 1.17 fork this repl. Otherwise, start a new bash repl and in
- In the console paste this:
wget -O mc.sh https://xpiredl.scoder12.repl.co/mc.sh
If you get any errors make sure that you typed everything right or try starting from scratch.
Run the repl and follow the instructions!
Once you see
Done! in the console, connect to the ip shown in
ip.txt. If you don't want the IP to change you can purchase ngrok premium or use a dedicated minecraft host such as PebbleHost
If you have questions ask in the comments!
How to change minecraft version
- If you already have a server, delete the files
- Run the command above that starts with
mc.sh, find the line that says
VERSION=1.16.3and edit it to your desired version
If you get "signal: killed" or "OutOfMemoryError"
You have two options:
1. Buy hacker plan
2. Change the line at the bottom of
mc.sh that starts with
java to be
java -Xmx1G -Xms1G -jar server.jar nogui" to "java -Xmx200M -Xms200M -jar server.jar nogui (thanks @gomgo)
Huge shoutout to @letsrepl for the initial concept.
Remember to upvote if you enjoyed!
When I run bash mc.sh from the console is comes with the previous error, if I run it from the main.sh on start it comes with a new message:
Environment variable ngrok_region not set. In your .env file, add a line with: ngrok_region= and then right after the = add your region, one of: us - United States (Ohio) eu - Europe (Frankfurt) ap - Asia/Pacific (Singapore) au - Australia (Sydney) sa - South America (Sao Paulo) jp - Japan (Tokyo) in - India (Mumbai)