Minecraft wiki entry for Guardian_farming, associated text: Downwards bubble columns may also be used to drag the spawned guardians down. However, if you're playing a version prior to 1.15.2, the magma blocks will not do any actual damage to the guardians, as they were immune to this type of damage up until that version.