Resource Config API

Resource Config API

Mod

Config API mainly for my Mods

Client and server LibraryManagement

5,865 downloads
3 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Title Header

This Config API is based on the NightConfig Library and is very basic. It doesn't have fancy Features, simply create Config Files and save your values in it.

It is downloadable on Curseforge and Modrinth.

This API is basically Simple Config API but renamed to fit my other Mods and with more Features and Datatypes.

Features:

  • Save different Datatypes
    • Primitive: Integer, Double, String, Boolean
    • Reference: List, ArrayList, LinkedList
  • Values and Categories can be commented
  • Values can be defined in Range
  • Custom Config Path
  • Designed for Multi-Loader Projects
  • Autocorrection of invalid or corrupt Config Values

Planned:

  • Support more Datatypes
  • Translatable Comments
    • will be defined through the lang file

For Developer:

Latest Version: 1.20-1.2.0

Available for:

  • Fabric 1.20 -> latest
  • Forge 1.20 -> latest (will eventually be dropped with 1.21)
  • NeoForge 1.20.4 -> latest

Note:

  • Float, Long, Short, Byte and Char can't be supported due to parsing incompatibilities.
  • Quilt will not get a dedicated version, use the Fabric Version instead.
Adding Resource Config API to your Project
    repositories {
        maven {
          name = "xStopho Mods"
          url = "https://raw.githubusercontent.com/Stein-N/resources/main/maven"
        }
    }

When you want to use this API in a Quilt Project u have to use the Fabric version.

    dependencies {
        implementation "xstopho.resource-config-api:resource-config-api-common:{major_minecraft_version}+{api_version}"
        implementation "xstopho.resource-config-api:resource-config-api-fabric:{major_minecraft_version}+{api_version}"
        implementation "xstopho.resource-config-api:resource-config-api-forge:{major_minecraft_version}+{api_version}"
        implementation "xstopho.resource-config-api:resource-config-api-neoforge:{major_minecraft_version}+{api_version}"
    }

Project members

xStopho

Member

Details

Licensed MIT
Published 5 months ago
Updated a month ago