-
Trailer:
- Minecraft 1.20.1+
- Fabric
- Fabric API
- Cloth Config
MCRGB is a client-side Minecraft Mod designed to assist building. It allows you to search for blocks based on the dominant colours in their textures. Press the colour picker key (I by default) to open the colour picker GUI.
Input your colours using your favourite colour space, and the mod will suggest blocks that closely match that colour. If you are in Creative Mode and have Operator Level Permissions, you can click blocks to give them to yourself.
You can also see the breakdown of a block's colour info by hovering over it. This tells you the percentage each colour takes up in each texture, and which blockstates it corresponds to. Optional: You can also view this info in regular inventories by changing the config.
On first launch, MCRGB will generate a file, located in .minecraft/mcrgb_colours/file.json
MCRGB attempts to scan every block texture in the game and calculates the dominant colours by grouping together similar pixels based on their euclidean distance in sRGB space, and calculating the mean average of each group. The results are saved in this file. If you ever need to regenerate the file (if you've changed resource packs or added new mods which add more blocks), click the "Refresh" button in the colour picker UI.
When you input a colour to the colour picker, the list of blocks is sorted by the euclidean distance to each of the dominant colours in each texture. Each texture is weighted according to how much of that colour takes up in the texture.