Breakdown of Como compres otro trasto, te castigaré.
comprar
to buy
te
to you / yourself (reflexive) / you (direct object)
otro
other / another
castigar
to punish
como
if (warning or threat, + subjunctive)
el trasto
the piece of junk
Elon.io is an online learning platform
We have an entire course teaching Spanish (Spain) grammar and vocabulary.