HomeJavaModsChromaticityBlock
ChromaticityBlock

English | 简体中文

ChromaticityBlock

This mod adds chromaticity block, whose rendering is not affected by lighting, making it particularly suitable for convenient chromaticity cutouts.

Supported minecraft versions: 1.12.2-forge1.16.5-fabric1.20.4-fabric1.20.5-fabric1.20.6-fabric1.21-fabric

icon

1.16.5-fabric-Vanilla

creative_tab

How to Use

Method One: Use the common colors built into the creative mode item bar directly.

Method Two: Obtain chromaticity blocks of any color by adding them through NBT.

Commands to Get Chromaticity Blocks of Any Color

The common colors built into the creative mode item bar should generally meet your needs. If you want to customize colors, you will need to use commands to get chromaticity blocks of any color.

give @s chromaticityblock:chromaticity_block 1 0 {"BlockEntityTag":{"color":-1}}

setblock ~ ~ ~ chromaticityblock:chromaticity_block 0 normal {"color":-1}

give @s chromaticityblock:chromaticity_block{"BlockEntityTag":{"color":-1}}

setblock ~ ~ ~ chromaticityblock:chromaticity_block{"color":-1}

Color Parameter

The color of the chromaticity block is determined by color NBT.

Any color can be obtained by mixing red, green, and blue, so to confirm a color, you only need four argb parameters, which are alpha, red, green, and blue.

For example, the hexadecimal color value FF4488CC contains four argb parameters. FF is alpha, 44 is red, 88 is green, CC is blue, and the range of these four parameters is 0-255 (corresponding to hexadecimal 0-FF).

It should be noted that although alpha can be stored in the number, there is actually no transparency effect in this mod.

Unfortunately, integers in NBT cannot be input in HEX, so you need to convert to DEC.

You can use the calculator that comes with Windows to complete this conversion. Use the programmer mode, set the mode to DWORLD, enter the value in HEX, and you can see this value in DEC.

calculator

compatibility

About

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more