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

Command blocks running before a joining player is fully loaded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 15w35e, Minecraft 15w36d, Minecraft 15w38b, Minecraft 15w50a, Minecraft 1.9 Pre-Release 3, Minecraft 16w35a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Game Mode:
      Creative
    • Category:
      (Unassigned)

      Description

      When a player joins a world or server, repeating command blocks begin to run before they are fully loaded into the game.

      What I expected to happen was...:
      I expected for the repeating commands blocks to only execute when a player is fully loaded, so that they doesn't falsely execute a successful testfor command.

      What actually happened was...:
      A repeating command block checking for a player will fail momentarily, even though the player has joined.

      Steps to Reproduce:
      1. Create a new world of any type in creative mode.
      2. Place a repeating, no-redstone, non-conditional command block with the command testfor @a.
      3. In front of that, place a redstone comparator, a solid block, and a redstone torch (on the block).
      4. Adjacent to the redstone torch, place a repeating, redstone-reliant, non-conditional command block with a say command (e.g. say eggplant).
      5. Nothing should happen; this means that the first command block's testfor @a command is successful, preventing the second command block's command from executing.
      6. Exit and rejoin the world. [@] eggplant will be in chat twice, meaning that the command blocks executed for about two ticks before realizing the player existed.

      This is a problem if you have a message that shows up when nobody is on a certain team, or if you want something to run when there are no players online (in a server).

        Attachments

        1. 2015-12-16_15.42.49.png
          2015-12-16_15.42.49.png
          58 kB
        2. 2015-12-16_15.44.09.png
          2015-12-16_15.44.09.png
          60 kB
        3. 2015-12-16_15.44.16.png
          2015-12-16_15.44.16.png
          59 kB
        4. 2015-12-16_15.44.35.png
          2015-12-16_15.44.35.png
          42 kB
        5. 2015-12-16_15.45.45.png
          2015-12-16_15.45.45.png
          79 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Poyo Poyo Gainz
              • Votes:
                5 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: