2025-03-16 16:24:50 +08:00

852 B

ModAPI.meta

ModAPI.meta contains the API for registering metadata on mods easily.

Methods:

  • ModAPI.meta.title(title: String)
    • Sets the title of the mod. This is mandatory if any metadata is to be displayed. Character limit of 16.
  • ModAPI.meta.credits(credits: String)
    • Sets the credits of the mod. Character limit of 36.
  • ModAPI.meta.description(desc: String)
    • Sets the description of the mod. Character limit of 160.
  • ModAPI.meta.icon(iconURL: String)
    • Sets the icon of the mod.
    • It can be extremely low res, it will not appear blurry.
  • ModAPI.meta.version(versionCode: String)
    • Sets the version of the mod. Appended after the title.
  • ModAPI.meta.config(configFn: Function)
    • Once the client is fully loaded, creates a button in the mod manager GUI that runs the specified function when pressed.