Minecraft Data Pack Generator
Start a data pack without fighting folder names and pack formats. Choose your version and namespace, write your first load and tick commands, and download a ZIP you can drop straight into a world's datapacks folder.
Data pack
Lowercase letters, numbers, _ - and . only
Functions
pack.mcmeta
What's in the ZIP
How to make a Minecraft data pack
- Pick your version and namespace. The namespace is your pack's own folder name inside
data/, such asmypack. It keeps your functions apart from Minecraft's and other packs'. - Write your first commands. Everything in
load.mcfunctionruns once when the world loads and after/reload. Everything intick.mcfunctionruns 20 times a second. Commands in function files have no leading slash. - Download the ZIP and put it in your world's
datapacksfolder: open the world's folder from the singleplayer list (Edit → Open World Folder), or click Data Packs when creating a new world. - Load it. Run
/reloador reopen the world, then check it with/datapack list. You should see your load message in chat.
Data pack folder names
Java 1.21 renamed the data pack folders from plural to singular. A pack with the wrong names loads without errors but its functions never run, which is the most common data pack problem.
| Java 1.21 – 26.3 | Java 1.20.6 and older |
|---|---|
data/<namespace>/function/ | data/<namespace>/functions/ |
data/minecraft/tags/function/load.json | data/minecraft/tags/functions/load.json |
recipe/, loot_table/, advancement/, predicate/ | recipes/, loot_tables/, advancements/, predicates/ |
tags/item/, tags/block/ | tags/items/, tags/blocks/ |
Data pack format numbers
| Java version | Data pack format |
|---|---|
| 26.3 | 121 |
| 26.2 | 107.1 |
| 26.1 – 26.1.2 | 101.1 |
| 1.21.11 | 94.1 |
| 1.21.9 – 1.21.10 | 88 |
| 1.21.7 – 1.21.8 | 81 |
| 1.21.6 | 80 |
| 1.21.5 | 71 |
| 1.21.4 | 61 |
| 1.21 – 1.21.1 | 48 |
| 1.20.5 – 1.20.6 | 41 |
| 1.20 – 1.20.1 | 15 |
Data packs and resource packs have used separate numbers since 1.20.3, so don't copy the number from a texture pack. From 1.21.9 the version range is written with min_format and max_format; minor formats such as 101.1 are written as [101, 1].
What to add next
- Custom recipes: JSON files in
recipe/. - Custom advancements: JSON files in
advancement/. Design the pop-up look with the achievement generator. - Builds placed by commands: the circle, shape, pixel art and map art generators all give you
.mcfunctionfiles to drop into yourfunctionfolder and run with/function mypack:name. - Commands to put in your functions: the command generator and give command generator (leave out the leading slash).
Frequently asked questions
How do I install a data pack?
Put the ZIP in your world's datapacks folder (open the world folder from the Saves list, or add it while creating the world), then run /reload or reopen the world. Check it with /datapack list.
Why are my functions not loading?
Since Java 1.21 the folders are singular: function, not functions, and tags/function. Packs for 1.20 and older use the plural names. The generator picks the right ones for your version.
What do load and tick functions do?
The load function runs once when the pack loads (on world start and /reload). The tick function runs 20 times a second, every game tick.
What is a namespace?
It is your pack's own folder name inside data/, such as mypack. It keeps your functions separate from Minecraft's and other packs. Use lowercase letters, numbers and underscores.