Minecraft wiki entry for Block_entity_format, associated text: : The block entity's root tag.
 color: The data value that determines the color of the half-bed block. When a bed is broken, the color of the block entity at the bed's head becomes the color of the bed item when it drops. See Bed#Metadata.