Set up a fabric Minecraft server and expose it to the internet with a playit tunnel.
- Create a playit account.
- Run
start-tunnel.shand follow the instructions to set up a tunnel. - In the playit website, create a new tunnel with the
Minecraft Java (game)Tunnel type. - Take note of the public address of the tunnel. This is the address you will give others to connect to your server.
It should look something like
x.y.z.ply.gg:12345. - Add the tunnel to the agent you created in step 2.
Run start-tunnel.sh and start-server.sh in 2 separate shells simultaneously.
You can access the server console in the shell running start-server.sh.
A .gitignore is also included so that you can track your server's config with git
because... why not ¯\_(ツ)_/¯
- Edit the
minecraftVersioninflake.nix. You can also changeloaderVersionandinstallerVersionif you want. Follow the steps below to update the hash. - Remove the
jarHash = "...";line and runnix develop. You should see something like this:
error: hash mismatch in fixed-output derivation '/nix/store/gpgjadc2v30jf5cqcfgjbbbqfw3jr811-jar.drv':
specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
got: sha256-qj9GxjkoFa2nqiyy/mWoCzVPCtAfulPtIhL00W9rs00=
- Copy the hash back into
flake.nix.
jarHash = "sha256-qj9GxjkoFa2nqiyy/mWoCzVPCtAfulPtIhL00W9rs00=";A mods folder is created the first time you run start-server.sh.
Place the mods you want to install in the mods folder and restart the server.
Search for mods to download on Modrinth.