-
Notifications
You must be signed in to change notification settings - Fork 9
Creating a Datapack and Recipe
Ted Senft edited this page Apr 8, 2021
·
2 revisions
Datapacks are Minecraft's way to add and remove data and features from the game while it's running. You can find the wiki page here if you want more information, but this page will go over the basics.
- Create a new folder inside your world save folder, under
datapacks
. You can name it anything, and it will show up in MC that way. The rest of the steps will usemydata
as a placeholder. - Under the
mydata
folder, create apack.mcmeta
file (named exactly that) and insert the text below. - Create a
data
folder undermydata
. - Create a
NAMESPACE
folder underdata
. ReplaceNAMESPACE
with your mod ID or something unique (likecclaustrophia
) as this will become the recipe's namespace. - Create a
recipes
folder undermydata
.
The file structure should look like this when you're done:
(From Minecraft Wiki)
{
"pack": {
"pack_format": 6,
"description": "The default data for Minecraft"
}
}
Once you have a basic datapack structure, you can now follow the recipe specification to add any recipes you like (not just Compact Crafting recipes, either!). For that, go to the Recipe Specification page. In short, create a new file called myrecipe.json
(name it something unique) and place it under recipes
in the pack structure above.