MC ToolboxMC TOOLBOX

April 15, 2026

How to Create Custom Datapacks & Advancements in Minecraft 26.x (26.1/26.2)

Learn how to write custom Java datapacks, define JSON advancement triggers, and grant custom rewards to players.

Datapacks allow map makers and server admins to customize Minecraft mechanics without installing heavy server mods or forge launchers. You can add custom recipes, loot tables, functions, and custom achievement popups!

Datapack Folder Structure

my_custom_pack/
├── pack.mcmeta
└── data/
    └── my_namespace/
        ├── advancements/
        │   └── slay_dragon.json
        └── functions/
            └── reward.mcfunction

Defining the pack.mcmeta File

In 1.21, the pack format for datapacks updated. Ensure your pack.mcmeta specifies format 65+ (Minecraft 26.x) for Minecraft 26.x compatibility. Generate valid mcmeta files instantly with our pack.mcmeta Generator.

Datapack JSON file structure and advancement tree diagram
Screenshot from the matching MC Toolbox tool.

Advancement Triggers

Advancements trigger on specific player actions, such as minecraft:player_killed_entity, minecraft:inventory_changed, or minecraft:location. You can attach a function reward to grant items or play sounds when unlocked.

Build custom JSON advancement trees with custom icons using our Advancement Generator!

Gio Nui

Gio Nui

I'm an independent developer and long-time Minecraft creator. Since 2011, I've been focused on building high-performance, browser-based tools for the community.

More Guides