Z offset does not work

I have set up, for example
extruder.hotend.z_offset 1.20
extruder.hotend2.z_offset 2.80

After executing the following code, the Z axis does not move at all when changing tools. Where am I making a mistake?

T0
G1 X100 Y150 F4000
T1
G1 X200 Y250 F4000
T0
G1 X100 Y150 F4000
T1…

Imported from wikidot