Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- victim and attacker is player
- damage cause is attack
- cancel event
- if {play.%victim%} is true:
- if {oni.%attacker%} is true:
- set {oni.%attacker%} to false
- set {oni.%victim%} to true
- execute console command "scoreboard players tag %victim% add oni"
- execute console command "scoreboard players tag %attacker% remove oni"
- broadcast "&c&l%victim%さんが鬼になりました!"
- execute console command "nte player %victim% prefix &4"
- execute console command "nte player %attacker% prefix &a"
- stop
- else:
- stop
- else:
- stop
- command /first:
- executable by: console
- trigger:
- set {start} to true
- broadcast "&a&l抽選中..."
- wait 5 seconds
- loop {play::*}:
- set {_oni} to random element of {play::*}
- broadcast "&b%{_oni}%"さんが鬼になりました!"
- execute console command "scoreboard players tag %{_oni}% add oni"
- execute console command "tellraw @a ["""",{""selector"":""@a[tag=oni]"",""color"":""aqua""},{""text"":""さんが鬼になりました!"",""color"":""yellow""}]"
- execute console command "start"
- command /play:
- trigger:
- if {start} is false:
- set {play::%player%} to true
- add 1 to {play}
- execute console command "scoreboard players tag %player% add play"
- broadcast "&a%player%さんが参加しました!"
- if {play} is 2:
- broadcast "&aあと15秒で抽選を開始します!抽選開始以降は参加できません。"
- wait 15 seconds
- execute console command "first"
- stop
- else:
- message "&c途中参加はできません。"
- command /start:
- executable by: console
- trigger:
- execute console command "gamemode adventure @a[tag=play]"
- execute console command "tp @a[tag=!oni] 492 4 175"
- broadcast "&b20秒後に鬼が解放されます..."
- wait 20 seconds
- execute console command "tp @a[tag=oni] 492 4 175"
- broadcast "&b&l鬼が解放されました!"
- wait 30 seconds
- broadcast "&a残り一分..."
- wait 30 seconds
- broadcast "&a残り三十秒..."
- wait 15 seconds
- broadcast "&a残り十五秒..."
- wait 12 seconds
- broadcast "&a3"
- wait 1 seconds
- broadcast "&a2"
- wait 1 seconds
- broadcast "&a1"
- wait 1 seconds
- broadcast "&b&l終了!"
- execute console command "end"
- command /end:
- executable by: console
- trigger:
- execute console command "tp @a 467 4 192"
- execute console command "scoreboard players tag @a remove oni"
- execute console command "scoreboard players tag @a remove play"
- delete {play}
- loop all players:
- delete {play.%loop-player%}
- set {start} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement