ModMain.lua is where the actual mod lies, the rest is boilerplate and defaults. Basically every major game event (day/night, player join/leave...) the shard will announce it's status to the API host.