This summer I picked up “Absolute Beginner’s Guide To Minecraft Mods Programming, second edition” by Rogers Cadenhead. I decided to blog about the process. This will serve as a project journal, but also as notes to myself so that I have a record of the process.
There are a few things I need to install on my MacBook (this is one of the first hurdles, because the author is using a PC):
Create a shell script named start-server.sh to launch the server. Bukkit’s wiki has directions for Mac OSX here.
cd /Users/rileyju/minecraftserver/
java -Xms1024M -Xmx1024M -jar spigotserver.jar
Before running the shell script, you must use chmod to allow the script to run
When you want to start the server, just drag start-server.sh into the terminal and press return
On first run, you will get the error “Failed to load eula.txt” because you need to agree to the eula. Find eula.txt and edit it to say eula=true
Open server.properties file. Details here
On the splash screen, click the Multiplayer button.
If you don’t see your server name (in my case “Riley Mod Server”), click Direct Connect. Source: you need to get the local IP address of your computer unless you are connecting to the server on the same machine your server is running on.
To connect on your own computer to a server ran on your computer, connect to localhost:25565
To get your IP address to connect to your server from another computer, go to the Command Prompt and enter ipconfig, then get the ipv4 address. Then connect to Your_ipv4_address:25565
On first run, I got an “outdated server” error. The Spigot server is Minecraft v1.8.7
Open the Minecraft Launcher. In Java Edition, choose the Installations tab. Click the New Installation button. Give it a name like ModTester. Change the version to match the server: release 1.8.7
RECENT POSTS