The good works in Matthew 25:42-46 are works of faith. The Jewish Law was to abstain form pork and lobster, not travel on Saturday and the like. Jesus taught the former and His Church abolished the latter.
I have a present for you:
Let us pray.
O clement Mary, Mother of God,
Teach us mercy
Lead us to Thy Son Jesus
Pray for us so we may be saved
John 6:44
No man can come to me, except the Father which hath sent me draw him: