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
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
Attachments
Comments 6

You have the coordinates to test for the block the button is on, not the block the button is in. it finds the cobblestone block because that's what is there. to test for the button, change the 346 to 345.
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki