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

Some commands in functions cause a NullPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 20w22a
    • Fix Version/s: 1.16 Pre-release 1
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Commands
    • Mojang Priority:
      Important

      Description

      The bug

      Previously it was possible to use the seed command in data pack functions. Now it makes the function invalid and shows a NullPointerException when loading.

      execute store result score #seed temp run seed

      How to reproduce

      1. Download the attached data pack mc-186101.zip and place it in the world folder
      2. /reload
        The function mc-186101:seed isn't loaded and an error is shown in the output log
        Failed to load function mc-186101:seed
        java.util.concurrent.CompletionException: java.lang.NullPointerException

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              boq [Mojang] Bartosz Bok
              Reporter:
              Misoloo [Helper] Misode
              Votes:
              6 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: