Timespans
Most timespans in Mythic have a default unit based on their context. For example, cooldown=1 measures as 1 second, while aura{duration=20} is 20 ticks, aiming for 1 second. The smallest unit of timespan Minecraft can typically process is 1 tick, which is 0.05s/50ms. Typical Mythic config values measure in seconds, while most mechanic attributes measure in ticks.
Placeholder Duration
Most timespans may now optionally declare a unit of measure. These placeholders are absolute, they do not want to work with in-line math, other placeholders, or string combinations.
Timespan Units
| Unit | Description | Ticks |
|---|---|---|
| t | ticks | 1 tick |
| s | seconds | 20 ticks |
📝Likely more within
io.lumine.utils.numbers.DurationUnit
Example Usage
# The duration attribute within potion measures in ticks, but this overrides it to be 10 seconds, or 200 ticks.
- potion{type=POISON;duration=10s}
# Cooldowns are measured in seconds by default, but this skill will use 30 ticks for a 1.5s cooldown:
- skill{s=activate_power;cooldown=30t}