Madness, I tell you!

I've searched through everything to look up blocks with metadata and the
placing thereof.  This code SHOULD properly place blocks and drop items
with the correct metadata, but it does not seem to want to do it.