Mechanic

time

Sets the world's absolute time

Aliases

setTime

Configuration Fields (4)

NameTypeDefaultDescription
mode
m
Mode
amount
amt, ticks, t
PlaceholderInt20The amount to set
person booleanfalseSets whether to change the global time or the player's client time
relative booleanfalseSets whether to keep the player's time synchronized to its world time with an offset

Examples & Notes

Examples

# Mob File
ExampleMob:
  Type: ZOMBIE
  Skills:
  - sudoskill{s=MidnightAura} @PIR{r=30} ~onTimer:20
# Skills File
MidnightAura:
  Skills:
  - aura{auraName=midnight;i=1;ms=1;rd=true;
    onTick=[
      - time{mode=SET;amount=18000;personal=true;relative=false;sync=true} @self
    ];
    onEnd=[
      - time{mode=RESET;sync=true} @self
    ]} @self

Universal Mechanic Options

Mentioned by

Community-maintained documentation for the Mythic plugin ecosystem.