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

Detecting read-only blockstates always returns false

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 1.11
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      When detecting any blockstate that is read-only, meaning it depends on the environment around it to be determined, the value returns always false even if the debug menu shows it as true.

      To test:

      1. Create the conditions for the block types below
      2. /testforblock x y z (insert following values)
      3. Notice the error message returns that the state is false despite debug menu saying true

      • grass snowy=true
      • fence north=true
      • fence_gate in_wall=true
      • oak_stairs shape=outer_right
      • powered_repeater locked=true

      ...and many others

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                onnowhere Onnowhere
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Potential Duplicates