Date: 2020/07/14 17:11:07 UTC-07:00
Type: Denizen Script
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