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

Some commands in functions cause a NullPointerException

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 20w22a
    • 1.16 Pre-release 1
    • None
    • Confirmed
    • Commands
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                CHK: