set_time

Sets the time of day in the world on the server, affecting every player in it.

Categories: world

Required arguments

Key(s)DescriptionType
timeThe time in ticks to set (0=dawn, 6000=noon, 12000=dusk, 18000=midnight). Supports expressions.EXPRESSION

Optional arguments

Key(s)DescriptionTypeDefault
relativeIf true, the time is added to the world's current time instead of replacing it.BOOLEANfalse
worldThe name of the world to change. Defaults to the world the effect was triggered in.STRING

Trigger parameters required

  • LOCATION

Example

effects:
  - id: set_time
    args:
      time: 6000
      relative: true # ← Optional
      world: world_nether # ← Optional

Behaviour

SettingValue
Run orderNORMAL
Supports delaytrue
Reloads on plugin reloadtrue