I commissioned a mod developer to port Flat colored blocks from 1.12.2 to 1.20.1 since the developer of the original mod has retired. This has always been one of my favorite mods to build with so i gladly sought out someone to port it, This isn't the same exact code, the original mod only served as inspiration. The developer i hired re wrote the mod from scratch so some elements are different.
3 TYPES OF BLOCKS
Normal - 1 cobble and 1 dye in your inventory with crafting tool yields 8 colored blocks
Glowing - 1 glow stone block and 1 dye in your inventory with crafting tool yields 8 glowing colored blocks
Transparent - 1 glass and 1 dye in your inventory with crafting tool yields 8 transparent colored blocks
** I myself did not write the mod nor do i know how to code i simply paid someone to create this mod for me so if you have any issues I'm sorry i can not help you. **
*** Any mod developers want to port this mod to even newer versions of Minecraft feel free ***
****Feel free to use this mod in any mod packs or forks****
*original mod link*
https://legacy.curseforge.com/minecraft/mc-mods/flat-colored-blocks-forge