When a block that does not have the occupied block state property, such as a composter or another villager job site block, is added to the minecraft:villagers_can_sleep_on_bed block tag via a data pack, the game crashes.
Steps to reproduce
Create a new creative world with the attached data pack enabled
Place a composter on the ground.
Spawn a villager next to the composter during the day.
Wait a few seconds for the villager to claim the composter as a job site.
Observed results: the game immediately crashes with a ticking entity error.
Expected results: the game does not crash when a block without the occupied block state property is included in the minecraft:villagers_can_sleep_on_bed block tag.
Thank you for helping us improve Minecraft! We saved your files: