🔥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!
- Start a new bash repl
- In the console paste this:
wget -O mc.sh https://xpiredl.scoder12.repl.co/mc.sh
- In main.sh, paste this:
Run the repl and follow the instructions!
Once you see
Done! in the console, connect to the ip shown in ip.txt
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
wgetagain (even if you already have the script)
mc.sh, find the line that says
VERSION=1.16.3and edit it to your desired version
Huge shoutout to @letsrepl for the initial concept.
Remember to upvote if you enjoyed!
php -S 0.0.0.0:3000 ip.txt & bash mc.sh in
main.sh, instead of just
bash mc.sh. This automatically sets up a website for it, making it easier to use with uptime robot.
Once this is setup, go to uptime robot and create a keyword monitor that checks every 5 minutes for the keywords "Server running on". That way the server will stay up all the time.
Don't forget to put the
ngrok_region values in your
@Scoder12 Two things, Frist, I keep getting this error,
and idk what to do, pls help.
Second thing, I hate to ask this but in the instructions can you put down in all caps "YOU DON'T NEED TO FORK THE REPL BELOW" because I did, and worked on the web design only to find out I didn't need to lol. Hope you can help!
as the ngrok tunnel change, all the data in the server gets lost.
is there anyway i can use my ip and port or if i can save that data before ip port gets changed?
@927gaming You mean save your world data? Well, it would help to stop the server by typing
stop in console or
/stop in chat. I have also had issues with it saving and I think this is due to repl.it not snapshotting the files. I am not 100% sure how to fix it but maybe by opening all of the files in
mc/world and it's subfolders in the editor before you leave the editor. Hope this helps!
chmod: cannot access 'jre/bin/java': No such file or directory
exit status 1
i got an "unknown host" error inside minecraft.
Also how to update the server to latest minecraft version.
I got a SSL error "Unable to establish SSL connection." in wget. using Curl got me curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to xpiredl.scoder12.repl.co:443
Hey, first of all thank you for the helpful tip! Can you upload an existing world onto the server?
@EpicBoomerMomen Yep, you can, once you run the script for the first time it should create the traditional server file structure. Then you can stop the server and replace the world
.dat files by uploading into the repl. Only thing to keep in mind is that there is a size limit per repl that cannot be increased.