DataPack Anvil
by sirttas
With DataPack Anvil installed, modders can build mods whose content is driven by datapacks, using a shared library of data managers and serializable block predicates.
What it does
DataPack Anvil is a library for creating mods that read their content from datapacks instead of hard-coded registries. It provides a data manager that loads and reloads datapack entries, and serializable block predicates that store conditions on blocks as custom data in a datapack. Other mods that depend on it, such as Elemental Craft, use these tools to expose their content to datapack authors.
The library is built for Forge and NeoForge, with files published for game versions 1.16.5 – 1.21.1. Because it runs on client and server, the server and every player need it when a dependent mod uses it. The code is licensed under the GNU Lesser General Public License v2.1 only and is open source, with a source repository, issue tracker and wiki available.
Key features
Data manager
A manager loads datapack files for a mod and reloads them, so content can be changed without rebuilding the mod.
Serializable block predicates
Conditions on blocks can be written as data and saved or read back, letting datapacks describe block matching rules.
Custom datapack data
Mods can define their own datapack data formats on top of the library's tools.
Shared base for dependents
Mods built on it reuse the same loading and serialization code instead of each writing its own.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Required by 1 mod
Use cases
Who it’s for: The library suits mod developers who want datapack-driven content, and players who install a mod that requires it. Modpack builders need it only when a dependent mod lists it.
How it compares
AddonsLib is a library for Fabric, Forge and NeoForge that runs on client and server, but its license is All rights reserved, so it is not open source. AlinLib supports Fabric, Forge, NeoForge and Quilt and is client-side only, under the GNU General Public License v3.0 or later. ItemOverlayState is a NeoForge-only client-side mod for 1.21.1 under the GNU Lesser General Public License v3.0 or later.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| DataPack Anvil | Forge and NeoForge | 1.16.5 – 1.21.1 | Client and server | 2025-12-26 |
| AddonsLib | Fabric, Forge and NeoForge | 1.16.5 – 26.2 | Client and server | 2026-07-14 |
| AlinLib | Fabric, Forge, NeoForge and Quilt | 1.20 – 26.3 | Client-side only | 2026-09-27 |
| ItemOverlayState | NeoForge | 1.21.1 | Client-side only | 2025-11-07 |
Questions
Does Elemental Craft need DataPack Anvil?
Does DataPack Anvil have to be installed on the server?
Which loaders does DataPack Anvil support?
Is the source code available?
In the catalog
DataPack Anvil is one of 3,514 Library mods on ModsFinder, and one of 1,576 Library mods for Forge. 32,366 mods support Minecraft 1.21.1.
More from sirttas
Similar mods
What the author says
Take a look at the wiki for more info on how this it works.
Official listing
- Modrinth page
- modrinth.com/mod/dpanvil
- Owner
- sirttas
- Published
- 2022-05-29
- Updated on Modrinth
- 2025-12-26
- Facts verified
- 2026-10-15
