block_tint¶
type: "block_tint"
Translucent fill of the block model's visible faces.
Fields¶
Every world overlay also accepts
positions(static or entity-anchored),regionor thepos_x/pos_y/pos_zparams, plus the shared definition fields (duration,easing,loop,persistent,fade_ticks,sound).
| Field | Type | Default | Meaning |
|---|---|---|---|
color_r/g/b |
float | 0.2 / 0.6 / 1.0 | Fill colour |
alpha |
float | 0.35 | Fill opacity (0..1) |
through_blocks |
float | 1 | 1 = visible through other blocks, 0 = occluded by them |
Example¶
{
"type": "block_tint",
"duration": 60,
"params": { "color_r": 0.2, "color_g": 0.6, "color_b": 1.0, "alpha": 0.35, "through_blocks": 1 }
}
Code¶
Its datapack definition:
{
"type": "block_tint",
"duration": 160,
"easing": "ease_in_out_cubic",
"persistent": true,
"loop": true,
"fade_ticks": 12,
"positions": [
[
1996,
100,
1996
],
[
2004,
100,
1996
]
],
"params": {
"color_r": 0.2,
"color_g": 0.6,
"color_b": 1.0,
"alpha": {
"keyframes": [
{
"time": 0,
"value": 0.12
},
{
"time": 80,
"value": 0.6
},
{
"time": 160,
"value": 0.12
}
]
},
"through_blocks": 0.0
}
}