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).

Requirements

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

DataPack Command

DataPack Command in Minecraft Java Edition (PC/Mac)

In Minecraft Java Edition (PC/Mac), there are different syntaxes depending on what you would like to do with the loaded data packs.

To disable a loaded data pack:

/datapack disable <name>

To enable a loaded data pack before/after an existing data pack in the priority order (the last data pack in the priority order has the highest priority):

/datapack enable <name> [after¦before] <existingName>

To enable a loaded data pack as the first/last in the priority order (the last data pack in the priority order has the highest priority):

/datapack enable <name> [first¦last]

To list the loaded data packs:

/datapack list [available¦enabled]

Definitions

  • name is the name of the data pack.
  • existingName is the name of an existing data pack.

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

Example in Java Edition (PC/Mac)

To disable a data pack called 9Minecraft in Minecraft Java Edition (PC/Mac):

/datapack disable 9Minecraft

To list both the available and enabled data packs:

/datapack list

To enable the data pack called 9Minecraft as the last data pack (the last data pack in the priority order has the highest priority):

/datapack enable 9Minecraft last

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.

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

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:

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.

Click to rate this post!
[Total: 2 Average: 5]