Date: 2020/07/14 20:29:27 UTC-07:00
Type: Denizen Script
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