The block state "occupied_bit", should verify if a bed is occupied by a player or a villager, but the block state is not working as expected:
Steps to Reproduce
1. Place a bed
2. In a command block (always active), write "testforblock (bed's coordinates) bed ["occupied_bit"=true]"
3. Spawn a Villager nearby
4. Set the time to night
5. When the villager sleeps, place a comparator in front of the command block
Expexted Results
The text "block detected" appears and/or the comparator activates itself
Obtained Results
Nothing happens
Note: It only works when you also specify the "head_piece_bit"=true/false". "direction" also doesn't work without it. Moreover, only when the bed is occupied by a player, it can be detected, it doesn't work with villagers.
Linked issues
Attachments
Comments 5
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.
For any account or purchasing related issues, please contact Minecraft Customer Support directly, as we cannot assist with those here at the bug tracker.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
This is an on going issue. On bedrock many blockstates do not seem to work even though the command block agrees it is a valid command. The bed blockstates in particular are known to me since I have been trying to create a single player sleep system that actually detects if the player is sleeping or just on the bed.
Changing resolution to duplicate of MCPE-171919 where I have confirmed the issue.
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Is this still an issue in the latest version? If yes, can you please add it to the affected versions (or mention it if you are not the reporter)?
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki