Date: 2014/02/04 00:25:31 UTC-08:00
Type: Denizen Script
TestCountdown:
type: task
definitions: seconds
script:
- define countdown 1.0
- define diff "<m:1.0/%seconds%>"
- adjust <player> "fake_experience:%countdown%"
- repeat <def[seconds].as_int> {
- define countdown <def[countdown].sub[%diff%]>
- run s@CountdownWaitTask "delay:%value%s" "def:%countdown%"
}
CountdownWaitTask:
type: task
definitions: countdown
script:
- adjust <player> "fake_experience:%countdown%"