This mod solves the issue of being unable to sleep even when you are safe, due to a random mob lurking in the cave beneath your base.
update to MC1.20
frankV
Owner