Murphy bed

The Murphy bed is a type of bed introduced in The Sims 2: Apartment Life , The Sims 3: University Life  and The Sims 4: Tiny Living Stuff. The bed folds into the wall to save space. However, unlike real-life Murphy beds, the space used by an opened bed is still considered to be in use when the bed is closed. While Sims are able to walk through that space, objects cannot be placed in that space without using the moveobjects cheat.

The Sims 2: Apartment Life
The Murphy bed was first introduced in The Sims 2: Apartment Life as the Murphy "hide away" bed. The bed is particularly useful in apartments, as it can conserve space when not in use. However, if a Sim is in a poor mood or has a low Body skill when opening the bed, the Sim will be crushed and killed.

The Sims 3: University Life
The Murphy bed returns in The Sims 3: University Life. Sims get crushed by the Murphy bed more often, but those accidents rarely end up with death. Instead, Sims will get the Murphy Bed Clinophobia moodlet that will last for 6 hours, and during the time they have it they won't be able to close or pull down a Murphy bed.

The Sims 4: Tiny Living Stuff
Murphy beds are reintroduced in The Sims 4: Tiny Living Stuff.

Death by Murphy Bed
In The Sims 2: Apartment Life, if a Sim with fewer than five body points and a mood of less than -70 opens the bed, there is a 5% chance that the bed will fall on them and crush them to death. The ghost of a Sim who dies from being crushed by a Murphy bed is white, and will avoid the bed.

In The Sims 3: University Life, failing to open or close a Murphy bed may result in the Sim's Blunt Force Trauma death. The death can also be caused by a vending machine. The ghost of a Sim who dies from being crushed by a Murphy bed is light red/pink, and feathers fly around the Sim.