SHOW:
|
|
- or go back to the newest paste.
1 | on damage: | |
2 | victim and attacker is player | |
3 | damage cause is attack | |
4 | cancel event | |
5 | - | if {play::%victim%} is true: |
5 | + | if {play.%victim%} is true: |
6 | if {oni.%attacker%} is true: | |
7 | set {oni.%attacker%} to false | |
8 | set {oni.%victim%} to true | |
9 | execute console command "scoreboard players tag %victim% add oni" | |
10 | - | execute console command "/nte player %victim% prefix &4" |
10 | + | execute console command "scoreboard players tag %attacker% remove oni" |
11 | - | execute console command "/nte player %attacker% prefix &a" |
11 | + | |
12 | execute console command "nte player %victim% prefix &4" | |
13 | execute console command "nte player %attacker% prefix &a" | |
14 | stop | |
15 | else: | |
16 | stop | |
17 | else: | |
18 | stop | |
19 | ||
20 | command /first: | |
21 | executable by: console | |
22 | trigger: | |
23 | set {start} to true | |
24 | - | set {oni::%loop-player%} to a random player out of {play::*} |
24 | + | |
25 | - | delete {play::%{oni.%loop-player%}%} |
25 | + | |
26 | - | broadcast "&a&l%{oni.%loop-player%}%さんが鬼になりました!" |
26 | + | |
27 | set {_oni} to random element of {play::*} | |
28 | - | command /play <player>: |
28 | + | broadcast "&b%{_oni}%"さんが鬼になりました!" |
29 | execute console command "scoreboard players tag %{_oni}% add oni" | |
30 | execute console command "tellraw @a ["""",{""selector"":""@a[tag=oni]"",""color"":""aqua""},{""text"":""さんが鬼になりました!"",""color"":""yellow""}]" | |
31 | - | set {play::%player%} to true |
31 | + | execute console command "start" |
32 | - | broadcast "&a%player%さんが参加しました!" |
32 | + | |
33 | - | if {play::*} is 2: |
33 | + | command /play: |
34 | - | broadcast "&aあと15秒で抽選を開始します!抽選開始以降は参加できません。" |
34 | + | |
35 | - | wait 15 seconds |
35 | + | if {start} is false: |
36 | - | execute console command "first" |
36 | + | set {play::%player%} to true |
37 | add 1 to {play} | |
38 | execute console command "scoreboard players tag %player% add play" | |
39 | broadcast "&a%player%さんが参加しました!" | |
40 | if {play} is 2: | |
41 | broadcast "&aあと15秒で抽選を開始します!抽選開始以降は参加できません。" | |
42 | wait 15 seconds | |
43 | execute console command "first" | |
44 | stop | |
45 | - | teleport {play::*} to location (492, 4, 175) |
45 | + | |
46 | message "&c途中参加はできません。" | |
47 | ||
48 | - | teleport {oni::*} to location (492, 4, 175) |
48 | + | |
49 | executable by: console | |
50 | trigger: | |
51 | execute console command "gamemode adventure @a[tag=play]" | |
52 | execute console command "tp @a[tag=!oni] 492 4 175" | |
53 | broadcast "&b20秒後に鬼が解放されます..." | |
54 | wait 20 seconds | |
55 | execute console command "tp @a[tag=oni] 492 4 175" | |
56 | broadcast "&b&l鬼が解放されました!" | |
57 | wait 30 seconds | |
58 | broadcast "&a残り一分..." | |
59 | wait 30 seconds | |
60 | broadcast "&a残り三十秒..." | |
61 | wait 15 seconds | |
62 | broadcast "&a残り十五秒..." | |
63 | wait 12 seconds | |
64 | broadcast "&a3" | |
65 | wait 1 seconds | |
66 | broadcast "&a2" | |
67 | wait 1 seconds | |
68 | broadcast "&a1" | |
69 | wait 1 seconds | |
70 | - | delete {play::*} |
70 | + | |
71 | - | delete {oni::*} |
71 | + | |
72 | ||
73 | command /end: | |
74 | executable by: console | |
75 | trigger: | |
76 | execute console command "tp @a 467 4 192" | |
77 | execute console command "scoreboard players tag @a remove oni" | |
78 | execute console command "scoreboard players tag @a remove play" | |
79 | delete {play} | |
80 | loop all players: | |
81 | delete {play.%loop-player%} | |
82 | set {start} to false |