Fake Bed or other?

Hello, i want to make like if the player is lying down on the floor, i think if a simulate a bed, or if i hide a fake bed, can i do it?
do you have any idea?

Try modifying the player’s SleepingData. Of all the things to be implemented in sponge so far, idk if this would be one of them.