1
0
mirror of https://github.com/tiyn/wiki.git synced 2026-02-22 10:24:47 +01:00

minecraft: added guide to datapacks and mods

This commit is contained in:
2025-01-06 02:49:54 +01:00
parent 873ecd9f1b
commit df5ddbb689
2 changed files with 22 additions and 14 deletions

View File

@@ -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.
For this set the server type by using the `-e TYPE=<type>` flag.
`<type>` 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.
```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.