Mojira Archive
MC-157796

All datapacks are reloaded when using /datapack enable xxx

All datapacks are reloaded when using /datapack enable xxx or /datapack disable xxx.

For example, as the attached file (two datapacks, named 'a' and 'b'), they both have a function named init (in different namespace), which just say a in the first init.mcfunction and say b in another. And they both have a 'minecraft:load' tag.

At first, use /reload. It gives

[Server] b
[Server] a

which is normal.

However, now use /datapack disable "file/a". It gives

[Server] b

which is weird, since I did not do anything about b.

Now, use /datapack enable "file/a". It gives

[Server] b
[Server] a

which is also unreasonable, since I still did not do anything about b.

 

My guess is that Minecraft reloads all datapacks when using /datapack enable xxx and /datapack disable xxx command.

Works As Intended

袁轶君

2019-07-27, 02:49 AM

2023-09-02, 09:57 PM

2023-09-02, 09:57 PM

4

6

Confirmed

Commands, Data Packs

1.14.4, 1.15.1, 1.15.2, 20w12a

-