Posted by11 months ago
Archived
I added a data pack to my small server that my friends and I play on but I decided to remove it and switch it out for a plug-in for a few different reasons. So I removed it from the datapacks folder and restarted the server but the datapacks feature still works in game. How do I properly get rid of it?
This thread is archived
New comments cannot be posted and votes cannot be cast
level 1
Remove the daypack from the folder rather then the folder itself or you fon do /datapack disable name
level 1
do /datapack list and see if it's still there
also, some datapacks have an "uninstall" function, like xisumavoid's sethome pack i believe
level 2
I was able to uninstall the datapacks but there commands still show up in chat for example when I type /trigger it gives me a list of the datapacks commands that I can tab thru. This isnt too big of a problem as they don't function anymore but I'd still like to know how to get rid of them.
Controls the loading/unloading of data packs.
Syntax[]
datapack disable <name>datapack enable <name>Enable 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.Arguments[]
<name>: string
Specifies the name of the data pack.Must be a string. And it must be a quotable phrase, which is either a single word (allowed characters: -, +, ., _, A-Z, a-z, and 0-9) or a double-quoted string.<existing>: string
Specifies the name of an existing enabled data pack.Must be a string. And it must be a quotable phrase, which is either a single word (allowed characters: -, +, ., _, A-Z, a-z, and 0-9) or a double-quoted string.Result[]
any | the arguments are not specified correctly | Unparseable |
/datapack enable ... /datapack disable ... | <name> is not a valid data pack | Failed |
the data pack has already been enabled/disabled | ||
/datapack enable ... <existing> | <existing> is not an existing enabled data pack | |
any | On success | Disable/enable/list data pack(s). |
Output[]
any | Java Edition | On fail | 0 | 0 | 0 |
/datapack enable ... /datapack disable ... | On success | 1 | 1 | The number of packs that are loaded after executing. | |
/datapack list [available|enabled] | On success | 1 | 1 | the number of data packs that are listed |
History[]
Added /datapack. |
MC Datapacks
Datapack Uninstallation (*)
About
This convention ensures that you have a way of uninstalling most of the contents of your datapack. The word "most" is used here because Minecraft does not provide the necessary tools for us to actually uninstall or remove the entirety of the datapack.
Implementation
There are no rules enforcing how you should implement the uninstallation method, as long as you do implement it. However, the following section outlines one of the many ways to implement it.
Uninstallation Function
You can create an "uninstallation function", which when ran, will remove most of the content added from your datapack. You can tell the user about this function inside your project page or anywhere you like.