I am no Z31 expert, but from what I remember. The biggest issue you will run into with a VG30ET to VG30DETT swap is space. The Z31 has a narrower engine bay than the Z32 which means the DETT may not fit.
But you may want to check with more Z31 gurus first, I only know my Z32... and starting to learn the S130.