Skip to main content
Version: 26.1.x

Block Colors

dev.architectury.registry.client.rendering.ColorHandlerRegistry

Apply a tint to a block's rendering - the mechanism vanilla uses for things like grass and leaves changing color by biome.

Registering a block tint

Pass a BlockTintSource and the blocks it applies to:

ColorHandlerRegistry.registerBlockColors(myTintSource, MyMod.MY_LEAVES.get());

There are two overloads - one takes Block... directly, the other takes Supplier<? extends Block>... so you can pass your RegistrySuppliers without resolving them first:

ColorHandlerRegistry.registerBlockColors(myTintSource, MyMod.MY_LEAVES, MyMod.MY_GRASS);

Register from client-side code.