Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /scoreoption:
- trigger:
- command "/scoreboard teams add red"
- command "/scoreboard teams add blue"
- command "/scoreboard teams option red color red"
- command "/scoreboard teams option blue color blue"
- command "/scoreboard teams option red friendlyfire false"
- command "/scoreboard teams option blue friendlyfire false"
- command "/scoreboard teams option red nametagVisibility hideForOtherTeams"
- command "/scoreboard teams option blue nametagVisibility hideForOtherTeams"
- command /start:
- trigger:
- if {game} is false:
- set {gameplayer} to 0
- loop all players:
- if {join.%loop-player%} is true:
- add 1 to {gameplayer}
- if {gameplayer} <= 1:
- send "&c参加人数が足りませんでした" to player
- else:
- set {red} to 0
- set {blue} to 0
- set {count} to 180
- set {lobby} to location (0, 10, 0)
- set {cmdlobby} to "0 10 0"
- set {redspawn} to location (1, 4, 0)
- set {bluespawn} to location (-1, 4, 0)
- set {obsidian} to true
- set {diamondpickaxe} to true
- command "/scoreboard teams empty red"
- command "/scoreboard teams empty blue"
- loop all players:
- if {join.%loop-player%} is true:
- if {a} == 0:
- command "clear %loop-player%"
- if {obsidian} is true:
- command "/give %loop-player% minecraft:obsidian 1 0 {CanPlaceOn:[""minecraft:gold_block""]}"
- set {obsidian} to false
- set {team.%loop-player%} to "red"
- add 1 to {red}
- command "/scoreboard teams join red %loop-player%"
- wait 2 ticks
- teleport the loop-player to {redspawn}
- give bow to loop-player
- give 32 arrow to loop-player
- equip loop-player with leather helmet
- dye loop-player's helmet (255, 51, 0)
- delete {join.%loop-player%}
- set {a} to 1
- else:
- command "clear %loop-player%"
- if {diamondpickaxe} is true:
- command "/give %loop-player% minecraft:diamond_pickaxe 1 0 {ench:[{id:32s,lvl:1s}],CanDestroy:[""minecraft:obsidian""]}"
- set {diamondpickaxe} to false
- set {team.%loop-player%} to "blue"
- add 1 to {blue}
- command "/scoreboard teams join blue %loop-player%"
- wait 2 ticks
- teleport the loop-player to {bluespawn}
- give bow to loop-player
- give 32 arrow to loop-player
- equip loop-player with leather helmet
- dye loop-player's helmet (0, 51, 255)
- delete {join.%loop-player%}
- set {a} to 0
- set {game} to true
- else:
- send "&c現在試合中です" to player
- on death of player:
- if {game} is true:
- set {DeathPoint.%player%} to location of player
- force the player to respawn
- teleport player to {DeathPoint.%player%}
- set the player's gamemode to spectator
- remove 1 from {%{team.%victim%}%}
- add 1 to {kill.%uuid of attacker%}
- add 1 to {death.%uuid of victim%}
- add 3 to {xp.%uuid of attacker%}
- broadcast "<%{team.%attacker%}%>%attacker% &7--&8|&6)&7--> <%{team.%victim%}%>%victim%"
- if {red} is 0:
- set {game} to false
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&9&l敗北" with subtitle "&c味方が全員倒された" for 5 seconds
- add 1 to {lose.%uuid of loop-player%}
- add 10 to {xp.%uuid of attacker%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set the loop-player's gamemode to survival
- delete {team.%loop-player%}
- else if {blue} is 0:
- set {game} to false
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set the loop-player's gamemode to survival
- delete {team.%loop-player%}
- else:
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- if {team.%loop-player%} is "blue":
- send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- on quit:
- if {team.%player%} is set:
- remove 1 from {%{team.%player%}%}
- delete {team.%player%}
- command "/scoreboard teams leave %{team.%player%}% %player%"
- if {red} is 0:
- set {game} to false
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&9&l敗北" with subtitle "&c味方が全員倒された" for 5 seconds
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set the loop-player's gamemode to survival
- delete {team.%loop-player%}
- else if {blue} is 0:
- set {game} to false
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set the loop-player's gamemode to survival
- delete {team.%loop-player%}
- else:
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- if {team.%loop-player%} is "blue":
- send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
- on place of obsidian:
- if {game} is true:
- set {count} to 40
- loop all players:
- if {team.%loop-player%} is "red":
- send "&a&l黒曜石が設置された!" to loop-player
- send loop-player title " " with subtitle "&a&l黒曜石が設置された!" for 3 seconds
- if {team.%loop-player%} is "blue":
- send "&c&l黒曜石が設置された!" to loop-player
- send loop-player title " " with subtitle "&c&l黒曜石が設置された!" for 3 seconds
- on break of obsidian:
- if {game} is true:
- set {game} to false
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&9&l敗北" with subtitle "&f黒曜石が破壊された" for 5 seconds
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&6&l勝利" with subtitle "&f黒曜石を破壊した" for 5 seconds
- add 1 to {victory.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- teleport the loop-player to {lobby}
- set the loop-player's gamemode to survival
- delete {team.%loop-player%}
- every a second in "world":
- if {game} is true:
- remove 1 from {count}
- if {count} < 0:
- set {game} to false
- loop all players:
- if {team.%loop-player%} is "red":
- send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
- add 1 to {lose.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- if {team.%loop-player%} is "blue":
- send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
- add 1 to {win.%uuid of loop-player%}
- execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
- wait 6 seconds
- loop all players:
- if {team.%loop-player%} is set:
- command "clear %loop-player%"
- give grey dye named "&eゲームに参加する" to loop-player
- command "/tp %loop-player% %{cmdlobby}%"
- set the loop-player's gamemode to survival
- delete {team.%loop-player%}
- loop all players:
- if {team.%loop-player%} is set:
- set action bar of loop-player to "&e(残り時間: %{count}%秒)"
- command /stats [<offline player>]:
- trigger:
- if arg 1 is not set:
- set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
- set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
- send "&akill: &e%{kill.%uuid of player%}%" to player
- send "&adeath: &e%{death.%uuid of player%}%" to player
- send "&aK/D: &e%{killdeath.%uuid of player%}%" to player
- send "&awin: &e%{win.%uuid of player%}%" to player
- send "&alose: &e%{lose.%uuid of player%}%" to player
- send "&aW/L: &e%{winlose.%uuid of player%}%" to player
- on click:
- if player is holding lime dye named "&cゲームを抜ける":
- remove lime dye named "&cゲームを抜ける" from player
- set {join.%player%} to false
- send "&cゲームを抜けました"
- wait 5 ticks
- give grey dye named "&eゲームに参加する" to player
- on click:
- if player is holding grey dye named "&eゲームに参加する":
- remove grey dye named "&eゲームに参加する" from player
- set {join.%player%} to true
- send "&eゲームに参加しました" to player
- wait 5 ticks
- give lime dye named "&cゲームを抜ける" to player
- command /dye:
- trigger:
- give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement