Custom block with a field value that can be used in other twig template
In a field template you find the parent entity in the variable element['#object'], from where you can get field values of other fields:
{% set field_foo_value = element['#object'].field_foo.value %}