Get Parent/children of a block

Does anyone know how to get the parents/children of blocks? I know this is possible when creating your own pxt editor, but I was wondering if there was any way to do it when creating custom blocks.

1 Like