I got the idea from the Build to survive gamemode, and still think it should be added there.
The idea is your brick inventory is randomised each time you place a brick or after each brick is placed a new random one enters the queue, using the random bricks you are given you build your way up to avoid the flood, would it be possible? I remember salvage mod editing your brick queue but I really have no idea how hard it is, I just love the idea