Paste #72648: Untitled Paste

Date: 2020/07/21 04:42:25 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


testeq:
    type: task
    debug: false
    Script:
        - define t <util.pi.div[4]>
        - define loc <player.location>
        - define t:+:<util.pi.mul[0.1]>
        - define theta 0
        - while <[theta].is[OR_LESS].than[<util.pi.mul[2]>]>:
            - while <[t].is[LESS].than[20]>:
                - define theta:+:<util.pi.div[32]>
                - define x <[t].mul[<[theta].cos>]>
                - define y <util.e.power[<[t].mul[-0.1]>].mul[2].mul[<[t].sin>].add[1.5]>
                - define z <[t].mul[<[theta].sin>]>
                - narrate "player t is <[t]>"
                - define loc <[loc].add[<[x]>,<[y]>,<[z]>]>
                - playeffect effect:flame at:<[loc]> offset:0 quantity:2
                - define loc <[loc].sub[<[x]>,<[y]>,<[z]>]>
                - wait 1t