Commands/datapack

From Minecraft Wiki
Jump to: navigation, search
Java Edition.png
This page contains content on features that may be included in the next update.
These features have appeared in development versions, but the full update containing these features has not been released yet.
datapack
Restrictions

Operator

First introduced

1.13 (17w46a)

Controls loaded 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
Fails if the arguments are not specified correctly.
On success:
  • disable — Will disable the specified pack.
  • enable — Will enable the specified pack.
    • first — Will enable the specified pack, putting it before any other pack (lowest priority).
    • last — Will enable the specified pack, putting it after any other pack (highest priority).
    • before — Will enable the specified pack, putting it before (lower priority) an existing pack.
    • after — Will enable the specified pack, putting it after (higher priority) an existing pack.
  • list — Will list all data packs, or only the available/enabled ones. Hovering over the data packs in this list will show their description defined in their pack.mcmeta.


Promotional Content