🔥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!
- Fork this repl.
- Run the repl and follow the instructions.
If you get any errors make sure that you typed everything right or try starting from scratch. Otherwise, comment and I may be able to help you.
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!
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
Hey, any way to keep the server alive? The server closes very quickly even with hacker plan, I even lost ~5min of progress (autosave).
I wasn't able to listen to port 8080 & host the mc server at the same time as the http server would close as soon as the mc server started.
Any suggestions or plans?
Unrelated: Inside of your server.properties, I'd recommend setting
sync-chunk-writes=false to improve performance &
enable-rcon=false as rcon is not being used.
I followed the steps but am now getting "exit status 1", not sure what the problem could be as I am an inexperienced programmer but the version also changes itself back to 1.16.3 when I run the program?
I keep getting
Failed to download vanilla jar
javax.net.ssl.SSLProtocolException: Received close_notify during handshake. Is there a fix for this?
Hi. I can't seem to be able to solve this error. I've redone the process multiple times, but I still seem to not be able to get past this point
Here's my repl if you need it https://replit.com/@Starmanx64/nix-java-16-1-1-1-1-1-1-1-1