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

Entities are loaded after scheduled ticks are processed causing detector rails, pressure plates, etc. to turn off

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 20w49a, 20w51a, 21w03a, 21w05b, 21w11a, 21w15a, 21w16a, 21w19a
    • Fix Version/s: 1.17 Pre-release 1
    • Labels:
      None
    • Confirmation Status:
      Community Consensus
    • Category:
      Entities
    • Mojang Priority:
      Important

      Description

      This is caused by the fix for MC-108469: entities are saved separately from the chunks they are in. If a chunk has a scheduled tick that will fire the moment it is loaded it will cause blocks that check for entities (detector rails, pressure plates, string, etc.) to determine that there is no entity present, so they turn off.

      Expected behavior: The blocks stay turned on because they are activated by the corresponding entity.

      Actual behavior: Depending on the timing of the chunk reload some blocks turn off and back on a moment later.

      To reproduce in the attached world:

      1. Step on the pressure plate, this will clear the red glass blocks and teleport you away
      2. Step on the second pressure plate to turn back
      3. Observe that sometimes the timing is right and will cause some command blocks to place a red stained glass block above them.

      A few tries might be required to observe the bug, depending on the exact timing of the chunk
      unload.

      Video showing the issue in the test world: https://youtu.be/hVQeCybGnU8

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              boq [Mojang] Bartosz Bok
              Reporter:
              skyrising skyrising (Simon Wanner)
              Votes:
              40 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: