Step 1 – Installing Java and Screen
Java is included by default if you’re using a newer MacOS version. You can double check by entering this command in your Terminal:
java -version
If it’s not available, you may download a legacy Java version from the Apple website.
Step 2 – Installing Minecraft Server on Mac
To keep everything neat and organized, it’s best to dedicate a folder for your Minecraft server. Once created, download the Minecraft server setup from the official website. Upload it to the created directory. Then, open TextEdit and set the format to plain text (Format › Make Plain Text). Paste the following:
#!/bin/bash cd "$(dirname "$0")" exec java -Xms1024M -Xmx1024M -jar minecraft_server.jar nogui
Save this file as startmc.command in the same directory where the Minecraft server setup file resides. To make it work, execute permission will be needed. We can grant them with the help of Terminal located in Applications › Utilities section. Once opened, enter your dedicated Minecraft folder. For example:
cd Desktop/MinecraftServer
You can grant the required permission with the help of this command:
chmod a+x startmc.command
Step 3 – Running Minecraft Server
If all steps were followed correctly, you’ll be able start your Minecraft server by double clicking the startmc.command file. After that, a new Terminal windows will pop up.