
/datapack
Lists, enables and disables data packs. Its basic form is /datapack create <id> <description>; it has 10 syntax forms and 4 arguments. Permission: Cheats / op 2.
/datapack syntax
Game dataEvery form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.
/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 examples
Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.
/datapack list- Lists the enabled and available data packs.
/datapack disable "file/MyPack.zip"- Turns that data pack off without deleting it.
/datapack arguments
What each argument expects, with the limits the game enforces.
| Argument | Expects | Limits |
|---|---|---|
<id> | Text | — |
<description> | JSON text component | — |
<name> | Text | — |
<existing> | Text | — |
Other commands
Data: Minecraft Java Edition 26.3 game files. How we source this
Lists, enables and disables data packs. It has 10 syntax forms and can be run by: Cheats / op 2.
See Also
Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.
/datapack FAQ (Java 26.3)
What does /datapack do in Minecraft?
Lists, enables and disables data packs.
What is the syntax of /datapack?
The basic form is /datapack create <id> <description>. All forms are listed above.
What is an example of /datapack?
/datapack list — Lists the enabled and available data packs.
Do you need cheats for /datapack?
Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).