From Minecraft Wiki
Java Edition only
| 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.
Controls loaded data packs.
datapack disable <name>
datapack enable <name> [first|last]
datapack enable <name> [before|after] <existing>
datapack list [available|enabled]
- Specifies the name of the data pack.
- Specifies the name of an existing data pack.
- 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