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

Attempting to interact with "locked" blocks increases "Chests Opened" in the statistics

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.8.2-pre1, Minecraft 1.8.8, Minecraft 15w47c, Minecraft 1.10.2, Minecraft 16w43a, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12.1, Minecraft 18w03b, Minecraft 1.13.1
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      When a player tries to open a chest but can't because it is locked, their "Chests Opened" statistic still goes up even if it doesn't open.
      P.S. This might apply to anything else that can be locked as well.

      How to reproduce

      1. Run these commands:
        /scoreboard objectives add openchest minecraft.custom:minecraft.open_chest "OpenChests"
        /scoreboard objectives setdisplay sidebar openchest
        /scoreboard players set @p openchest 0
        
      2. Open a chest that is not locked
        Your score went up by 1
      3. Place a locked chest with /setblock ~ ~ ~ chest{Lock:"Lock"}
      4. Open the locked chest
        Your score went up by 1 despite the fact that the chest is locked

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Gis4Gamer Joseph Smith
            • Votes:
              6 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: