You need to change the dn to P31, change the power and the 90 degree pulse to P31, too. Also change the delays or the couplings values to match those that are responsible for the coherence transfer.
Also, as the previous answer point it out, change the power gradients to match the condition to refocuse the P31 magnetization if your pulse sequence requires it.