Minecraft wiki entry for Damage, associated text: Mobs without fire immunity and players take 1 damage every half-second if they are walking on magma blocks. This can be avoided by having the Fire Resistance effect, sneaking, or wearing Frost Walker-enchanted boots.