I recently migrated a craftbukkit minecraft server off an ubuntu server to a newly built CentOS 6 server. Then, some of my players asked for Twilight Forest and Mine Little Ponies plugins. Forge does not have a bukkit-compatible plugin yet, so I need a new server, with Forge to run them.
Create a new directory set for the new world on your server, something like /minecraft/forge/server.
$ mkdir /minecraft/forge/server
Download and Install Server Files
Download Minecraft Server Java Archive (jar)
Download minecraft_server.jar from the bottom of the minecraft.net downloads page. Double-check to make sure you have minecraft_server.jar rather than just minecraft.jar. As the minecraft downloads page states, you need to have java already set up. I will need to write another blog on that later, as I already did that to make my other minecraft world run.
Find the minecraft_server.jar in your Downloads folder and then unzip it to your /minecraft/forge directory. Using terminal, it will look something like this:
(-d lets you specify the directory where the unzipped contents go)
$ cd /minecraft/Downloads $ ls minecraft.jar minecraft_server.jar superjamie-minecraft-init-script-844004c $ unzip minecraft_server.jar -d /minecraft/forge/server
Unzip minecraft_server jar using
$ unzip minecraft_server.jar
Download Minecraft Forge
I need Minecraft Forge to run Twilight Forest. It needs to be installed on both the server and the client. Get the most recent version of Minecraft Forge’s universal file at Github. According to Forge’s Installation/Universal start page at the time of this post, Risugami’s ModLoader is not recommended to be installed with Forge (it used to be important to install with Forge, but Forge built in a replacement). The download link leads to an adfly page, which can make downloads very confusing. Don’t click on the ad – it will say something very convincing like “Your download is ready.” Ignore it! Click the barely noticeable “Skip Ad” button on the top right of the page…if it isn’t there right away you may need to wait 5 seconds. Then, the real download will pop up for you.
Install Minecraft Forge
Unzip forge contents into the minecraft_server.jar directory.
$ cd /minecraft/Downloads $ ls minecraftforge-universal-18.104.22.1687.zip minecraft.jar minecraft_server.jar superjamie-minecraft-init-script-844004c $ unzip minecraftforge-universal-22.214.171.1247.zip -d /minecraft/forge/server
Replace all files that are similarly named when your computer prompts you to resolve conflicts.
According to my husband, you only need to rename the folder to minecraft_server.jar (or anyname.jar), and it will run just fine. That didn’t work for me, so I used my Macbook to zip the files together and then copied the files over to my server. You can try to use $ zip -rv minecraft_server.zip minecraft_server.jar/*
Run your Forge server
It is important to run your server before trying to add any mods. With the current version, it should say 2 mods loaded. When you run it the first time, it will download several new files, and add folders and config files to your minecraft/forge/server directory. One of the folders it creates is the mods folder, which is where you will put your mod zip files.
Change permissions (unless you installed as the minecraft user):
$ sudo chown -R user.group /minecraft/forge (-R makes it recursive, to affect every file within the directories)
You can verify this change:
$ ls -l
-rw-rw-r– 1 minecraft minecraft 30 Oct 15 00:53 ops.txt
-rw-rw-r– 1 minecraft minecraft 8073 Oct 15 22:09 server.log
-rw-rw-r– 1 minecraft minecraft 509 Oct 15 00:11 server.prope
Make it executable for all users and groups:
$ sudo chmod a+x -R /minecraft/forge
You can verify this change as well:
$ ls -l
-rwxrwxr-x 1 minecraft minecraft 30 Oct 15 00:53 ops.txt
-rwxrwxr-x 1 minecraft minecraft 8073 Oct 15 22:09 server.log
-rwxrwxr-x 1 minecraft minecraft 509 Oct 15 00:11 server.properties
To run the server, you can use this command:
$ java -jar forge_server.jar nogui
Download Twilight Forest
I found a link to the download of Twilight Forest on this minecraft forum page. The download link leads to an adfly page, which can make downloads very confusing. Don’t click on the ad – it will say something very convincing like “Your download is ready.” Ignore it! Click the barely noticable “Skip Ad” button on the top right of the page…if it isn’t there right away you may need to wait 5 seconds. Then, the real download will pop up for you.
Install Twilight Forest
Put the zipped file in the minecraft.jar in the mods folder. Do not unzip it. The mods folder is created by forge the first time you run the server, and it is parallel to the minecraft_server.jar file and server.log, server.properties, white-list.txt, etc.
Mac Client Installation
Then, follow similar steps on the client to install forge first and then twilight mod.
1) If you need a fresh minecraft.jar, grab it from minecraft.net
- Make a backup copy of your current minecraft.jar (on a mac it is in User>Library>ApplicationSupport>minecraft>bin). Copy and paste it, or rename it to something else.
- Put the new minecraft.jar file in User>Library>ApplicationSupport>minecraft>bin
- Unzip the minecraft.jar file.
2) Grab the same forge-universal.zip from Github’s Forge page.
3) Unzip the forge-universal.zip and copy and paste all the contents into the same location as the unzipped minecraft.jar files. Replace all files when prompted.
4) Run your client to add forge files and folders.
5) Download Twilight Forest zip file from Twilight Forest’s page.
6) Copy the Twilight forest zip file to your mods folder (parallel to your bin folder, not parallel to minecraft.jar).
Minecraft Wiki on installing mods.
Reading up on Mods and Plugins
Usually, “mod” refers to a client-side game modification, and plugin refers to a server-side modification, but mod can be used for both terms.
List of mods on Minecraft Wiki.
I wanted to try Kovacic’s ModPack, because it contains Forge and Twilight Forest and other useful things (AudioMod, Modloader) together. However, I could only find a Mac installer and a Windows installer for Kovacic’s Mod pack. For Windows there is a beta for SMP (server multiplayer).
And this is todo later:
Update Jamie’s script to run this world and make backups. Script can be found here: http://linuxaleph.blogspot.com/2012/04/starting-minecraft-server-on-system.html