Adjust the bed command so that teleportation follows the respawn strategy. (#285)
* Adjusted the bed command so that teleportation follows the respawn strategy.
* Adjusted teleportation position in special cases according to the height of the block.
* Correction of world variables involved in the calculation.