Skip to content

jamiemansfield/go-modmeta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-modmeta

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.

Supported platforms

  • Minecraft Forge (mcmod.info and mods.toml), identified as forge
  • Fabric (fabric.mod.json), identified as fabric
  • LiteLoader (litemod.json), identified as liteloader
  • Canary (Canary.inf), identified as canary

Usage

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")

Licence

This library is distributed under the BSD 2-Clause Licence, found in the LICENSE.txt file.

About

Go library for retrieving mod metadata from binaries.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages