Minecraft /datapack Command

Server and players

Enables, disables, and lists data packs for the world.

  • rights — game master
  • Minecraft 26.3
My Game select version

Save your preferences in this browser and apply them to supported tools. Settings in a shared link take priority. Wiki version labels are not affected.

On this page 6 sections

At a glance

Examples have been tested in the game — copy

  • List of data packs
    /datapack list
  • Turn off pack
    /datapack disable "file/example.zip"

Permissions — game master.

Syntax

The game itself shows this in /help datapack: in angular brackets — what to substitute, in square brackets — optional, separated by a slash — one of.

  • /datapack enable <name> [after|before|last|first]
  • /datapack disable <name>
  • /datapack list [available|enabled]
  • /datapack create <id> <description>

Permissions

A 'Game Master' level is required: Operator level 2 — for team blocks, data pack functions, and guests on a public world with allowed commands. In the server console, it is written without a slash.

Team members require more permissions

  • /datapack create — owner

Numbers

WhatValue
The command/datapack
PermissionsGame master (2)
Where it isOn the server and in single-player with cheats enabled
Subcommandscreate, disable, enable, list

Frequently asked questions

How do I use /datapack?

Syntax: /datapack enable <name> [after|before|last|first]. For example, /datapack list — lists all data packs.

What permissions are required for /datapack?

An game master level is required: operator level 2 — in command blocks, data pack functions, and guests in a world open to the network with allowed commands.

Does /datapack work in a command block?

Yes: a Command Block executes commands with level 2 permission, and that's all required. The slash is not needed in the block.

More: server and players

Minecraft 26.3 data: syntax — from the game's /help hint, permissions — from command report, each example verified by command parsing.