datapack
A datapack is a collection of data-driven resources that modify or extend Minecraft gameplay without requiring server mods. It uses Minecraft’s built-in datapack system to change game behavior by supplying data files rather than code, enabling players to customize rules, recipes, loot, advancements, and more.
A datapack is distributed as a folder or zip containing a pack.mcmeta file and a data/ directory.
Datapacks are loaded when a world is loaded or via the /reload command. Their data is merged
- Functions: files with .mcfunction that execute commands, often triggered by tags or events.
- Recipes and loot tables: define crafting recipes and item drops.
- Advancements and tags: add new achievements and categorize blocks or items.
- World generation data: structures and features defined under worldgen for custom generation behavior.
Datapacks provide a way to customize Minecraft through data files, are version-dependent, and can be shared