minecraft:map_color for you with a switch.Get GodCraftOverview
minecraft:map_color is a block component: it goes in the components object of a custom block. Sets the color of the block when it is drawn on a map. You can give just a color, or a color with a biome tint.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
color | Color255RGB | none | The map color, as a hex code like "#7F3300" or RGB numbers. |
tint_method | Tint Method | "none" | How the biome changes the map color, for example "grass" or "water". Use "none" for a fixed color. |
Example
Inside the components object of BP/blocks/<name>.json (values are the defaults or placeholders):
BP/blocks/<name>.json
{
"minecraft:map_color": {
"color": {},
"tint_method": "none"
}
}