- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2018/08/12 05:59:14 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
3100
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].add[<def[FireArcLoc2]>].div[2]>
                - define FireArcBaseLoc l@0,<def[FireArcCenterLoc].y>,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[FireArcBaseLoc].face[<player.location>].yaw.raw.to_radians>].rotate_around_x[<def[FireArcLoc2].face[<def[FireArcCenterLoc]>].pitch.to_radians>].parse[add[<player.location>]]> effect:flame quantity:1 offset:0,0,0
                    - wait 1t
                }
            }



RawRaw



Pastes made: 55651