I think that much of the behavior is managed in the Bot_Holes add-on.
http://forum.blockland.us/index.php?topic=227495.0