Paste #72234: Untitled Paste

Date: 2020/07/14 17:11:07 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
20


bunnyHandler:
    type: world
    events:
        on rabbit damaged by FALL:
        - determine cancelled
        on rabbit targets player:
        - ratelimit <context.entity> 3s
        - shoot <context.entity> destination:<context.target.eye_location> speed:0.2 script:killDamage def:<context.target>

killDamage:
    type: task
    definitions: entity
    script:
    - hurt 16 <[entity]>

killerBunny:
    type: task
    script:
    - spawn rabbit[color=THE_KILLER_BUNNY] <player.location.add[<util.random.decimal[-2].to[2]>,2,<util.random.decimal[-2].to[2]>]> save:bunny
    - adjust <entry[bunny].spawned_entity> health:2