Datapack
Help about datapacks
A datapack is a folder (or Zip archive) containing Json files that will be parsed by Minecraft and mods to configure various gameplay elements (recipes, tags, advancements, worldgen etc...)
This wiki covers only the basics, that you need to make custom machines and recipes, for more detailed information about datapacks see the vanilla wiki.
How to make a datapack
Create a new folder, name it as you want, there are no restrictions on the name of that folder.
Inside that folder create a new folder named
data
Next to the
data
folder create a new text file named exactlypack.mcmeta
(the .mcmeta is the file extension, be sure that your file isn't namedpack.mcmeta.txt
Open the
pack.mcmeta
file with the text editor of your choice and paste the following :
That's it, your folder is now a datapack.
How to load your datapack
The vanilla way
This method won't work if you want to publish your modpack on Curseforge, as it require the world to be generated first.
In vanilla datapacks must be placed in the datapacks
folder, which can be found in the world
folder.
Singleplayer :
<instance>/saves/<save_name>/datapacks/<datapack_folder>
Server :
<instance>/<world_name>/datapacks/<datapack_folder>
If you're playing on a server you don't need to install datapacks in your game (they will be ignored anyway).
The datapacks installed on the server are synched automatically when you connect.
Using Open Loader
Install Open Loader like any other mods.
Place your datapack folder here :
<instance>/config/openloader/data/<datapack_folder>
Using KubeJS
If you already have KubeJS installed (don't install it only for loading datapacks).
The <instance>/kubejs/data
folder is already a datapack, any json files here will be loaded as they would be in a datapack.
You don't need any pack.mcmeta
file.
Last updated