YOU SAID:
i like cake but I cant eat cake
INTO JAPANESE
私はケーキが好きだけど、ケーキは食べない
BACK INTO ENGLISH
I like cake, but I do not eat cake
INTO JAPANESE
私はケーキが好きですが、ケーキを食べません
BACK INTO ENGLISH
I like cake, but I do not eat cake
That didn't even make that much sense in English.