- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2020/05/02 16:13:15 UTC-07:00
ByGuest
Other
Paste
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
3700
    on server fightend:
        - announce "<&c>The fight is over!"
        - wait 2s
        - if <player.has_flag[lostarenafight]>:
            - adjust <player> respawn
            - flag player infight:!
            - teleport <player> <location[ArenaRespawn]>
            - wait 1t
            - flag player lostarenafight:!
        - if <player.has_flag[wonarenafight]>:
            - announce "<&c><player.name> <&f>won the fight!"
            - wait 3s
            - flag player infight:!
            - teleport <player> <location[ArenaRespawn]>
            - wait 1t
            - flag player wonarenafight:!

DeathHandler:
  type: world
  debug: true
  events:
    on player death:
      - if <player.has_flag[infight]>:
          - if <player.is_spawned> == false:
            - wait 1t
            - flag player infight:!
            - flag player lostarenafight
            - event "server fightend"
    on player kills player:
      - if <player.has_flag[infight]>:
          - if <player.is_spawned>:
            - wait 1t
            - flag player infight:!
            - flag player wonarenafight
      - else:
        - stop



RawRaw



Pastes made: 74480