Date: 2018/08/12 05:35:14 UTC-07:00
Type: Denizen Script
FireArc:
type: world
debug: false
events:
on player right clicks with item:
- if <player.has_flag[element_toggled]> {
- queue clear
}
- if <player.flag[element].is[!=].to[fire]> {
- queue clear
}
- if <player.flag[FireArcPhase]||0> == 0 {
- flag <player> FireArcPhase:1
- flag <player> FireArcLoc1:<player.location.distance[<player.location.cursor_on[4]>]>
- queue clear
}
- if <player.flag[FireArcPhase]> == 1 {
- define FireArcLoc2 <player.location.cursor_on[4]>
- define FireArcLoc1 <player.flag[FireArcLoc1]>
- define FireArcCenterLoc <def[FireArcLoc1].y.add[<def[FireArcLoc2].y>]>
- define FireArcBaseLoc l@0,<def[FireArcCenterLoc].div[2]>,4,<player.location.world.name>
- define FireArcLocs li@
- repeat 60 {
- define FireArcLocs <def[FireArcLocs].include[<def[FireArcBaseLoc].rotate_around_y[<util.tau.div[60].mul[<def[value]>]>]>]>
}
- repeat 10 {
- playeffect <def[FireArcLocs].parse[rotate_around_y[<def[FireArcCenterLoc].face[<player.location>].pitch>]].parse[rotate_around_y[<trig stuff>]].parse[add[<player.location>]]> effect:flame quantity:1 offset:0,0,0
- wait 1t
}
}