Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-103387

/testforblock and button not working w/ Command block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • None
    • 1.16.100.60 Beta
    • None
    • Unconfirmed
    • Xbox

      The TESTFORBLOCK command in a command block is not identifying the BUTTON on a block.

       

      I am using the /testforblock command on a command block to test for a PRESSED button.

      The command is able to identify only the block but not the BUTTON on the block.

      For example, the command I put into the command block (repeating, always active) is:

      /testforblock 196 68 346 birch_button 12

      I am testing to see if the Birch button is PRESSED and FACING NORTH.

      I put a birch button on a cobblestone block at that location.   The output reads something like:

      "The block at 196,68,346 is Cobblestone (expected:Birch Button)." 

      (so, it finds the cobblestone BLOCK but not the button)

      IF I change the command to /testforblock 196 68 346 cobblestone 0, then the command block triggers a redstone signal through a comparator because it is able to detect just the cobblestone block.

      SO, in the past, the TESTFORBLOCK command would be able to test for the BUTTON on the BLOCK in bedrock and check for the corresponding DATA VALUE to see if the birch button was facing up, down, north, south, east, west, AND whether it was PRESSED.

      ie.

      Not pressed:

      East: 1

      West: 2
      South: 3
      North: 4

       
      Pressed:

      East: 9
      West: 10
      South: 11
      North: 12

      (https://www.minecraftforum.net/forums/minecraft-java-edition/redstone-discussion-and/349092-testforblock-pushed-buttons)

      HOWEVER, now the TESTFORBLOCK command is only identifying the block but not the BUTTON on the block.

       

      The TESTFORBLOCK command looking for a pressed button was working before. Somehow it is no longer working. 

      https://www.youtube.com/watch?v=GppLqhVKqx4&list=PLM13skzGjPLHi6IPzdj6ID-RuzvpAAe2O&index=32&t=0s

        1. IMG_5466.jpg
          2.64 MB
          James Lee
        2. IMG_5465.JPG
          3.34 MB
          James Lee

            Yimmer1 James Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: