Tint source

Helpers that build a minecraft:tint_source object, one for each of its types. Where a field takes one, write the helper's call; its name is the type it makes. Click a type to see what it accepts.

Constant

Constant
Constant(value)
value
RGB

Constant tint color to apply.

CustomModelData

CustomModelData
CustomModelData(default, index?)
default
RGB

Tint to apply when the custom_model_data component is not present, or when it doesn't have a color in the specified index.

indexoptional
int 0..

The index of the colors list in the custom_model_data component. Defaults to 0.

Dye

Dye
Dye(default)
default
ActuallyTranslucentRGB

Tint to apply when the dyed_color component is not present.

Firework

Firework
Firework(default)
default
ActuallyTranslucentRGB

Tint to apply when the firework_explosion component is not present.

Grass

Grass
Grass(temperature, downfall)
temperature
number 0..1
downfall
number 0..1

MapColor

MapColor
MapColor(default)
default
RGB

Tint to apply when the map_color component is not present.

Potion

Potion
Potion(default)
default
RGB

Tint to apply when the potion_contents component is not present, or it has no effects and no custom_color is set.

Team

Team
Team(default)
default
RGB

Tint to apply when there is no context entity, entity is not in a team or the team has no color.