Changes

Jump to navigation Jump to search
575 bytes added ,  18:51, 26 March 2020
Formatting
|maintainer = Lod
|maintainer2 = Madmaurice
|location = ravenholmeravenholm
}}
=== Setting up a server == === Building the image === ==== Step 1: Add your preset to the Makeconfig-Makeconf file as follows:<br>====
<nowiki>
</nowiki>
Building If there is already a preset matching your minecraft forge version combination consider using that. ==== Build your preset to an image ==== This will build an image with the imagename '''zombi/forge-modbase:<brminecraft version>-<forge version>'''.
<nowiki>
make <packname>
</nowiki>
The image will be named zombi/forge-modbase:<minecraft version>-<forge version><br>If there is already a preset matching your minecraft forge version combination consider using that.<br><br>Running === Setting up the Container:<br>=== ; ==== Step 1. : Create data directory==== This will be the destination for the permanent date of the minecraft instance including the world and settings. 
<nowiki>
mkdir /data/minecraft/<packname>
</nowiki>
; ==== Step 2. : Run once==== This will add the files to the data directory we created just now. 
<nowiki>
docker run -ti --rm -v /data/minecraft/<packname>:/minecraft zombi/forge-modbase:<minecraft version>-<forge version>
</nowiki>
; ==== Step 3. : Add mod pack to data directory==== Move your mod pack into the data directory. 
<nowiki>
cp modpackdata /data/minecraft/<packname>/mods
</nowiki>
 
==== Step 4: Create the container ====
 
Create a permanent container.
 
<nowiki>
docker run -tid --name <name of your minecraft server> -v /data/minecraft/<packname>:/minecraft zombi/forge-modbase:<minecraft version>-<forge version>
</nowiki>

Navigation menu