Create skills/mechanics/Time authored by Lxlp's avatar Lxlp
## Description
Sets the world's time. Depending on the attributes used, the change in time can be absolute or relative to the target player.
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| mode | m | The mode used in the time mechanic. Can be ADD/SET/RESET | ADD |
| amount | ticks, t, amt | The amount of ticks by which the time will be changed | 20 |
| personal | | Sets whether to change the global time or the player's client time | false |
| relative | | Sets whether to keep the player's time synchronized to its world time with an offset | true |
### Mode
The different values the mode attribute can be all have different effects
- **`ADD`** - Sets the current time of the world with an offset
- **`SET`** - Sets the current time of the world
- **`RESET`** - Re-syncs the target's world time with the server world time, if it is not already synced
## Examples
```yaml
#MOB
ExampleMob:
Type: ZOMBIE
Skills:
- sudoskill{s=MidnightAura} @PIR{r=30} ~onTimer:20
```
```yaml
#SKILL
MidnightAura:
Skills:
- aura{auraName=midnight;i=1;ms=1;rd=true;
onTick=[
- time{mode=SET;a=18000;personal=true;relative=false} @self
];
onEnd=[
- time{mode=RESET} @self
]}
```
## Aliases
- [x] setTime
\ No newline at end of file