Biome Foliage
Provides the foliage color of the biome from the specified position.
Type ID: kaya:biome/foliage
Format
| Field | Type | Default | Description |
|---|---|---|---|
position |
Vec3 Provider | The position to get the foliage color of the biome from. | |
alpha |
Float Provider | The alpha (transparency) component to be mixed with the foliage color. The value is clamped from 0.0 to 1.0. | |
dry |
Boolean Provider | Determines whether to get the dry foliage color of the biome. |
Example
{
"type": "kaya:biome/foliage",
"position": {
"type": "kaya:entity/position",
"entity": "this"
},
"alpha": 1.0,
"dry": {
"type": "kaya:condition_result",
"condition": {
"type": "kaya:is_entity_sneaking",
"entity": "this"
}
}
}
This example will provide the foliage color (dry if the entity is sneaking) of the biome at the entity's feet position.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |