Hmm, what specifically is baffling you? I can try to make that segment a little more clear.
If you compare the chili spawn-code and the carrot-spawn code side-by-side, they're nearly identical with a few differences:
- The carrot seed starts out with attr 208 to allow physics; it falls directly from its spawn-point in the box onto the ground, whereas the chili starts with attr 80 which doesn't allow physics-- obviously it wants to stay in place until it's grown!
- The carrot has some additional code to determine which way it faces when it lies on the ground, but that's just...carrotyness.
Let me know how else I can help!