Craft a datapack  New  
 Prerequisites
Section titled “Prerequisites”- Knowledge about Datapacks
- Be sure that what you want to achieve is possible with Datapacks. Datapack VS mods
- A little knowledge about JSON
- A text editor like notepad or a code editor like VSCode
- 
Create a new folder with the name of your datapack and open it in your editor 
- 
In the root folder of your datapack create a 
Section titled “pack.mcmeta”pack.mcmetaThe pack.mcmetadescribes information about your datapack// pack.mcmeta{"pack": {"description": "This is the description of your datapack","pack_format": 8,"supported_formats": [8, 9]}}The descriptionfield can use Formatting codes.The pack_formatfield is the version of the datapack format. This field is related to the Minecraft Version you want your datapack to be compatible with. Check out which Datapack versions you should set.New Minecraft Versions may introduce new features to datapacks by bumping the Datapack version. Starting from 1.20.2, if your datapack uses functionalities that haven’t been changed in the version bump, it’s possible to set thesupported_formatsfield to make your datapack compatible with new Minecraft Versions without changing the code nor thepack_formatfield. Set the first number of thesupported_formatsfield to the lowest Datapack version you support, and the second number to the highest Datapack version you support.If your datapack uses functionalities that may have been affected by the version bump, you have to bump you pack_formatfield and also update the code according to the chages made.
Section titled “pack.png”pack.pngThe pack.pngis the icon that will be displayed in the datapack selection menu. It’s optional and it has to be a square
- 
Create a datafolderThis folder will contain all the code of your datapack organized in namespaces For example, if you want to change some Minecraft features, create a minecraftfolder, and the code in this folder will overwrite the corrisponding file inside of Minecraft Vanilla.If you want to add new features, create a new folder, and the files in this folder will be added to the base game. So far your datapack should look something like this: - Directory<datapack>- pack.mcmeta
- pack.png
- Directorydata- Directoryminecraft- …
 
- Directory<namespace>- …
 
- Directory<namespace2>- …
 
 
 
 
- 
Add features to your datapack (view all) 
- 
Done 
Examples
Section titled “Examples”Here’s some code examples of datapacks I’ve made:
Generators
Section titled “Generators”Since Datapacks are static files, they can also be generated with online tools like Crafting or Misode.
Keep in mind that sometimes these generators won’t have the latest version right away or a niche snapshot, since the datapack syntax can change a lot with new Versions.
When aiming for a more complex datapack, maybe a hybrid or complete manual approach is better.
