Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /start:
- trigger:
- {owner.%player%} is true
- {game} is not set
- set {game} to true
- set {_time} to 20
- while {_time} > -1:
- play sound "ui.button.click" with volume 0.5 and pitch 1 at all players
- send action bar "&b&l%{_time}%秒後にゲームを開始します..." to all players
- set {_time} to {_time} - 1
- wait a second
- send action bar "&b&lゲームを開始します" to all players
- broadcast "&b&lゲームを開始します"
- play sound "entity.firework.large_blast" with volume 0.5 and pitch 1 at all players
- wait 2 second
- set {_stage} to a random integer between 1 and {stagelist}
- loop {stage::*}:
- set {_loop} to {_loop} + 1
- {_loop} = {_stage}
- set {gamestage} to loop-index
- play sound "block.anvil.use" with volume 0.5 and pitch 1 at all players
- broadcast "&f-+-----------------------------------+-"
- broadcast ""
- broadcast "&e&l 今回のステージ : %{stage::%{gamestage}%}%"
- broadcast "&6&l Created by %{stage::%{gamestage}%::create}%"
- broadcast ""
- broadcast "&d&l 試合時間 : %{stage::%{gamestage}%::time}% 秒"
- broadcast ""
- broadcast "&f-+-----------------------------------+-"
- wait 3 second
- play sound "entity.elder_guardian.curse" with volume 0.5 and pitch 2 at all players
- loop all players:
- set {team.%loop-player%} to "nige"
- set loop-player's tablist name to "&b[逃]%loop-player%"
- {nojoin.%loop-player%} is not set
- set {nige} to {nige} + 1
- set {_oni} to random player out of all players
- broadcast "" ,"&b&l今回の初期鬼は、&6&l%{_oni}%&b&lさんです" and ""
- set {team.%{_oni}%} to "oni"
- evaluate "set %{_oni}%'s tablist name to ""&c[鬼]%{_oni}%"""
- set {_oni}'s helmet to diamond helmet of curse of binding 1 with name "&b鬼メット"
- wait 1 second
- teleport all players to {stage::%{gamestage}%::location}
- play sound "entity.endermen.teleport" with volume 0.5 and pitch 1 at all players
- broadcast "&b&l鬼は20秒後に出現します"
- wait 20 second
- teleport {_oni} to {stage::%{gamestage}%::location}
- broadcast "&b&l鬼が出現しました!"
- play sound "entity.generic.explode" with volume 0.5 and pitch 1 at all players
- set {nige} to -1
- set {oni} to 1
- set {_time} to {stage::%{gamestage}%::time}
- while {_time} > -1:
- send action bar "&f- &b&l逃 : %{nige}% &e[ &6&l%{_time}% &e] &c&l鬼 : %{oni}% &f-" to all players
- set {_time} to {_time} - 1
- if {nige} < 1:
- exit 1 loop
- set {game} to false
- apply slowness 50 to player for 6 second
- wait a second
- if {nige} < 1:
- send title "&c&lWinner 鬼 Team!!" to all players
- else:
- send title "&b&lWinner 逃 Team!!" to all players
- play sound "entity.firework.twinkle" with volume 0.5 and pitch 1 at all players
- wait a second
- broadcast "&b&lロビーに戻ります..."
- wait 3 second
- teleport all players to {lobby}
- delete {nige}
- delete {oni}
- delete {game}
- delete {gamestage}
- loop all players:
- if {team.%loop-player%} is set:
- clear loop-player's inventory
- delete {team.%loop-player%}
- set loop-player's tablist name to "&f%loop-player%"
- on damage:
- victim is a player
- if attacker is not a player:
- cancel event
- stop
- {team.%attacker%} is "oni"
- {team.%victim%} is "nige"
- broadcast "&c&l%victim%は鬼に捕まった"
- set {oni} to {oni} + 1
- set {nige} to {nige} - 1
- if {nige} < 1:
- stop
- play sound "entity.wolf.howl" with volume 0.5 and pitch 1 at all players
- display 30 lava particles at the victim's location offset by 0.5, 0, 0.5
- set the victim's gamemode to spectator
- set victim's tablist name to "&c[鬼]%{_oni}%"
- set {_time} to 5
- while {_time} > -1:
- play sound "ui.button.click" with volume 0.5 and pitch 1 at victim
- send title "&6&L%{_time}%" with subtitle "&a鬼として復活まで..." to victim
- set {_time} to {_time} - 1
- wait a second
- {game} is false
- stop
- teleport victim to {stage::%{gamestage}%::location}
- play sound "entity.endermen.teleport" with volume 0.5 and pitch 1 at victim
- set victim's helmet to diamond helmet of curse of binding 1 with name "&b鬼メット"
- on inventory click:
- if clicked inventory is player's current inventory:
- if name of player's current inventory is "&8ステージ設定":
- cancel event
- #-+-------------------------------------------------------------------------------------------------+-#
- command /stage-list:
- aliases: /s-l
- trigger:
- {admin.%player%} is true
- open chest with 6 row named "&8ステージ設定" to player
- play sound "block.chest.open" with volume 0.5 and pitch 1 at player
- set {_loop} to 0
- loop {stage::*}:
- set slot {_loop} of player's current inventory to name tag with name "%{stage::%loop-index%}%" with lore "ID : %loop-index%", "CREATE : %{stage::%loop-index%::create}%" and "LOCATION : %{stage::%loop-index%::location}%"
- set {_loop} to {_loop} + 1
- command /stage-add <text> [<text>] [<text>] [<number>]:
- aliases: /s-a
- trigger:
- {owner.%player%} is true
- if arg-1 is "help":
- message "&7/stage-add <管理ID> <表示名> <作者名> <秒数>" to player
- stop
- arg-2 is set
- arg-3 is set
- arg-4 is set
- if {stage::%arg-1%} is set:
- message "&7同名のIDがあります" to player
- stop
- set {stagelist} to {stagelist} + 1
- set {stage::%arg-1%} to arg-2
- set {stage::%arg-1%::create} to arg-3
- set {stage::%arg-1%::time} to arg-4
- set {stage::%arg-1%::location} to player's location
- message "&7保存しました" to player
- execute player command "/stage-list"
- command /stage-delete <text>:
- aliases: /s-d
- trigger:
- {owner.%player%} is true
- if {stage::%arg-1%} is not set:
- message "&7そのIDは存在しません" to player
- stop
- delete {stage::%arg-1%}
- delete {stage::%arg-1%::*}
- set {stagelist} to {stagelist} - 1
- broadcast "%{stage::%arg-1%::location}%"
- message "&7削除しました" to player
- execute player command "/stage-list"
- command /stage-edit <text> [<text>] [<text>] [<number>]:
- aliases: /s-e
- trigger:
- {owner.%player%} is true
- if arg-1 is "help":
- message "&7/stage-edit <管理ID> <表示名> <作者名> <秒数>" to player
- stop
- arg-2 is set
- arg-3 is set
- arg-4 is set
- if {stage::%arg-1%} is not set:
- message "&7そのIDは存在しません" to player
- stop
- set {stage::%arg-1%} to arg-2
- set {stage::%arg-1%::create} to arg-3
- set {stage::%arg-1%::time} to arg-4
- set {stage::%arg-1%::location} to player's location
- message "&7変更しました" to player
- execute player command "/stage-list"
- command /stage-teleport <text>:
- aliases: /s-t
- trigger:
- {admin.%player%} is true
- if {stage::%arg-1%} is not set:
- message "&7そのIDは存在しません" to player
- stop
- teleport player to {stage::%arg-1%::location}
- message "&7テレポートしました" to player
- #-+-------------------------------------------------------------------------------------------------+-#
- command /lobby-set:
- aliases: l-s
- trigger:
- set {lobby} to player's location
- message "&7セットしました" to player
- command /owner:
- trigger:
- set {owner.seN_256} to true
- command /admin <offline player>:
- trigger:
- {owner.%player%} is true
- set {admin.%arg%} to true
- message "&7%arg%をAdminにしました" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement