From df5ddbb6898743a20da5c178cc5e85107ed2f43d Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 6 Jan 2025 02:49:54 +0100 Subject: [PATCH] minecraft: added guide to datapacks and mods --- wiki/docker/itzg_-_minecraft-server.md | 24 ++++++++++++++---------- wiki/games/minecraft.md | 14 +++++++++----- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/wiki/docker/itzg_-_minecraft-server.md b/wiki/docker/itzg_-_minecraft-server.md index 37356ea..06d476f 100755 --- a/wiki/docker/itzg_-_minecraft-server.md +++ b/wiki/docker/itzg_-_minecraft-server.md @@ -65,16 +65,20 @@ docker run --name minecraft \ This section addresses the usage of the minecraft-server container. -### Installation of Mods +### Installing Mods Mods can be installed as described in the [corresponding article of the official documentation](https://github.com/itzg/docker-minecraft-server/blob/master/docs/mods-and-plugins/index.md). -Especially the `MODS` variable is noted. -the variable can be set to the URL of a jar file, a container path to a jar file or a container -path to a directory containing jar files. -The following line shows an example that could be added to the [`rebuild.sh`](#rebuildsh) to -install some mods. - -```sh --e MODS=https://www.example.com/mods/mod1.jar,/plugins/common,/plugins/special/mod2.jar -``` +For this set the server type by using the `-e TYPE=` flag. +`` is the API that is used as the core library. +Most notably this value could be `FABRIC` or `FORGE`. +After this the mods (as `.jar` files) can be placed in the `mods` directory of the +[Docker](/wiki/docker.md) volume. +Afterwards run the [`rebuild.sh`](#rebuildsh) to restart the server with loaded mods. + +#### Installing Datapacks + +The installation of datapacks is done similar to the described process in the +[corresponding section of the minecraft entry](/wiki/games/minecraft.md#installing-datapacks). +The only difference is the path to place the `.zip` datapack files in which is `world/datapacks` in +case of this [Docker](/wiki/docker.md) image. diff --git a/wiki/games/minecraft.md b/wiki/games/minecraft.md index bdd3b97..86d366f 100644 --- a/wiki/games/minecraft.md +++ b/wiki/games/minecraft.md @@ -68,15 +68,19 @@ For the installation of server-side mods the process can vary slightly depending [server host](#server). For the [itzgs minecraft server](/wiki/docker/itzg_-_minecraft-server.md) running on [Docker](/wiki/docker.md) visit the -[mod section of that entry](/wiki/docker/itzg_-_minecraft-server.md#installation-of-mods). +[mod section of that entry](/wiki/docker/itzg_-_minecraft-server.md#installing-mods). #### Installing Datapacks The installation of datapacks is to be done for a specific world or a specific server. This section will describe a process that works for both single-player worlds aswell as multiplayer servers. -First navigate to minecrafts folder that corresponds to the world you want to add the datapack to. +First the installation of datapacks on single player worlds will the addressed. +Navigate to minecrafts folder that corresponds to the world you want to add the datapack to. Then place the `.zip` archive containing the datapack inside the `datapacks` folder. -The resulting path is either `world/datapacks` for multiplayer servers like -[itzgs minecraft server](/wiki/docker/itzg_-_minecraft-server.md) or `saves//datapacks` -where `` is the name of the single player world. +The resulting path is `saves//datapacks` where `` is the name of the single +player world. +For the installation of datapacks on servers please navigate to the entry of the server since there +can be differences. +Most notably itzgs minecraft server is mentioned here which features a +[section regarding datapacks](/wiki/docker/itzg_-_minecraft-server.md#installing-datapacks).