|
|
|
[< Back to mechanic page](/Skills/Mechanics)
|
|
|
|
|
|
|
|
## Description
|
|
|
|
Color the entire model or a specific bone.
|
|
|
|
|
|
|
|
|
|
|
|
## Attributes
|
|
|
|
| Attribute | Aliases | Description | Type | Default |
|
|
|
|
|------------|------------------|------------------------------------------------------------------|---------|--------------------------------------|
|
|
|
|
| modelid | m, mid, model | Targeted model | String | |
|
|
|
|
| partid | p, pid, part | Targeted rendering bone.<br/>If not set, color the entire model. | String | |
|
|
|
|
| damagetint | d, dmg, damage | Is this mechanic used to change the damage tint | Boolean | false |
|
|
|
|
| color | c | The color in hex | Color | FFFFFF or FF6666 (damagetint = true) |
|
|
|
|
| exactmatch | em, exact, match | Should the part match the `partid` completely | Boolean | true |
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
With this, we are tinting the `leg_left` bone blue when the mob spawns.
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- model{m=MiniSoldier} @self ~onSpawn
|
|
|
|
- tint{m=MiniSoldier;p=leg_left;c=3986FE} @self ~onSpawn
|
|
|
|
```
|
|
|
|
|
|
|
|
This example will tint the full model Blue when it spawns, all we have to do is leave the p attribute out.
|
|
|
|
```yaml
|
|
|
|
Skills:
|
|
|
|
- model{m=MiniSoldier} @self ~onSpawn
|
|
|
|
- tint{m=MiniSoldier;c=3986FE} @self ~onSpawn
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Aliases
|
|
|
|
- [x] color |
|
|
|
\ No newline at end of file |