DataPack Anvil

DataPack Anvil

13M Downloads

Modrinth Discord build Quality Gate Status

DataPack Anvil is a library mod used to facilitate creation of datapack driven mods (mods storing custom data in datapack). It includs things like:

Take a look at the wiki for more info on how it works.

DataPack anvil is hosted on ModMaven add this to your build.gradle:

repositories {
    maven { url 'https://modmaven.dev/' }
}

dependencies {
    compileOnly fg.deobf("sirttas.dpanvil:DPAnvil:${dpanvil_version}:api")
    runtimeOnly fg.deobf("sirttas.dpanvil:DPAnvil:${dpanvil_version}")
}

Also I recommend adding dependency in your mod.toml like so:

[[dependencies.mymod]]
    modId="dpanvil"
    mandatory=true
    versionRange="[${current},${next_minor})" # example "[1.17.1-2.0.0,1.17.1-2.1.0)"
    ordering="AFTER"
    side="BOTH"

ko-fi discord