Changes

Jump to navigation Jump to search
Created page with "{{Project |name = Minecraft |status = beta |category = gaming |description = Severs for vanilla or modded minecraft |author = Steffen |maintainer = Steffe..."
{{Project
|name = Minecraft
|status = beta
|category = gaming
|description = Severs for vanilla or modded minecraft
|author = Steffen
|maintainer = Steffen
|location = ravenholm
|implements = Q85851440
}}
== Setting up a server ==

=== Building the image ===

==== Step 1: Add your preset to the Makeconf file ====

<nowiki>
.PHONY: <packname>
<packname>: MINECRAFT=<minecraft version>
<packname>: FABRIC=<fabric version>
<packname>: LAUNCHER=<launcher/installer version>
<packname>: build
</nowiki>

If there is already a preset matching your minecraft fabric version combination consider using that.

==== Build your preset to an image ====

This will build an image with the name '''zombi/fabric-modbase:<minecraft version>-<fabric version>'''.

<nowiki>
make <packname>
</nowiki>

=== Setting up the Container ===

==== 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/fabric-modbase:<minecraft version>-<fabric 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/fabric-modbase:<minecraft version>-<fabric version>
</nowiki>
17

edits

Navigation menu