mojira.dev
MC-201333

Dark prismarine, stairs or slab and prismarine, stairs or slab have wrong color on maps

The bug

Dark prismarine, stairs or slab and prismarine, stairs or slab have wrong color on maps(the two color should be interchanged).

Dark prismarine, stairs or slab shows up as color like prismarine bricks on maps, the correct color should like warped planks.
Prismarine, stairs or slab shows up as color like warped planks on maps, the correct color should like prismarine bricks.

Code analysis

@unknown has done a code analysis in this comment.

Linked issues

MC-201332 Normal shulker box and purple shulker box 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 5

Can confirm in 20w51a.

Can confirm in 21w05b.

Can confirm in 21w13a.

I can confirm this behavior in 1.18 Release Candidate 1.

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 PRISMARINE = register("prismarine", new Block(BlockBehaviour.Properties.of(Material.STONE, MaterialColor.COLOR_CYAN).requiresCorrectToolForDrops().strength(1.5F, 6.0F)));
   ...
   public static final Block DARK_PRISMARINE = register("dark_prismarine", new Block(BlockBehaviour.Properties.of(Material.STONE, MaterialColor.DIAMOND).requiresCorrectToolForDrops().strength(1.5F, 6.0F)));

If we look at the above class, we can see that prismarine's MaterialColor, (otherwise known as the color that this block appears as on maps) is COLOR_CYAN, and dark prismarine's is DIAMOND. Since the DIAMOND MaterialColor appears much brighter than the COLOR_CYAN MaterialColor, this results in these two blocks not accordingly reflecting the color of their block's texture.

Can confirm in 1.18.2.

[Mod]Les3awe

(Unassigned)

Confirmed

Gameplay

Low

Maps

color, map, map-color

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