Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit eaef1aa

Browse files
committedMar 19, 2025·
Added block tinting page
1 parent 5941ac2 commit eaef1aa

File tree

2 files changed

+149
-0
lines changed

2 files changed

+149
-0
lines changed
 

‎docs/blocks/block-tinting.md

+82
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
title: Block Tinting
3+
description: Learn how to apply a color tint to your block's texture and map color.
4+
category: Visuals
5+
tags:
6+
- easy
7+
license: true
8+
mentions:
9+
- QuazChick
10+
---
11+
12+
## Tinting Textures
13+
14+
### Atlas Tinting
15+
16+
In the `RP/textures/terrain_texture.json` [atlas file](/concepts/texture-atlases), the `tint_color` and `overlay_color` parameters can be used on a texture to tint it by a specified color in two different ways:
17+
18+
- [`tint_color`](/concepts/texture-atlases#tint-color) applies a basic multiply tint to a texture.
19+
- [`overlay_color`](/concepts/texture-atlases#overlay-color) applies a tint to a texture, using the alpha channel of the texture to determine tint intensity.
20+
21+
### Using Tint Methods
22+
23+
[Tint methods](#list-of-tint-methods) can be used to tint the texture of a block based on the biome it is placed in.
24+
25+
Tinting is applied by specifying the `tint_method` parameter for the [material instance](/blocks/block-components#material-instances) with the texture that should be tinted.
26+
27+
Different material instances of a block can use different tint methods.
28+
29+
<CodeHeader>minecraft:block > components</CodeHeader>
30+
31+
```json
32+
"minecraft:material_instances": {
33+
"*": {
34+
"texture": "wiki:grey_texture",
35+
"tint_method": "grass"
36+
}
37+
}
38+
```
39+
40+
## Tinting Map Color
41+
42+
If your texture has tinting applied, the chances are, you'll want maps to display your block with that tint too.
43+
44+
Tint methods can be applied to the block's map color, not just its textures!
45+
46+
<CodeHeader>minecraft:block > components</CodeHeader>
47+
48+
```json
49+
"minecraft:map_color": {
50+
"color": "#ffffff",
51+
"tint_method": "grass"
52+
}
53+
```
54+
55+
## Tint Methods
56+
57+
:::warning FORMAT VERSION `1.21.70`
58+
Tint methods are experimental and require Upcoming Creator Features to be enabled.
59+
:::
60+
61+
Tint methods can be used to tint a block based on the biome it is placed in.
62+
Most tint methods use colormaps (found in the `RP/textures/colormap` folder) to determine tint color.
63+
64+
However, an exception to this is the `water` tint method, which uses the `surface_color` defined in the `minecraft:water_appearance` component of client biome files.
65+
66+
### List of Tint Methods
67+
68+
<Table data="tint_methods.json" />
69+
70+
<style>
71+
.color-preview {
72+
display: inline-grid;
73+
place-items: center;
74+
margin-block: 0.5em;
75+
width: 64px;
76+
height: 64px;
77+
border: var(--border);
78+
border-radius: var(--border-radius);
79+
font-family: monospace;
80+
color: #ffffff;
81+
}
82+
</style>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"columns": {
3+
"tint_method": {
4+
"name": "Tint Method",
5+
"sortable": true
6+
},
7+
"default_color": {
8+
"name": "Preview",
9+
"text_align": "center"
10+
},
11+
"vanilla_usage": {
12+
"name": "Vanilla Usage"
13+
}
14+
},
15+
"rows": [
16+
{
17+
"tint_method": "`birch_foliage`",
18+
"default_color": "<div style='background: #80A755' class='color-preview'>#80A755</div>",
19+
"vanilla_usage": ["`minecraft:birch_leaves`"]
20+
},
21+
{
22+
"tint_method": "`default_foliage`",
23+
"default_color": "<div style='background: #77AB2F' class='color-preview'>#77AB2F</div>",
24+
"vanilla_usage": [
25+
"`minecraft:acacia_leaves`",
26+
"`minecraft:dark_oak_leaves`",
27+
"`minecraft:jungle_leaves`",
28+
"`minecraft:mangrove_leaves`",
29+
"`minecraft:oak_leaves`",
30+
"`minecraft:vines`"
31+
]
32+
},
33+
{
34+
"tint_method": "`dry_foliage`",
35+
"default_color": "<div style='background: #A37546' class='color-preview'>#A37546</div>",
36+
"vanilla_usage": ["`minecraft:leaf_litter`"]
37+
},
38+
{
39+
"tint_method": "`evergreen_foliage`",
40+
"default_color": "<div style='background: #619961' class='color-preview'>#619961</div>",
41+
"vanilla_usage": ["`minecraft:spruce_leaves`"]
42+
},
43+
{
44+
"tint_method": "`grass`",
45+
"default_color": "<div style='background: #92BC58' class='color-preview'>#92BC58</div>",
46+
"vanilla_usage": [
47+
"`minecraft:fern`",
48+
"`minecraft:grass_block` (top)",
49+
"`minecraft:large_fern`",
50+
"`minecraft:pink_petals` (stems)",
51+
"`minecraft:reeds`",
52+
"`minecraft:short_grass`",
53+
"`minecraft:tall_grass`",
54+
"`minecraft:wildflowers` (stems)"
55+
]
56+
},
57+
{
58+
"tint_method": "`water`",
59+
"default_color": "<div style='background: #44AFF5' class='color-preview'>#44AFF5</div>",
60+
"vanilla_usage": [
61+
"`minecraft:cauldron` (undyed water)",
62+
"`minecraft:flowing_water`",
63+
"`minecraft:water`"
64+
]
65+
}
66+
]
67+
}

0 commit comments

Comments
 (0)
Please sign in to comment.