minecraft: added guide to datapacks and mods

master
tiyn 2 weeks ago
parent 873ecd9f1b
commit df5ddbb689

@ -65,16 +65,20 @@ docker run --name minecraft \
This section addresses the usage of the minecraft-server container. This section addresses the usage of the minecraft-server container.
### Installation of Mods ### Installing Mods
Mods can be installed as described in the 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). [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. For this set the server type by using the `-e TYPE=<type>` flag.
the variable can be set to the URL of a jar file, a container path to a jar file or a container `<type>` is the API that is used as the core library.
path to a directory containing jar files. Most notably this value could be `FABRIC` or `FORGE`.
The following line shows an example that could be added to the [`rebuild.sh`](#rebuildsh) to After this the mods (as `.jar` files) can be placed in the `mods` directory of the
install some mods. [Docker](/wiki/docker.md) volume.
Afterwards run the [`rebuild.sh`](#rebuildsh) to restart the server with loaded mods.
```sh
-e MODS=https://www.example.com/mods/mod1.jar,/plugins/common,/plugins/special/mod2.jar #### 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.

@ -68,15 +68,19 @@ For the installation of server-side mods the process can vary slightly depending
[server host](#server). [server host](#server).
For the [itzgs minecraft server](/wiki/docker/itzg_-_minecraft-server.md) running on For the [itzgs minecraft server](/wiki/docker/itzg_-_minecraft-server.md) running on
[Docker](/wiki/docker.md) visit the [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 #### Installing Datapacks
The installation of datapacks is to be done for a specific world or a specific server. 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 This section will describe a process that works for both single-player worlds aswell as multiplayer
servers. 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. Then place the `.zip` archive containing the datapack inside the `datapacks` folder.
The resulting path is either `world/datapacks` for multiplayer servers like The resulting path is `saves/<world name>/datapacks` where `<world name>` is the name of the single
[itzgs minecraft server](/wiki/docker/itzg_-_minecraft-server.md) or `saves/<world name>/datapacks` player world.
where `<world name>` 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).

Loading…
Cancel
Save