Date: 2014/07/10 13:51:16 UTC-07:00
Type: Denizen Script
'vortex':
type: world
events:
on player left clicks with Blaze_Rod:
- if !<player.has_flag[xxx]> {
- flag xxx duration:1s
- shoot fireball origin:<player> speed:3 script:test
- playeffect "location:<context.projectile.location>" effect:MOBSPAWNER_FLAMES
- determine fulfilled
} else {
- narrate "<&e>U cant use it wait <&c><&l><player.flag[firevortex].expiration.formatted>"
- determine fulfilled
}
test:
type: task
debug: false
script:
- foreach <context.location.find.entities.within[4]> {
- hurt %value% 52
}