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

recipe_unlocked advancement trigger requires the recipe condition

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.18.2, 22w14a, 22w15a, 22w17a, 1.19 Pre-release 2, 1.19, 1.19.1 Pre-release 6, 1.19.1, 1.19.2, 22w42a, 22w43a, 22w44a, 22w46a, 1.19.3 Pre-release 1, 1.19.3, 23w03a, 1.19.4 Pre-release 1, 1.19.4, 23w16a, 23w18a, 1.20 Pre-release 1, 1.20 Pre-release 2, 1.20 Pre-release 5, 1.20 Pre-release 6, 1.20, 1.20.1
    • None
    • Plausible
    • Advancements, Data Packs

      The recipe condition for the recipe_unlocked advancement trigger is required, not optional.

      How to reproduce:

      1. In the launcher, go to the settings and enable "Open output log when Minecraft: Java Edition starts."
      2. Launch a modern enough version of Minecraft.
      3. Go to the world creation menu.
      4. Add the attached datapack to the world.
      5. Create the world and look at the log. You will find the error message "Parsing error loading custom advancement manossef:recipe_unlocked: Missing recipe, expected to find a string."

      What I expected to happen was:

      I could make an advancement that triggers when I get any recipe at all.

      What actually happened was:

      The recipe condition is required, so the game threw an error in the log when I tried to do that.

       

      Relates to MC-186503.

            Unassigned Unassigned
            ManosSef [Helper] ManosSef
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: