that if

Which are correct:

[color=red]1-This is a machine that if you pull any of its levers a kind of ice-cream will flow out.
[color=indigo]2-This is a machine that if you pull any of its levers a different kind of ice-cream will flow out.

[color=red]3-This is a machine any of whose levers, when pulled, will make a kind of ice-cream flow out.
[color=indigo]4-This is a machine any of whose levers, when pulled, will make a different kind of ice-cream flow out.

Gratefully,
Navi.

#1 and #2 are ill-formed in my opinion.

#3 and #4 are possible. However, “a kind of ice-cream” can be read as if the stuff produced is not quite ordinary ice-cream, which may not be what you mean. In #4 you could argue that “any lever” does not logically make a “different” kind of ice-cream flow, but possibly that is nit-picking gone too far.