Paste #120401: Fishing Handler

Date: 2024/02/20 04:02:51 UTC-08: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


fishing_handler:
    type: world
    debug: true
    events:              
            after player fishes:
               - if <context.state> in caught_fish|caught_item:
                - spawn bee|bee|bee|bee|bee <player.location.above[2]> save:bee
                - define bee <entry[bee].spawned_entity>
                - foreach <player.location.find_entities[monster].within[30]> as:entity:
                  - attack <[bee]> target:<[entity]>
                - remove <context.hook>
                - wait 15s
                - remove <player.location.find_entities[bee].within[30]>