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

Commands in functions are not being ran in consistent order.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.13
    • None
    • Windows 8.1

       
    • Community Consensus

      Commands do not seem to be running in the order specified in the functions and are arbitrarily ran. 

       

      Steps to reproduce:

      1. Download the Commands Out Of Order datapack
      2. Drag the zipped datapack into your datapacks folder of your world
      3. Set up a multiplayer game (tested in LAN)
      4. Have two people connect and then run the /reload command from chat
      5. Let each player kill the other for a while
      6. Be sure to have both players kill each other, not just one account killing the other.

      You should be able to notice how the death/kill messages are mixed and not in the same order.

      execute if score @s mg.deaths matches 1 run function mglib:entity/player/main/death 
      
      execute if score @s mg.respawn matches 1.. run function mglib:entity/player/main/spawn_split_1
      
      execute if score @s mg.mkills matches 1 run function mglib:entity/player/main/mob_kill
      
      execute if score @s mg.pkills matches 1 run function mglib:entity/player/main/player_kill
      

      This is the player tick function: the death message should appear before the kill message does.

        1. 2018-07-20_03.22.31.png
          411 kB
          Ryan Smith
        2. 2018-07-20_03.25.19.png
          384 kB
          Ryan Smith
        3. 2018-07-20_03.48.25.png
          531 kB
          Ryan Smith
        4. 2018-07-20_03.57.15.png
          432 kB
          Ryan Smith
        5. 2018-07-20_04.01.38.png
          553 kB
          Ryan Smith
        6. 2018-07-20_04.02.03.png
          561 kB
          Ryan Smith
        7. 2018-07-20_04.02.15.png
          608 kB
          Ryan Smith
        8. 2018-07-20_04.15.46.png
          377 kB
          Ryan Smith

            Unassigned Unassigned
            Winter_Snake Ryan Smith
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: