ok i'll give u the short version then:
the call is:
/c remote.call("alfara", "switch_team", {t_name="custom_team_name", switch_pl="player_name", t_x_spawn=0, t_y_spawn=0, t_sf='nauvis'})
-will spawn your teams base (if the team is created new and certain checkes are valid)
-player is being teleported to teams respawn location
-starting resource patch is generated next to your base for balancing reasons.
-standard team "player" will start with nothing and is only serving as a buffer team.
-recipe's for roboport and chests have been made more expensive but tech requirements lowered to base techs.
the rest runs like u know it due to hard-dependency