That's basically what the mod does.
If for some reason your head ended up inside a solid full cube block like sand, gravel, dirt, stone, etc. you start to lose breath. If you run out of breath while still inside, you lose 10 HP (or 5 “hearts”) per 2 seconds, so it is very deadly. On the other hand, losing breath is always rather slow in Minetest, so you have plenty of time to escape.
Specifically, suffocation will be added to all blocks which:
- Are solid
- Are full-sized standard cubes
- Don't already have their own forms of damage
- Are not excluded from suffcation by mods
This means being “stuck” in things like stairs, slabs, glass panes, etc. is safe as it is usually easy to get out.
Download: real_suffocation_1.0.0.zip
GIt project page: http://repo.or.cz/minetest_real_suffocation.git
Version: 1.0.0
Dependencies: None!
License of everything: WTFPL