mojira.dev
MC-201332

Normal shulker box and purple shulker box have wrong color on maps

The Bug

Normal shulker box and purple shulker box have wrong color on maps (the two color should be interchanged).

Normal shulker box shows up as Color_Purple color on maps, the correct color should use either Terracotta_Purple or Terracotta_Magenta.
Purple shulker box shows up as Terracotta_Purple color on maps, the correct color should use Color_Purple.

How to reproduce

  1. Summon some normal shulker boxes and some purple shulker boxes

    /fill ~3 ~ ~3 ~9 ~ ~9 minecraft:shulker_box
    /fill ~-3 ~ ~3 ~-9 ~ ~9 minecraft:purple_shulker_box
  2. Obtain an empty map and use it

  3. Take note as to what the color of the normal shulker boxes are displayed as, and what color the purple shulker boxes are displayed as
    → ❌ Normal shulker boxes and purple shulker boxes are displayed in the incorrect colors on maps

Expected Behavior

Normal shulker boxes and purple shulker boxes would not be displayed in the incorrect colors on maps. Instead, the colors of these two blocks on maps should be interchanged.

Code analysis

@unknown has done a code analysis in this comment.

Linked issues

MC-201333 Dark prismarine, stairs or slab and prismarine, stairs or slab have wrong color on maps Open MC-174861 Waterlogged blocks are not accounted for when calculating water depth for map rendering purposes Open MC-201152 Melon and pumpkin stems appear green on maps regardless of growth stage Open MC-165776 Wood has different color than rotated log on map Open MC-174585 Mushroom blocks use their default map colors even if the upwards face is not present Open

Attachments

Comments 10

Can confirm in 20w51a.

Can confirm in 21w05b.

Can confirm in 21w13a.

Can confirm in 21w15a.

Can confirm in 1.17.

Can Confirm 1.17.1, as you can see in this image, all shulker boxes use the colour of wool, except for the Purple one. (the top row is a zoomed-in view of a map)

[media]

Can confirm this behavior in 21w40a. Here are some extra details regarding this problem.

The Bug:

Normal shulker boxes and purple shulker boxes are displayed in the incorrect colors on maps.

Steps to Reproduce:

  • Summon some normal shulker boxes and some purple shulker boxes.

/fill ~3 ~ ~3 ~9 ~ ~9 minecraft:shulker_box
/fill ~-3 ~ ~3 ~-9 ~ ~9 minecraft:purple_shulker_box
  • Obtain an empty map and use it.

  • Take note as to what the color of the normal shulker boxes are displayed as, and what color the purple shulker boxes are displayed as.

Observed Behavior:

Normal shulker boxes and purple shulker boxes are displayed in the incorrect colors on maps.

Expected Behavior:

Normal shulker boxes and purple shulker boxes would not be displayed in the incorrect colors on maps. Instead, the colors of these two blocks on maps should be interchanged.

I can confirm this behavior in 1.18 Release Candidate 3.

Here's a code analysis of this issue. The following is based on a decompiled version of Minecraft 1.17.1 using MCP-Reborn.

net.minecraft.world.level.block.Blocks.java

public class Blocks {
   ...
   public static final Block SHULKER_BOX = register("shulker_box", shulkerBox((DyeColor)null, BlockBehaviour.Properties.of(Material.SHULKER_SHELL)));
   ...
   public static final Block PURPLE_SHULKER_BOX = register("purple_shulker_box", shulkerBox(DyeColor.PURPLE, BlockBehaviour.Properties.of(Material.SHULKER_SHELL, MaterialColor.TERRACOTTA_PURPLE)));
   ...

net.minecraft.world.level.material.Material.java

public final class Material {
   ...
   public static final Material SHULKER_SHELL = (new Material.Builder(MaterialColor.COLOR_PURPLE)).build();
   ...

If we look at the above classes, we can see that shulker boxes do not have a MaterialColor, so instead, they use the MaterialColor of Material.SHULKER_SHELL which is COLOR_PURPLE. We can also see that purple shulker boxes have a MaterialColor of TERRACOTTA_PURPLE.

The problem here is that COLOR_PURPLE appears much brighter and more vibrant than TERRACOTTA_PURPLE, resulting in shulker boxes and purple shulker boxes not accordingly reflecting the color of their block's top texture on maps.

Can confirm in 1.18.1.

Can confirm in 1.18.2.

[Mod]Les3awe

(Unassigned)

Confirmed

Gameplay

Low

Maps

color, map, map-color, shulker_box

1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, ..., 1.21.5, 25w17a, 1.21.6 Pre-Release 3, 1.21.8, 25w34b

Retrieved