Block id store

Hi! I was wondering if there is a way to store the id of a block from a relative position of an entity (think of ~ ~-1 ~), like, if it is a stone i can use it as a macro for a function with $say {$block}
Continue to help post