The BlockMapColorComponent class in the @minecraft/server scripting module is not providing data for seemingly any Vanilla block. The component seems to otherwise work reliably for custom blocks.
Demonstration
The attached video demonstrates this issue. Standing on Vanilla blocks that show up on the provided map, the scripting engine still indicates that no blocks have the BlockMapColorComponent component.
Reproduction
This example is taken from the behavior pack in the attached world for convenience. This world can be opened (in Minecraft Preview) for inspection or unzipped to access the code associated with such.
Attachments
Comments 3
I was doing some testing and it seems to work fine for vanilla blocks that use a colormap such as grass and leaves, but no other vanilla blocks.
Other than that, can confirm.
This issue has been reviewed by our team.
Please add new, relevant information if it helps us understand or reproduce the issue. To show that you’re affected, use the vote feature rather than commenting.
If a fix is implemented, it will be listed in our official changelogs.
For major outages or urgent assistance, visit the Minecraft Help Center.
Thank you for helping us improve Minecraft! We saved your files: