Wiki 9Minecraft Wiki 9Minecraft

DataPack Anvil Mod Wiki & Guide

Java EditionModGuides 4FAQ 20Related mods 48

A utility mod that integrates data pack functionality into the anvil interface, allowing players to apply and manage data-driven changes through standard gameplay.

DownloadDataPack Anvil Mod

Get the files on 9Minecraft

Contents (5)
  1. Overview
  2. Guides
  3. Frequently asked questions
  4. Gallery
  5. You May Also Like

Overview

DataPack Anvil is a foundational library mod developed by Sirttas, primarily used to support complex data-driven mechanics in mods such as The Graveyard and Elemental Craft. Unlike standard content mods, DataPack Anvil does not add new mobs, items, or biomes directly to the game. Instead, it provides a technical framework that allows other mods to store, load, and synchronize custom data via Minecraft's datapack system.

By leveraging this library, developers can create highly configurable mods where gameplay values, structure generation rules, and block behaviors are defined in JSON files within a datapack rather than being hardcoded. This allows players and server owners to easily customize mod behavior without needing to modify the mod's source code.

Guides

Step-by-step, in-game.

Frequently asked questions

How do I create a new data type for my datapack?
Use a Data Manager to define your custom data type by specifying its structure and how it should be stored. Data Managers handle serialization, file management, and reload logic automatically, so you only need to define what data you want to track.
Do I need to write code to use this mod or just datapacks?
You need to write a mod (using the DataPack Anvil library) to define Data Managers, but once set up, players interact with your mod purely through datapacks—no coding required on their end.
How do I sync data from the server to players' clients?
Data Managers automatically handle server-to-client synchronization when you reload the datapack or when players join. The mod broadcasts your custom data without you needing to write networking code.
What happens to my custom data when I reload the datapack?
Data Managers automatically detect datapack reloads and refresh your custom data from the files. Your data persists and updates without requiring a server restart.

See all 20 DataPack Anvil questions ›