Skip to content

3. Package Development

dewy edited this page Apr 29, 2021 · 4 revisions

MPM Package Development

Creating custom MPM packages is intended only to launch versions not supported in the main repository as a last resort. To install Forge mods, just use the mods/ folder in an environment.

MPM packages are tar.gz files which contain the following structure:

$PACKAGE_NAME-$PLATFORM/
├── package.json
├── $PACKAGE_NAME.jar
│
├── libraries/
├── assets/
    ├── indexes/
    │   └── $PACKAGE_NAME.json
    └── objects/

$PACKAGE_NAME is the name of the package you're developing. $PLATFORM is either linux, win or osx, because different platforms need different natives.

LWJGL2-based versions must include the natives extracted in the libraries/ directory, whereas LWJGL3-based versions can place Mojang-provided native jars in the libraries/ directory.

Examples

Clone this wiki locally