added example authored by queenofants's avatar queenofants
[< Back to mechanic page](/Skills/Mechanics) [< Back to mechanic page](/Skills/Mechanics)
## Description ## Description
Enchant the entire model or a specific bone. Enchant the entire model or a specific bone.
## Attributes ## Attributes
| Attribute | Aliases | Description | Type | Default | | Attribute | Aliases | Description | Type | Default |
|------------|------------------|--------------------------------------------------------------------|---------|---------| |------------|------------------|--------------------------------------------------------------------|---------|---------|
| modelid | m, mid, model | Targeted model | String | | | modelid | m, mid, model | Targeted model | String | |
| partid | p, pid, part | Targeted rendering bone.<br/>If not set, enchant the entire model. | String | | | partid | p, pid, part | Targeted rendering bone.<br/>If not set, enchant the entire model. | String | |
| enchant | en | Is enchanted | Boolean | true | | enchant | en | Is enchanted | Boolean | true |
| exactmatch | em, exact, match | Should the part match the `partid` completely | Boolean | true | | exactmatch | em, exact, match | Should the part match the `partid` completely | Boolean | true |
| child | c | Whether the child bones should be affected | Boolean | false | | child | c | Whether the child bones should be affected | Boolean | false |
\ No newline at end of file
## Examples
This will cause the mob's eyes to glow when attacking then switch back to normal 20 ticks later.
```yaml
Skills:
- model{m=TestModel} @self ~onSpawn
- enchant{m=TestModel;p=eyes;en=true} @self ~onAttack
- enchant{m=TestModel;p=eyes;en=false;delay=20} @self ~onAttack
```
\ No newline at end of file