🔥Minecraft Server on Repl.it!🔥
Hey guys today I'm going to show you how to run a minecraft server on repl.it.
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!
- 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
You have two options:
- Buy hacker plan
- Change the line at the bottom of
mc.shthat starts with
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.
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
@yadunandanrocks there is a java plugin called geyser that lets them connect to each other i use it sadly its only 1.17 but thanks to viaversion and its other versions you can now connnect 1.7-1.17.11 Java (this includes Minecraft VR) and the current Bedrock edition to each other on 1 server with no lag issues the only issue may be PvP related but that is only an issue for big servers.
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.
Looks useful. I was just looking for a new server. I am not sure if I will be able to run it myself, but I will ask my friend, a programmer, to do that. If it works out, we will play there. If not, we will continue to play on minecraft servers https://servers-minecraft.net where we used to play before that. They are cool, but sometimes you want to try something new. However, if this new idea does not work or becomes too troublesome, we will return to the good old places that we already know well and love. Also, if we cannot play on this server without our programmer friend, this all be senseless because he’s often absent.