it's really simple, just make the shake a "when I receive message1" and make the custom block a "broadcast message1"