how does the control block know what blocks are part of the machine or not?
I'm going to assume that the TBM acts as a block built entity similar to the reactor. So, to hazard a guess is that the Control Block looks for specific blocks and adds them to the entity itself, again like the reactor and it's chambers.