The Bug:
Ender chests have the wrong color on maps.
Steps to Reproduce:
Summon some ender chests beside you by using the command provided below.
/fill ~1 ~ ~1 ~9 ~ ~9 minecraft:ender_chest
Obtain a map, use it, and look at the color of the ender chests on the map.
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.
Confirmed in 24w09a.