- 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


TitleEdit of P#59716 - using Citizens NPC of type=bat
TypeDenizen Script
Date2019/11/07 19:16:32 UTC-08:00
ByGuest
OtherEdit of paste #59716 - click here to see edit details
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
1800
batz2:
    type: task
    debug: true
    script:

    #- cast slow d:30s p:1 <player> hide_particles
    - foreach <server.list_npcs_named[bats]> as:bt:
        - define <[bt]>:<util.random.int[1].to[360]>
    - wait 1t
    - repeat 36 as:loop:
        - wait 2t
        - foreach <server.list_npcs_named[bats]> as:bb:
            - define from:<tern[<[loop].mul[20].add[<[<[bb]>]>].is[more].than[360]>].pass[<[loop].mul[20].add[<[<[bb]>]>].sub[360].to_radians>].fail[<[loop].mul[20].add[<[<[bb]>]>].to_radians>].sub[1]>
            #- walk <[bb]> <player.location.add[<location[3,<util.random.decimal[1].to[4]>,3].rotate_around_y[<[circle]>]>]> speed:1.2 radius:3
            - push <[bb]> origin:<player.location.add[<location[1,<util.random.decimal[1].to[4]>,1].rotate_around_y[<[from]>]>]>  destination:<player.location.add[<location[1,<util.random.decimal[1].to[4]>,1].rotate_around_y[<[circle]>]>]> speed:1 duration:3t
            - wait 1t




RawRaw



Pastes made: 62554