Improve (re)spawn, add cache_block_before_spawn and max_spawn_height settings