Commands/datapack

From Minecraft Wiki
Jump to: navigation, search
Information icon.svg
This feature is exclusive to Java Edition.
datapack
Restrictions

Operator

First introduced

Java Edition 1.13 (Java Edition 17w46a)

Controls the loading/unloading of data packs.

Syntax
datapack disable <name>
datapack enable <name> [first|last]
datapack enable <name> [before|after] <existing>
datapack list [available|enabled]
Arguments
<name>
Specifies the name of the data pack.
<existing>
Specifies the name of an existing data pack.
Result
Command fails if the arguments are not specified correctly.
On success:
  • (disable|enable)—Disable or enable the specified pack.
  • enable—Enable the specified pack.
    • first—Load this pack before all others (lowest priority).
    • last—Load this pack after all others (highest priority).
    • before—Load this pack just before (lower priority) an existing pack.
    • after—Load this pack just after (higher priority) an existing pack.
  • list—List all data packs, or list only the available/enabled ones. Hovering over the data packs in the chat output shows their description defined in their pack.mcmeta.


History[edit]

Java Edition
1.1317w46aAdded /datapack.