go-modmeta is a Go library for reading metadata on Minecraft mods contained by a jar file. The following data will be retrieved for each mod in a jar:
- The mod loader / system in use by the mod
- The ID, name, version, description, etc.
go-modmeta will search jars for mods from each supported mod system.
- Minecraft Forge (
mcmod.info
andmods.toml
), identified asforge
- Fabric (
fabric.mod.json
), identified asfabric
- LiteLoader (
litemod.json
), identified asliteloader
- Canary (
Canary.inf
), identified ascanary
import "github.com/jamiemansfield/go-modmeta/modmeta"
The most simple example is to fetch the available mod metadata from a jar file.
mods, err := modmeta.FindMetadata("example.jar")
This library is distributed under the BSD 2-Clause Licence, found in the LICENSE.txt file.