Minecraft:Commands/datapack: Difference between revisions
More actions
imported>RedX No edit summary |
Remove broken links to missing pages |
||
| Line 8: | Line 8: | ||
}} | }} | ||
Controls the loading/unloading of | Controls the loading/unloading of data packs. | ||
Note that feature flags can be enabled through data pack only when creating the | Note that feature flags can be enabled through data pack only when creating the world. Data packs requiring a feature flag that is not enabled cannot be loaded by this command. | ||
If a built-in datapack in the path of <code>datapacks</code> in the vanilla datapack is enabled during world creating, it cannot be disabled by this command. | If a built-in datapack in the path of <code>datapacks</code> in the vanilla datapack is enabled during world creating, it cannot be disabled by this command. | ||
| Line 83: | Line 83: | ||
{{Navbox commands}} | {{Navbox commands}} | ||
de:Befehl/datapack | |||
es:Comandos/datapack | |||
ja:コマンド/datapack | |||
pt:Comandos/datapack | |||
ru:Команды консоли/datapack | |||
th:คำสั่ง/datapack | |||
zh:命令/datapack | |||
Revision as of 15:43, 9 April 2026
Template:Distinguish Template:Exclusive Template:Infobox command
Controls the loading/unloading of data packs.
Note that feature flags can be enabled through data pack only when creating the world. Data packs requiring a feature flag that is not enabled cannot be loaded by this command.
If a built-in datapack in the path of datapacks in the vanilla datapack is enabled during world creating, it cannot be disabled by this command.
Syntax
datapack disable <name>- Disable the specified pack.
datapack enable <name>- Load the specified pack.
datapack enable <name> (first|last)- Load this pack before (lowest priority) or after (highest priority) all others (lowest or highest priority).
datapack enable <name> (before|after) <existing>- Load this pack just before (lower priority) or after (higher priority) an existing pack.
datapack list [available|enabled]- 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.
- 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
datapack create <id> <description>- Creates new empty directory data pack for current world.
Arguments
- Specifies the name of the data pack.
- Template:Arg desc
- Specifies the name of an existing enabled data pack.
- Template:Arg desc
- Created pack name, must be a valid directory name.
- Template:Arg desc
- text component to be placed in description in
pack.mcmeta. - Template:Arg desc
Result
Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table Template:Result table
Output
Template:Output table Template:Output table Template:Output table Template:Output table Template:Output table
History
References
<references/>
de:Befehl/datapack es:Comandos/datapack ja:コマンド/datapack pt:Comandos/datapack ru:Команды консоли/datapack th:คำสั่ง/datapack zh:命令/datapack