Command Reference
Minecraft /datapack Command
developerJava Only
Manages the server's loaded data packs, allowing creators to dynamically enable, disable, and order them.
Version Compatibility
Java Edition:1.21.4 (1.13+)
Command Syntax
Java Edition
/datapack enable <name> [first|last|before|after] | /datapack disable <name> | /datapack listArguments Explained
actionenable / disable / listRequiredSpecifies whether to load, unload, or list data packs.
nameData Pack IDThe file folder name or zip archive name of the datapack.
Practical Examples
/datapack listLists all available data packs and their load statuses.
/datapack enable "file/custom_mechanics" firstEnables the custom_mechanics pack and places it at the highest priority.
Important Notes
Allows server developers to hot-swap custom gameplay rules, item components, advancements, and world-generation tweaks.