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

Execute doesn't work in Functions

XMLWordPrintable

    • Confirmed

      attempting to run a function with one results in "java.lang.NullPointerException"

      this only happens once you reach the command. Commands previous work. This does not invalidate the function.

      say foo
      execute at @s run tp ~ ~5 ~
      say bar
      

      prints:
      [name of player] foo
      java.lang.NullPointerException

      and nothing else

            dinnerbone [Mojang] Nathan Adams
            cowslayer6789 Andrew
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: