๐ ๏ธ VanillaDatapackFramework [VDF]
Modern and lightweight template for Minecraft 1.21+ data packs.
This framework provides a clean and highly organized starting point for your Minecraft development.
๐ฎ Version Compatibility
Upgrading your data pack for newer Minecraft versions is incredibly simpleโjust update the pack_format number inside your pack.mcmeta file.
| Pack Format | Minecraft Version |
|---|---|
48 |
Minecraft 1.21 - 1.21.1 |
57 |
Minecraft 1.21.2 - 1.21.3 |
61 |
Minecraft 1.21.4 |
71 |
Minecraft 1.21.5 |
80 |
Minecraft 1.21.6 |
81 |
Minecraft 1.21.7 - 1.21.8 |
88 |
Minecraft 1.21.9 - 1.21.10 |
94 |
Minecraft 1.21.11 |
101 |
Minecraft 26.1-26.1.2 |
107 |
Minecraft 26.2 |
Need a newer version? Always check the official Minecraft Wiki Pack Format.
๐ Project Structure Explained
Here is the complete layout of the framework directory. Use this mapping to keep all your namespaces, functions, and triggers perfectly sorted:
๐ฆ VanillaDatapackFramework
โโโ ๐ data
โ โโโ ๐ minecraft
โ โ โโโ ๐ tags
โ โ โโโ ๐ function
โ โ โโโ ๐ load.json # Minecraft hook: runs once when the server/world starts
โ โ โโโ ๐ tick.json # Minecraft hook: executes constantly (20 times per second)
โ โโโ ๐ vdf
โ โโโ ๐ advancement
โ โ โโโ ๐ consume_custom_item.json # Lightweight player interaction/item trigger
โ โโโ ๐ function
โ โ โโโ ๐ give_starter_kit.mcfunction # Script to grant items using new data components
โ โ โโโ ๐ load.mcfunction # Initialization script (runs once on startup/reload)
โ โ โโโ ๐ tick.mcfunction # Constant loop script running 20 times per second
โ โโโ ๐ predicate
โ โโโ ๐ is_sneaking_and_holding_item.json # Boolean state check condition
โโโ ๐ pack.mcmeta # Core metadata and pack format version
โโโ ๐ผ๏ธ pack.png # Official 64x64 or 128x128 icon (PNG format only)
โโโ ๐ README.md # Project documentation and guidelines
