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

When disabling/enabling data packs in the same function, the game gets mixed up and forgets about vanilla data.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 18w01a
    • None
    • Unconfirmed

      Otherwise known as "Unable to replace vanilla data 2: Electric Boogaloo"

      The bug:

      When using /datapack enable and disable in the same function, things can get odd.

      This error was found when attempting to make a function that automatically orders a data pack first.

      Inside that function:

      datapack disable "file/bug_pack"
      datapack enable "file/bug_pack" first

      As you can see, the first thing is disabling the data pack that contains the function. Then, it enables the same function again, and nothing should be changed but the order of the data pack in the list.

      Except the game forgets how to replace vanilla loot tables, and recipes.

      To reproduce:

      1. Download the data pack below and install it.
      2. Look at the bucket crafting recipe and see that is is now made of gold.
      3. Run the function /function test:run
        -> Observe that the same bucket recipe is no longer gold.

            Unassigned Unassigned
            CreeperMagnet_ CreeperMagnet_
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: