Terrible state of duck in pasty I'd cooked (8)
I believe the answer is:
'terrible state' is the definition.
(a dystopia is a terrible state or world)
'duck in pasty i'd cooked' is the wordplay.
'duck' becomes 'o' (resembles zero - 'duck' in cricket).
'in' means one lot of letters goes inside another.
'cooked' is an anagram indicator (letters cooked into a new form).
'pastyid' with letters rearranged gives 'dystpia'.
'o' put into 'dystpia' is 'DYSTOPIA'.
'of' is the link.
(Other definitions for dystopia that I've seen before include "worst possible place?" , "Imaginary society in which everything is bad" , "where everything's bad" , "there's no worse place" , "Imaginary place where all is bad" .)