// <--[tag]
// @attribute <l@location.bed_color>
// @returns Element
// @description
// Returns the base color of the bed at this location.
// For the list of possible colors, see <@link url http://bit.ly/1dydq12>.
// -->
if (attribute.startsWith("bed_color")) {
DyeColor color = ((Bed) getBlock().getState()).getColor();
return new Element(color != null ? color.name() : "BLACK").getAttribute(attribute.fulfill(1));
}