You need to add a texture to the block before you can set texture flags.