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

setblock uses incorrect data value for piston_extension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • Minecraft 1.11
    • None
    • Unconfirmed

      When using the command /setblock ~ ~ ~ piston_extension the invisible block that is created has a data value of 2. Usually the data value defaults to 0, this is for instance the case with air and stone.

      Steps to Reproduce:

      1. Execute /setblock ~ ~ ~ piston_extension
      2. Execute /testforblock ~ ~ ~ piston_extension 0

      What I expected to happen was...:
      The block should have a data value of 0 and the testforblock command should be successful.

      What actually happened was...:
      The block had a data value of 2 and the testforblock command failed with the message:

      The block at -1500, 57, -407 had the data value of 2 (expected: 0)

      Workaround

      1. Use /setblock ~ ~ ~ piston_extension 0 to create the block
      2. Use /testforblock ~ ~ ~ piston_extension -1 to detect the block

            Unassigned Unassigned
            Adrodoc55 Adrodoc55
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: