How do i make a script to load a custom block xml?

nice, now how do i make a custom block that does this:


please fullscreen the image
continued in How do i make custom blocks to xml?