Manage, Create, and List Data Packs
The /datapack command lets you control which data packs are active in your Minecraft Java Edition world. You can turn packs on or off, check which ones are installed, change their loading order, or create a brand new pack directly in the game.
Players and server operators use this command to test custom features, fix conflicts between different packs by reordering them, or quickly turn off a pack without restarting the world.
/datapack create <id> <description>/datapack disable <name>/datapack enable <name>/datapack enable <name> after <existing>/datapack enable <name> before <existing>/datapack enable <name> first/datapack enable <name> last/datapack list/datapack list available/datapack list enabled/datapack list/datapack enable <name>/datapack disable <name>/datapack enable <name> first/datapack enable <name> last/datapack enable <name> before <existing>/datapack enable <name> after <existing>/datapack create <id> <description>| Argument | Type | What it means |
|---|---|---|
<id> | text | A word or piece of text used as the identifier when creating a new data pack. |
<description> | text component | A JSON or SNBT text component that describes the new data pack, such as {"text":"Hello","color":"gold"}. |
<name> | text | A word or piece of text that specifies the name of the data pack you want to enable or disable. |
<existing> | text | A word or piece of text that matches the name of an already enabled data pack to help you set the loading order. |
/datapack listLists all available and currently enabled data packs in your world.
/datapack list enabledDisplays only the data packs that are currently turned on.
/datapack list availableDisplays only the data packs that are installed but currently turned off.
/datapack enable custom_lootTurns on the data pack named custom_loot.
/datapack disable hard_mobsTurns off the data pack named hard_mobs.
/datapack enable base_rules firstEnables the data pack named base_rules and sets it to load before all other packs.
/datapack enable texture_fixes lastEnables the data pack named texture_fixes and sets it to load after all other packs.
/datapack enable skyblock_addon after skyblock_coreEnables skyblock_addon and makes sure it loads right after the skyblock_core pack.
/datapack enablepre_gen before world_bordersEnables pre_gen and makes sure it loads right before the world_borders pack.
/datapack create my_pack {"text":"My Custom Pack","color":"gold"}Creates a new data pack with the ID my_pack and a gold-colored description.
Measured from the game files of every Java release from 1.13 to 26.3.
Minecraft Bedrock Edition does not have a /datapack command.
You need permission level 2, which means you must be a server operator or have cheats turned on in a single-player world.
While the main /datapack command has been in Java Edition since at least version 1.13, the /datapack create <id> <description> syntax was added in version 1.21.6.
No, the /datapack command is only available in Minecraft Java Edition and does not exist in Bedrock Edition.
/ban/ban-ip/banlist/deop/fetchprofile/kick/list/op/pardon/pardon-ip/publish/reload/save-all/save-off/save-on/setidletimeout