Set block attributes