Modify Model Color Self
Modifies the color of the base model texture of the entity holding the power for other entities.
Type ID: kaya:modify/model/color/self
Info
This type provides the following context parameters when the entity holding the power is rendered:
| Parameter | Description |
|---|---|
kaya:actor_entity |
The entity seeing the entity holding the power. |
kaya:target_entity |
The entity holding the power. |
Format
| Field | Type | Default | Description |
|---|---|---|---|
color |
Color | Determines the color to use to mix with the colors of the base model texture of the entity holding the power. |
Example
{
"type": "kaya:modify/model/color/self",
"color": {
"type": "kaya:dynamic/argb",
"alpha": {
"type": "kaya:linear_interpolated",
"delta": {
"type": "kaya:product",
"values": [
{
"type": "kaya:vector/length",
"vector": {
"type": "kaya:entity/velocity",
"entity": "this"
}
},
3.5
]
},
"start": 0.0,
"end": 1.0
},
"red": 1.0,
"green": 1.0,
"blue": 1.0
}
}
This example makes the visibility of the entity holding the power depend on its velocity magnitude. The faster the entity's velocity, the more it's visible to other entities.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |