forked from nisovin/MagicSpells
-
Notifications
You must be signed in to change notification settings - Fork 72
TimeSpell
JasperLorelai edited this page Jun 28, 2026
·
9 revisions
spell-class: ".instant.TimeSpell"| Value | Supported |
|---|---|
entity |
true - Since 4.0 Beta 19
|
location |
true |
entity_from_location |
false |
This spell changes the time of the world the caster is in. Spell Power does not affect this spell.
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
| Option | Description | Type | Default |
|---|---|---|---|
Before 4.0 Beta 19:time-to-setSince 4.0 Beta 19:time as an alternative
|
This is a number from 0 to 24000. Some approximate values are: 0 is dawn, 6000 is noon, 12000 is dusk, and 18000 is midnight. |
Integer | 0 |
str-announce |
The message to send to all players in the world when the time is changed. | Rich Text |
Before 4.0 Beta 19"The sun suddenly appears in the sky."Since 4.0 Beta 19""
|
add-time |
Since 4.0 Beta 19. | Boolean | false |
set-player-time |
Since 4.0 Beta 19. To reset player time, and sync it with world time, use time: 0 with this enabled. |
Boolean | false |
Dawn:
spell-class: ".instant.TimeSpell"
name: Dawn
cast-item: blaze_rod
str-announce: The sun is finally rising!
time-to-set: 22550
cooldown: 200