Skip to content

A Fabric mod integrating the Configurate library with the Fabric ecosystem

License

Notifications You must be signed in to change notification settings

zml2008/confabricate

Repository files navigation

Confabricate

javadoc | build status | CurseForge page

A mod that provides Configurate's core, gson and hocon serializers, and useful utilities for a Fabric environment.

Fabric-specific features

TypeSerializers for:

  • ResourceLocations
  • Any item stored in a Registry
  • Component (as json)
  • ItemStacks
  • tags (as HolderSet), both datapack-defined and defined in the config, currently for blocks, items, entity types, and fluids

NBTNodeAdapter

Translates back and forth between Configurate nodes and Minecraft's own NBT Tags

DataFixerUpper integration

Thanks to @i509VCB for providing an initial implementation of DynamicOps

  • DynamicOps implementation for ConfigurationNodes in ConfigurateOps
  • Basic integration between ConfigurationTransformations and DataFixers
  • Support for accessing Codecs as TypeSerializers (and vice versa!)

Configuration per-mod

  • Utility methods in Confabricate to get a HOCON-format configuration for a mod
  • Common watch service and methods to get an automatically reloading HOCON-format configuration for a mod.

How to use

Version compatibility

Minecraft Confabricate Configurate
1.15 1.1+3.7 3.7
1.16 + 1.16.1 1.2+3.7 3.7
1.16.2 1.3+3.7.1 3.7.1
1.16.2-1.16.5 2.1.0 4.1.1
1.17 2.2.0-SNAPSHOT 4.1.1
1.18.2 3.0.0-SNAPSHOT 4.1.2

It is recommended to use this project in jar-in-jar packaging.

Releases of Confabricate are on Maven Central, as are releases of Configurate. Snapshots of Confabricate and Configurate are published on Sonatype OSS.

Additionally, both releases and snapshots of Confabricate are published on the stellardrift repository.

repositories {
    mavenCentral()
    // Snapshots only
    maven(url = "https://repo.stellardrift.ca/repository/snapshots/") {
        name = "stellardriftSnapshots"
        mavenContent { snapshotsOnly() }
    }
}

dependencies {
    modImplementation(include("ca.stellardrift:confabricate:3.0.0-SNAPSHOT")!!)
}

About

A Fabric mod integrating the Configurate library with the Fabric ecosystem

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages