The testforblock command cannot tell the difference between block states, for example: testforblock ~~~ lever [“open_bit“=true]
And testforblock ~~~ lever [“open_bit“=false]
Even when the state of the block doesn't match the command it will still say “Succesfully found block at ~~~“
The execute commands “if block” also seems to have trouble with block states but I'm unsure
Thank you for your report!
We are tracking this issue in MCPE-194284, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote or provide any additional information to the main ticket, it would be appreciated.
Additionally, you have created the report for the wrong project. These are the projects where bugs for the respective game version are tracked:
Minecraft: Java Edition — Windows, macOS, and Linux
Minecraft: Bedrock Edition — Android, iOS, Windows 10/11, ChromeOS, Xbox, Nintendo Switch, PlayStation, and Amazon Fire
Minecraft Launcher — Bugs about the Minecraft Launcher specifically
Minecraft Bedrock Dedicated Server — Bugs about the Bedrock Dedicated Server software
Minecraft Realms — Bugs which only occur on Realms but not in singleplayer or on third-party servers
Mojang Web Services — Bugs about the various web services, including bugs.mojang.com, minecraft.net, and APIs
Please be sure to select the correct project when creating a bug report, and make use of the search feature to see whether an issue has already been reported.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki