A 19-year-old faces sentencing after pleading guilty to attempting to commit a sexual act on a Shetland pony on a farm.