# Untitled

Feb 17th, 2021
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. loop 600 times: # time in seconds
2. subtract 1 from {sw.arena.%{_value}%.seconds}
3. wait 1 second
4. if {sw.arena.%{_value}%.seconds} < 11:
5. set {0.%{_value}%} to "&a0"
6. else:
7. set {0.%{_value}%} to ""
8. if {sw.arena.%{_value}%.seconds} <= 1:
9. if {sw.arena.%{_value}%.minutes} != 0:
10. wait 1 second
11. set {0.%{_value}%} to ""
12. set {sw.arena.%{_value}%.seconds} to 60
13. subtract 1 from {sw.arena.%{_value}%.minutes}
14. else:
15.
16. wait 1 second
17. subtract 1 from {sw.arena.%{_value}%.event.num}
18.
19. if {sw.arena.%{_value}%.event.num} = 3:
20. set {0.%{_value}%} to ""
21. set {sw.arena.%{_value}%.minutes} to 1
22. set {sw.arena.%{_value}%.seconds} to 59
23. loop blocks in radius 100 around {sw.arena.%{_value}%.center.loc}:
24. if loop-block is a chest:
25. clear loop-block's inventory
26. loop (random integer between 10 and 20) times:
27. set {_random} to random element out of {normalislandchests::*}
28. set {_slot} to a random integer between 0 and 26
29. add {_random} to slot {_slot} of loop-block's inventory
30. wait 1 tick
31. if loop-block is a trapped chest:
32. clear loop-block's inventory
33. loop (random integer between 5 and 12) times:
34. set {_random} to random element out of {normalmidchests::*}
35. set {_slot} to a random integer between 0 and 26
36. add {_random} to slot {_slot} of loop-block's inventory
37. wait 1 tick
38. send {sw.arena.%{_value}%.players.alive::*} title "{@refill}" for 1 seconds
39. play sound "block.chest.open" with volume 5 at player for {sw.arena.%{_value}%.players.alive::*}
40. wait 60 seconds
41. send {sw.arena.%{_value}%.players.alive::*} title "{@5minremaining}" for 1 second
42.
43.
44. if {sw.arena.test.event.num} = 2:
45. set {0.%{_value}%} to ""
46. set {sw.arena.%{_value}%.minutes} to 2
47. set {sw.arena.%{_value}%.seconds} to 59
48. set {sw.arena.%{_value}%.event} to "{@gamedoom}"
49. loop blocks in radius 100 around {sw.arena.%{_value}%.center.loc}:
50. if loop-block is a chest:
51. clear loop-block's inventory
52. loop (random integer between 10 and 20) times:
53. set {_random} to random element out of {normalislandchests::*}
54. set {_slot} to a random integer between 0 and 26
55. add {_random} to slot {_slot} of loop-block's inventory
56. wait 1 tick
57. if loop-block is a trapped chest:
58. clear loop-block's inventory
59. loop (random integer between 5 and 12) times:
60. set {_random} to random element out of {normalmidchests::*}
61. set {_slot} to a random integer between 0 and 26
62. add {_random} to slot {_slot} of loop-block's inventory
63. wait 1 tick
64. send {sw.arena.%{_value}%.players.alive::*} title "{@refill}" for 1 seconds
65. play sound "block.chest.open" with volume 5 at player for {sw.arena.%{_value}%.players.alive::*}
66. wait 120 seconds
67. send {sw.arena.%{_value}%.players.alive::*} title "{@2minremaining}" for 1 second
68. wait 60 seconds
69. send {sw.arena.%{_value}%.players.alive::*} title "{@1minremaining}" for 1 second
70.
71. if {sw.arena.%{_value}%.event.num} = 1:
72. set {0.%{_value}%} to ""
73. set {sw.arena.%{_value}%.minutes} to 1
74. set {sw.arena.%{_value}%.seconds} to 31
75. set {sw.arena.%{_value}%.event} to "{@gameend}"
76. send "&cSUDDEN DEATH: &6+&b1&6 dragon!" to {sw.arena.%{_value}%.players.alive::*}
77. send {sw.arena.%{_value}%.players.alive::*} title "{@doom}"
78. wait 30 seconds
79. send "&cSUDDEN DEATH: &6+&b1&6 dragon!" to {sw.arena.%{_value}%.players.alive::*}
80. send {sw.arena.%{_value}%.players.alive::*} title "{@doom}"
RAW Paste Data