🔥Minecraft Server on Repl.it!🔥
h
Scoder12 (652)

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 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!

Huge shoutout to @letsrepl for the initial concept.

Remember to upvote if you enjoyed!

You are viewing a single comment. View All
tussiez (7)

Minecraft servers require a lot of memory to run. Is this why Hacker Plan is needed? Or is it something else?

tussiez (7)

@tussiez I was writing a response to my own question, but I lost it. Aww...

It seems like someone else has asked my question too, and someone responded with memory constraints being the reason why this server can't be run on non-Hacker accounts. Although, I've seen myself that these servers can be run on 500mb (I've tried on my PC) of memory. Therefore, it should be possible that the server should be able to run on a non-Hacker account, with some tinkering. You won't be able to run the server full-time though, since non-Hacker accounts don't have always-on Repls.

Scoder12 (652)

@tussiez oh ok. Do you know what the java arguments for this would be? The -Xms and -Xmx ones? Those control the memory constraints.

MarcusWeinberger (236)

@Scoder12 -Xms500MB and -Xmx500MB should do it

tussiez (7)

@MarcusWeinberger Yeah. I've done it myself outside of the Repl environment.

tussiez (7)

@Scoder12 Sorry about the late response.
Yes, the -Xms and -Xmx arguments control the memory constraints. An example of these arguments being used to allocate 512mb when starting a Minecraft server:

java -Xmx512M -Xms512M -jar your_server.jar nogui

tussiez (7)

@tussiez If you are looking to allocate multiple gigabytes of memory to the server, just multiply the gigabyte value by 1024 or change the -Xmx(s)512M to -Xmx(s)1G for 1 gigabyte of memory, and so on and so forth.

tussiez (7)

@MarcusWeinberger Actually, I think -Xms500M and -Xmx500M is correct. I've checked myself. This goes for -Xm(x/s)1G too.

MarcusWeinberger (236)

@tussiez wait, hacker accounts can have always-on repls? how?

tussiez (7)

@MarcusWeinberger On a free Repl account, any "servers" you run, such as Node, Java, Python, etc only runs when you open them in a webpage (the Repl). On a Hacker account, those "servers" run all the time, even if you don't have it open.