A place for me to keep my scripts relating to my Minecraft server
About once a year or so, my friends and I get an itch to play some Minecraft together. This repository serves as a script dump for the server.
service-check
: An executable built from my service-check
Github Project. It is used to broadcast whether or not Minecraft is running over port 7777. You can configure what port this service check runs on by changing line 184 in userdata.sh
eula.txt
: Accepts Mojang's end user license agreement.
server.properties
: The properties I've set for my friends' and I's Minecraft server. Check out this Minecraft Wiki on server.properties
for more information on what each argument changes.
README.md
: This :)
userdata.sh
: IT DOES EVERYTHING. It creates the minecraft
service, player_check
service, assigns appropriate permissions, and more! It's pretty well commented, so check it out.
If you have an AWS account, you can follow the steps below to get this working for you:
- Sign into the AWS console and navigate to EC2
- Click
Launch Instances
in the top left corner of your screen - Configure your EC2 instance to your liking (make sure it's in a public subnet and has a public IP address or you'll be unable to access your Minecraft server!)
- On
Step 3: Configure Instance
, once you're done configuring everything to your liking, at the bottom you'll see a field forUser data
. Select theAs file
radio button, and uploaduserdata.sh
. - Configure the rest of your server to your liking with regards to storage, tags, and security groups.
- Launch your server and enjoy! :)
Alternatively, if you have an AWS account and want the power to control your Minecraft server from the comfort of your very own Discord server, checkout my discord-ec2-manager
project.
If you don't have an AWS account, you can run the server locally via Docker & Docker Compose
- Navigate to where you cloned this repository
- Open
Docker Desktop
and ensure that the docker engine is running on your computer - Open Powershell and type
docker compose up -d
- Open Minecraft and your server should be up on port
25565
!