The condition is to place blocks under it like a U basically since the bottom of all blocks should be there unless it is an overhang. So this works
---
- [the pit]
- -
--- [blocks underneath]