Fetching details from the dictionary...

substitute for ...
「代り」 has another reading with different meanings.
牛乳代りに豆乳を使っている。
I use soy milk as a substitute for cow's milk.
傘代りに新聞紙をかぶった。
I used a newspaper as a substitute for an umbrella.
ペン代りに鉛筆で書いた。
I wrote with a pencil as a substitute for a pen.