mojira.dev
MCPE-174513

Using the "/testforblock" command to test for a pressed button does not work

Whenever use the "/testforblock" command in a command block, it won't let me test for a pressed button.  Whenever I try to, it comes up with the message "The block at X,Y,Z did not match the expected state".

 

Steps: In a repeating command block, I typed in the command, "/testforblock (Position of stone button) stone_button ["button_pressed_bit"=true]".  Then I set the repeating command block to "always active" to constantly test for a pressed button at the specified location. 

Observed results: When I press the button at the location the command block specifies to test if it works, it doesn't.  So I check the output to see why it doesn't work and it says "The block at X,Y,Z did not match the expected state".

Expected Results: The command block testing for a pressed button at the specified location should work and activate any redstone/command block contraption attached when the button is pressed.

Linked issues

Comments 2

What is the entire command you are trying to execute?
Please list Steps to Reproduce, Observed Results, and Expected Behavior in the Description, as shown here:

Steps to Reproduce:
1. (list every step completely, so someone else can reproduce the issue, and try following your list to make sure you can still reproduce the issue yourself)
2.
3.
Observed Results:
(briefly describe what you see happen, including any message(s) shown)
Expected Results:
(briefly describe what should happen)

Use screenshots or video to help explain (but not replace) the above information

This report has been temporarily resolved as Awaiting Response. It will automatically reopen when you add information. Please follow the format shown and include all sections (steps, observed, expected). Reports that do not contain all of the requested information and complete steps to reproduce the issue may be closed as Incomplete. For more information please read the Bug Tracker Guidelines.

You may find this Report Creation Form helpful for any future reports you create.

Thank you for your report!
We're tracking this issue in MCPE-168391, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

Gamerchamp3591

(Unassigned)

Unconfirmed

Windows

Windows 10

1.20.15 Hotfix

Retrieved