During the Mass, can we play hymns that have been set to modern music like rock or techno?
You might be able to, depending on the priest or the music director. Liturgical music should be appropriate and dignified. Keep in mind that the wedding liturgy, especially within the celebration of the Eucharist, is always a public ceremony. Therefore the Church needs to make sure that it is celebrated appropriately. If the music doesn’t enhance the sacred dignity of the liturgy, it doesn’t belong. Work together with the liturgical staff to choose music that is clearly religious and doesn’t introduce ambiguity into the service.