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

Functions execute commands out of order when containing /say

XMLWordPrintable

    • Confirmed
    • Commands
    • Normal
    • Platform

      When running a function that contains /say commands, the order of execution is incorrect - specifically, commands involving /say 

       

      To reproduce:

      Start a new world, with a datapack that contains this function:

       

      say a
      tellraw @s "a"
      say b
      tellraw @s "b"
      say c
      tellraw @s "c"

      Run this function, you will get these results:

      a
      b
      c
      Executed 6 command(s) from function 'foo:bar'
      [Player] a
      [Player] b
      [Player] c

      You would expect to get:

      [Player] a
      a
      [Player] b
      b
      [Player] c
      c
      Executed 6 command(s) from function 'foo:bar'

       

        1. image.png
          115 kB
          ThePyroGuy_

            gegy1000 [Mojang] Gegy
            ThePyroGuy_ ThePyroGuy_
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: