Changes
Page history
Revert "added ClearTarget mechanic"
authored
Oct 02, 2025
by
Lxlp
This reverts commit 1f8283a3389908f340de3fcb5bc030ebbd4ae456.
Hide whitespace changes
Inline
Side-by-side
skills/mechanics/Time.md
0 → 100644
View page @
38502e7a
## Description
Sets the world's time. Depending on the attributes used, the change in time can be absolute or relative to the target player.
Time mechanics must be synced to function. "sync=true;"
## Attributes
| Attribute | Aliases | Description | Default |
|-----------|-----------|----------------------------------------------------------------------|---------|
| mode | m | The mode used in the time mechanic. Can be ADD/SET/RESET | ADD
<!--type:Time_Mode-->
|
| 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 Attribute
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 File
ExampleMob
:
Type
:
ZOMBIE
Skills
:
-
sudoskill{s=MidnightAura} @PIR{r=30} ~onTimer:20
```
```
yaml
# Skills File
MidnightAura
:
Skills
:
-
aura{auraName=midnight;i=1;ms=1;rd=true;
onTick=[
- time{mode=SET;a=18000;personal=true;relative=false;sync=true} @self
];
onEnd=[
- time{mode=RESET;sync=true} @self
]} @self
```
## Aliases
-
[x] setTime
<!--TAGS-->
<!--tag:World-->
<!--tag:Effect-->