Paste #128129: narrate not work for event: after plant grows naturally

Date: 2024/11/13 18:16:12 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
14
15
16
17
18
19
20
21


my_world_script:
    type: world
    events:
        after plant grows naturally:
        - define plantpos <context.location>
        - define isolda <[plantpos].format[fx, fy, fz]>
        - announce 'a tree is grown at <[plantpos]> Isolda = <[isolda]>'
        - inject teleport_script



teleport_script:
    type: task
    script:
    - define player <server.online_players.random>
    - define p-layer <[player].name>
    - announce 'i have found <[player].name> <[p-layer]>'
    - wait 3
    - narrate "<[p-layer]> hallo :)"
    - wait 5
    - teleport <[player]> <[plantpos]>