Paste #72239: Untitled Paste

Date: 2020/07/14 20:29:27 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
        after rabbit targets player:
        - ratelimit <context.entity> 3s
        - shoot <context.entity> origin:<context.entity> destination:<context.target.eye_location> script:killDamage def:<context.target>

killDamage:
    type: task
    definitions: entity
    script:
    - hurt 1 <[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