I’m an MCPE mod developer and your problem is quite well known. When the game wants to plop you down after sleeping, it looks for air near the bed in every way, including diagonally. It scans around until it sees a spot. It could see the spot, but not you. Therefore you ended up on the hill near your base and I bet if…