https://github.com/mjanders6/minecraft-installer---bash-scripts
Running the Minecraft Installer with bash scripts instead of the python script.
https://github.com/mjanders6/minecraft-installer---bash-scripts
minecraft-java-edition minecraft-server
Last synced: 10 months ago
JSON representation
Running the Minecraft Installer with bash scripts instead of the python script.
- Host: GitHub
- URL: https://github.com/mjanders6/minecraft-installer---bash-scripts
- Owner: mjanders6
- Created: 2024-05-15T20:22:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-23T06:25:48.000Z (over 1 year ago)
- Last Synced: 2025-02-03T05:56:43.607Z (11 months ago)
- Topics: minecraft-java-edition, minecraft-server
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minecraft-Installer---Bash-Scripts
Running the Minecraft Installer with bash scripts instead of the python script.
# Minecraft Jar File
This might need to be changed in `get-minecraft.server.sh` script
- [1.20.5](https://piston-data.mojang.com/v1/objects/79493072f65e17243fd36a699c9a96b4381feb91/server.jar)
- [1.20.6](https://piston-data.mojang.com/v1/objects/145ff0858209bcfc164859ba735d4199aafa1eea/server.jar)
- [1.21.0](https://piston-data.mojang.com/v1/objects/450698d1863ab5180c25d7c804ef0fe6369dd1ba/server.jar)
# Running the Shell Code
1. Set `minecraft-install.sh` to an executable. It will set all necessary files as executable: `chmod +x File-Name`
2. Run `./minecraft-install.sh`
3. The `minecraft-install.sh` will perform the following:
- Edit the eula.txt file: `eula=true`
- Update the `server.properties`
- `rcon.port=25575`
- Prompt you to set the `rcon.password`
- `enable-rcon=true`
- Add the minecraft.service file to the directory: `/etc/systemd/system`
- Reload the daemon: `daemon-reload`
- Start the service: `sudo systemctl start minecraft`
- Enable service to start after rebooting: `sudo systemctl enable minecraft`
- Create script to backup the server file
4. Accessing the console
- `/opt/minecraft/tools/mcrcon/mcrcon -H 127.0.0.1 -P 25575 -p strong-password -t`