Date: 2023/01/27 07:13:00 UTC-08:00
Type: Denizen Script
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
38
39
40
41
ArenaTeleportFighters:
type: task
debug: false
script:
- wait 2s
- teleport <[PlayerOne]> ArenaTeamRedSpawnOne
- flag <[PlayerOne]> Arena.Infight:!
- flag <[PlayerOne]> Arena.InFight:->:Yes
- flag <[PlayerOne]> Arena.Alive
- flag <[PlayerOne]> Arena.Teleporting
- teleport <[PlayerTwo]> ArenaTeamBlueSpawnOne
- flag <[PlayerTwo]> Arena.Infight:!
- flag <[PlayerTwo]> Arena.InFight:->:Yes
- flag <[PlayerTwo]> Arena.Alive
- flag <[PlayerTwo]> Arena.Teleporting
- run ArenaTeleportFighterEffect instantly
- wait 2s
- flag <[PlayerOne]> Arena.Teleporting:!
- flag <[PlayerTwo]> Arena.Teleporting:!
- run ArenaCountDownUpperRing instantly
- run ArenaCountDownFighters instantly
ArenaTeleportFighterEffect:
type: task
debug: false
script:
- foreach <server.online_players_flagged[Arena.Teleporting]> as:__player:
- playsound BLOCK_PORTAL_TRAVEL at:<player.location> pitch:2 volume:0.1
- cast DARKNESS duration:4 amplifier:3 <player> no_icon
- cast blindness duration:4 amplifier:3 <player> no_icon
- while <player.has_flag[Arena.Teleporting]> && <player.is_online>:
- define PLoc <player.location>
- define Loc1 <[PLoc].below[0.5]>
- define Loc2 <[PLoc]>
- define Loc3 <[PLoc].above[0.5]>
- define Angle1 <location[0,0.6,0.8].rotate_around_y[<[loop_index].to_radians.mul[10]>]>
- define Angle2 <location[0,0.6,0.8].rotate_around_y[<[loop_index].to_radians.mul[40]>]>
- playeffect effect:FLAME at:<[loc1].add[<[angle1]>]>|<[loc2].add[<[angle1]>]>|<[loc3].add[<[angle1]>]> offset:0 quantity:1 velocity:0,0.1,0
- playeffect effect:SMALL_FLAME at:<[loc1].add[<[angle2]>]>|<[loc2].add[<[angle2]>]>|<[loc3].add[<[angle2]>]> offset:0 quantity:1 velocity:0,0.1,0
- if <[loop_index].mod[2]> == 0:
- wait 2t