Paste #128117: my first world script

Date: 2024/11/13 14:39:58 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


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


teleport_script:
    type: task
    script:
    - define player <server.online_players.random.name>
    - announce 'i have found <[player]>'
    - wait 3
    - narrate "<[player]> you were teleport in 5 sec"
    - wait 5
    - teleport <[player]> <[plantpos]>