1. Wiki
  2. /Blocks
  3. /minecraft:map_color

minecraft:map_color

Don't want to write this by hand? GodCraft sets minecraft:map_color for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
colorColor255RGBnoneThe map color, as a hex code like "#7F3300" or RGB numbers.
tint_methodTint 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"
  }
}

Blocks: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more