Datapack Codex

A comprehensive, all-versions reference for building Minecraft Java Edition data packs โ€” every registry, every schema field, with copy-pasteable examples, workarounds, best practices and community tricks.

๐Ÿ“Œ How versions are handled

Every page is written against modern 1.21+ conventions (singular folder names such as function/, recipe/, loot_table/). Where older versions differ, you'll see a โš  version differences box. The full number map lives on the pack_format history page โ€” data pack formats span 4 (1.13) through 107.1 (26.2).

New here?

If you've never made a data pack, start with Getting started โ€” you'll have a working pack loaded in about ten minutes. Then read Pack structure to understand the folder layout and pack.mcmeta. After that, dip into whichever system you need.

Browse the reference

Logic & data

Content packs

World generation

Go further

About this reference

The Codex consolidates and cross-checks primary documentation (the Minecraft Wiki, Misode's generators and mcmeta) together with community references, then re-writes them as task-focused guides. Version-sensitive facts are grounded in those sources. It is a fan-made educational resource and is not affiliated with Mojang Studios or Microsoft.