TimeSpell - TheComputerGeek2/MagicSpells GitHub Wiki
spell-class: ".instant.TimeSpell"
targeting
cast argument values:
Value | Supported |
---|---|
entity |
false |
location |
true |
entity_from_location |
false |
Description:
This spell changes the time of the world the caster is in. Spell Power does not affect this spell.
Configuration:
Since 4.0 Beta 13 these options support dynamic values through numeric or string expressions.
Option | Description | Type | Default |
---|---|---|---|
time-to-set |
The time to set. 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 | "The sun suddenly appears in the sky." |
Example:
Dawn:
spell-class: ".instant.TimeSpell"
name: Dawn
cast-item: blaze_rod
str-announce: The sun is finally rising!
time-to-set: 22550
cooldown: 200