Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-157796

All datapacks are reloaded when using /datapack enable xxx

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 1.14.4, 1.15.1, 1.15.2, 20w12a
    • None
    • Windows 10
      Java 1.8.0_191 64bit
    • Confirmed
    • Commands, Data Packs

      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.

        1. 2023-08-07_10.31.31.png
          2023-08-07_10.31.31.png
          173 kB
        2. 2023-08-07_10.31.47.png
          2023-08-07_10.31.47.png
          114 kB
        3. datapacks.7z
          0.5 kB

            Unassigned Unassigned
            941201yuan 袁轶君
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: