

Minecraft: A Colorful Brush
Have you ever wanted to precisely dye individual glass panes without leftover colored blocks? Or wished to recolor already dyed blocks, similar to how it works in Bedrock Edition? Or maybe you've dreamed of becoming a painter right in Minecraft? This datapack makes all these wishes come true!
Craft a brush using the slightly modified recipe (no copper ingot—just my whim), place dye in your offhand, and left-click a dyeable block. The process doesn't use durability but consumes one dye from your offhand.
Important: Be sure to craft the brush—existing brushes or items from creative mode are not currently updated automatically.
Supported Blocks:
• Wool and carpets
• Glass and glass panes
• Terracotta (not glazed)
• Concrete and concrete powder
The datapack utilizes the data-driven enchantment system from version 1.21 to execute a function at the block you hit with the brush. For this reason, it won't be backported to older versions unless there is genuine demand.
This is my first datapack creation, so the functions might not be perfect. Still, I've tried to structure them logically, avoiding cluttering commands in one place. Thanks to misode's recipe and enchantment generators for helping me understand the formats—and to friends who supported and inspired me!