Try this program. It will encase you in a block of glass! Don't worry though, glass is easy to break, just hit it. Notice how the block starts two x and z blocks behind you and to your left (if you are facing east) and extends two x and z blocks in front of you and to your right as well as over your head.