Difference between revisions of "Minecraft"

From Zombi Wiki
Jump to navigation Jump to search
m
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
|name        = Minecraft
 
|name        = Minecraft
 
|status      = beta
 
|status      = beta
 +
|category    = gaming
 
|description = Severs for vanilla or modded minecraft
 
|description = Severs for vanilla or modded minecraft
 
|author      = Lod
 
|author      = Lod
 
|maintainer  = Lod
 
|maintainer  = Lod
 
|maintainer2 = Madmaurice
 
|maintainer2 = Madmaurice
|location    = ravenholme
+
|location    = ravenholm
 +
|implements  = Q85851440
 
}}
 
}}
=== Setting up a server ===
+
== Setting up a server ==
Add your preset to the Makeconfig-file as follows:<br>
+
 
 +
=== Building the image ===
 +
 
 +
==== Step 1: Add your preset to the Makeconf file ====
  
 
  <nowiki>
 
  <nowiki>
Line 18: Line 23:
 
</nowiki>
 
</nowiki>
  
Building the image:<br>
+
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 name '''zombi/forge-modbase:<minecraft version>-<forge version>'''.
  
 
  <nowiki>
 
  <nowiki>
 
make <packname>
 
make <packname>
 
</nowiki>
 
</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>
+
=== Setting up the Container ===
Running the Container:<br>
+
 
# Create data directory
+
==== Step 1: Create data directory ====
 +
 
 +
This will be the destination for the permanent date of the minecraft instance including the world and settings.
 +
 
 
  <nowiki>
 
  <nowiki>
 
mkdir /data/minecraft/<packname>
 
mkdir /data/minecraft/<packname>
 
</nowiki>
 
</nowiki>
# Run once
+
 
 +
==== Step 2: Run once ====
 +
 
 +
This will add the files to the data directory we created just now.
 +
 
 
  <nowiki>
 
  <nowiki>
 
docker run -ti --rm -v /data/minecraft/<packname>:/minecraft zombi/forge-modbase:<minecraft version>-<forge version>
 
docker run -ti --rm -v /data/minecraft/<packname>:/minecraft zombi/forge-modbase:<minecraft version>-<forge version>
 
</nowiki>
 
</nowiki>
# Add mod pack to data directory
+
 
 +
==== Step 3: Add mod pack to data directory ====
 +
 
 +
Move your mod pack into the data directory.
 +
 
 
  <nowiki>
 
  <nowiki>
 
cp modpackdata /data/minecraft/<packname>/mods
 
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>
 
</nowiki>

Latest revision as of 18:04, 24 April 2020

           
Minecraft

status: beta

Description Severs for vanilla or modded minecraft
Category  gaming
Author  User:Lod
Maintainer  User:Lod
Maintainer  User:Madmaurice
Location  ravenholm
Implements  Q85851440 (wikidata)

Setting up a server

Building the image

Step 1: Add your preset to the Makeconf file

.PHONY: <packname>
<packname>: MINECRAFT=<minecraft version>
<packname>: FORGE=<forge version>
<packname>: build

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 name zombi/forge-modbase:<minecraft version>-<forge version>.

make <packname>

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.

mkdir /data/minecraft/<packname>

Step 2: Run once

This will add the files to the data directory we created just now.

docker run -ti --rm -v /data/minecraft/<packname>:/minecraft zombi/forge-modbase:<minecraft version>-<forge version>

Step 3: Add mod pack to data directory

Move your mod pack into the data directory.

cp modpackdata /data/minecraft/<packname>/mods

Step 4: Create the container

Create a permanent container.

docker run -tid --name <name of your minecraft server> -v /data/minecraft/<packname>:/minecraft zombi/forge-modbase:<minecraft version>-<forge version>