Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-267589

Ender chests have the wrong color on maps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 23w51b, 24w09a
    • None
    • Confirmed
    • Maps
    • Low
    • Gameplay

      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 Avoma 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.

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              CHK: