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.

Free · right folders and pack format for Java 1.14 to 26.3

Data pack

Lowercase letters, numbers, _ - and . only

Functions

pack.mcmeta

What's in the ZIP

How to make a Minecraft data pack

  1. Pick your version and namespace. The namespace is your pack's own folder name inside data/, such as mypack. It keeps your functions apart from Minecraft's and other packs'.
  2. Write your first commands. Everything in load.mcfunction runs once when the world loads and after /reload. Everything in tick.mcfunction runs 20 times a second. Commands in function files have no leading slash.
  3. Download the ZIP and put it in your world's datapacks folder: open the world's folder from the singleplayer list (Edit → Open World Folder), or click Data Packs when creating a new world.
  4. Load it. Run /reload or 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.3Java 1.20.6 and older
data/<namespace>/function/data/<namespace>/functions/
data/minecraft/tags/function/load.jsondata/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 versionData pack format
26.3121
26.2107.1
26.1 – 26.1.2101.1
1.21.1194.1
1.21.9 – 1.21.1088
1.21.7 – 1.21.881
1.21.680
1.21.571
1.21.461
1.21 – 1.21.148
1.20.5 – 1.20.641
1.20 – 1.20.115

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 .mcfunction files to drop into your function folder 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.