How to Use the DataPack Command in Minecraft

This Minecraft tutorial explains how to use the /datapack command with step-by-step instructions.

You can enable, disable, list, and change the priority order of your loaded data packs using the /datapack command in Minecraft. Let's explore how to use this cheat (game command).

Supported Platforms

The /datapack command is available in the following versions of Minecraft:

PlatformSupported (Version*)
Java Edition (PC/Mac) Java Edition (PC/Mac)Yes (1.13)
Pocket Edition (PE) Pocket Edition (PE)No
Xbox 360 Xbox 360No
Xbox One Xbox OneNo
PS3 PS3No
PS4 PS4No
Wii U Wii UNo
Nintendo Switch Nintendo SwitchNo
Windows 10 Edition Windows 10 EditionNo
Education Edition Education EditionNo

* The version that it was added or removed, if applicable.
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.

Requirements

To run game commands in Minecraft, you have to turn cheats on in your world.

DataPack Command

Where is a Data Pack Stored?

By default, your Minecraft world will have access to the default data pack which is called vanilla. All other data packs can be found under the \datapacks folder for the specific saved world.

Path for Windows
C:\Users\<username>\AppData\Roaming\.minecraft\saves\World1\datapacks\
Path for Mac
/Users/<username>/Library/Application Support/minecraft/saves/World1/datapacks/

In the path examples above, the saved world is called World1. Make sure you replace this value with the correct name of your world.

Examples

How to Enter the Command

1. Open the Chat Window

The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:

  • For Java Edition (PC/Mac), press the T key to open the chat window.

2. Type the Command

In this example, we will list all of the available and enabled data packs in Minecraft Java Edition (PC/Mac) 1.13 with the following command:

/datapack list

Type the command in the chat window. As you are typing, you will see the command appear in the lower left corner of the game window. Press the Enter key to run the command.

datapack command

Once the cheat has been entered, the available and enabled data packs will be listed.

completed datapack command

You will see the following message appear in the lower left corner of the game window that lists the data packs for this world:

There are 1 data packs enabled: [vanilla]
There are no more data packs available

If you hover over the name of a data pack, it will display the meta information for the data pack.

To hover over the data pack name, open the Chat window by pressing the T key, and then move your mouse pointer over the data pack called [vanilla], for example:

datapack command hover

When we hover over the [vanilla] data pack name, it shows the following meta information for the data pack:

Default
The default data for Minecraft

Congratulations, you have learned how to use the /datapack command in Minecraft.