🔥Minecraft Server on Repl.it!🔥
Scoder12 (850)

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!

  1. Start a new bash repl
  2. In the console paste this:
wget -O mc.sh https://xpiredl.scoder12.repl.co/mc.sh
  1. In main.sh, paste this:
bash mc.sh

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

  1. If you already have a server, delete the files mc/server.jar and mc.sh
  2. Run the command above that starts with wget again (even if you already have the script)
  3. In mc.sh, find the line that says VERSION=1.16.3 and edit it to your desired version

Huge shoutout to @letsrepl for the initial concept.

Remember to upvote if you enjoyed!

You are viewing a single comment. View All
QuintenBuwalda (0)

For some reason, it keeps saying that I need to put ngrok_token in my .env file even though it's already there.

QuintenBuwalda (0)

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:
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)
Scoder12 (850)

@QuintenBuwalda you can't run it from the console because if you run it in the console, the .env doesn't work. This new message means that you set the first variable correctly, and now it wants you to add a second one.

QuintenBuwalda (0)

@Scoder12 Is there a problem with my .env now?


I've run the the script from main.sh and it still comes with the invalid region error.