mojira.dev
MC-267589

Ender chests have the wrong color on maps

The Bug:

Ender chests have the wrong color on maps.

Steps to Reproduce:

  1. Summon some ender chests beside you by using the command provided below.

    /fill ~1 ~ ~1 ~9 ~ ~9 minecraft:ender_chest
  2. Obtain a map, use it, and look at the color of the ender chests on the map.

  3. Compare the color of the ender chests on the map to the texture and color of ender chests.

Observed Behavior:

The map color of ender chests is gray but their textures are dark green.

Expected Behavior:

The map color of ender chests would be dark green, therefore matching the color of these blocks.

Code Analysis:

Code analysis by @unknown can be found below.

The following is based on a decompiled version of Minecraft 23w51b using Mojang mappings.

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

public class Blocks {
   ...
   public static final Block ENDER_CHEST = Blocks.register("ender_chest", (Block)new EnderChestBlock(BlockBehaviour.Properties.of().mapColor(MapColor.STONE).instrument(NoteBlockInstrument.BASEDRUM).requiresCorrectToolForDrops().strength(22.5f, 600.0f).lightLevel(blockState -> 7)));
   ...

If we look at the above class, we can see that ender chests use the map color "STONE". This seems a bit strange since the textures of ender chests are dark green, and not gray like stone.

Linked issues

MC-201333 Dark prismarine, stairs or slab and prismarine, stairs or slab have wrong color on maps Open 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

Attachments

Comments 2

Confirmed in 24w09a.

Avoma

(Unassigned)

Confirmed

Gameplay

Low

Maps

1.20.4, 23w51b, 24w09a, 24w19b, 1.21, ..., 1.21.5, 25w17a, 1.21.6 Pre-Release 3, 1.21.8, 25w34b

Retrieved