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

Some commands in functions cause a NullPointerException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.16 Pre-release 1
    • 20w22a
    • None
    • Confirmed
    • Commands
    • Important

      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

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

              Created:
              Updated:
              Resolved:
              CHK: