/datapack Command in Minecraft Java Edition

Manage, Create, and List Data Packs

Java EditionServer AdminPermission: Level 2

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.

Syntax (Java 26.3, 10 forms)

  1. /datapack create <id> <description>
  2. /datapack disable <name>
  3. /datapack enable <name>
  4. /datapack enable <name> after <existing>
  5. /datapack enable <name> before <existing>
  6. /datapack enable <name> first
  7. /datapack enable <name> last
  8. /datapack list
  9. /datapack list available
  10. /datapack list enabled

The forms you will use most

/datapack list
Shows all data packs that are currently enabled and all packs that are available to turn on.
/datapack enable <name>
Turns on a specific data pack by its name.
/datapack disable <name>
Turns off an active data pack by its name.
/datapack enable <name> first
Turns on a data pack and places it at the bottom of the load order so it loads first.
/datapack enable <name> last
Turns on a data pack and places it at the top of the load order so it loads last.
/datapack enable <name> before <existing>
Turns on a data pack and sets it to load right before another active data pack.
/datapack enable <name> after <existing>
Turns on a data pack and sets it to load right after another active data pack.
/datapack create <id> <description>
Creates a new data pack with a custom ID and a formatted description.

Arguments

ArgumentTypeWhat it means
<id>textA word or piece of text used as the identifier when creating a new data pack.
<description>text componentA JSON or SNBT text component that describes the new data pack, such as {"text":"Hello","color":"gold"}.
<name>textA word or piece of text that specifies the name of the data pack you want to enable or disable.
<existing>textA word or piece of text that matches the name of an already enabled data pack to help you set the loading order.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.21.6 Syntax changed.
    + /datapack create <id> <description>
  2. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

Minecraft Bedrock Edition does not have a /datapack command.

FAQ

What permission level do I need to use /datapack?

You need permission level 2, which means you must be a server operator or have cheats turned on in a single-player world.

When was the /datapack create command added?

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.

Can I use the /datapack command in Minecraft Bedrock Edition?

No, the /datapack command is only available in Minecraft Java Edition and does not exist in Bedrock Edition.

Related commands

/ban/ban-ip/banlist/deop/fetchprofile/kick/list/op/pardon/pardon-ip/publish/reload/save-all/save-off/save-on/setidletimeout

More on 9Minecraft