promotional bannermobile promotional banner
premium banner
Adds a command (tptobed) that allows players to teleport themselves to their bed if they meet the requirements!

Description

Using /tptobed command will teleport you to your bed if you are more than 500 blocks away from it, not nearby monsters and between Y level 50 and 70.

Why 500 blocks? - If you are closer than that just manually take yourself back to your bed lol.
Why the Y level requirement? - Helps ensure players are near surface/sea level similar to fast traveling in skyrim where you cant fast travel while in a dungeon area.
Why cant I be near monsters? - because Im trying to slim down the chances of this mod being used to cheat yourself away from death.

I did what I could think of with what I had available to make it similar to typical fast travel from other games and prevent it being used for cheating in regular gameplay. 

I mostly made this mod as I am starting a ocean world server where players will live on ships and if they log out and their ship is moved by a shipmate, then they can teleport back to their place on the ship instead of being stranded in the sea.