Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /melonwars [<text>]:
- trigger:
- if arg 1 is not set:
- message "&e&l[&a&lMelonWars&e&l] &c実行名を指定してください"
- if arg 1 is "join":
- if {melonwars.join.%player%} is 0:
- if {suikagun.join} is 1:
- message "&e&l[&a&lMelonWars&e&l] &aメロン軍に参加しました。"
- add 1 to {melongun.join}
- set {melongun.join.%player%} to 1
- add 1 to {melonwars.join}
- set {melonwars.join.%player%} to 1
- remove 1 from {suikagun.join}
- execute console command "/tp %player% 163 109 -155"
- if {melongun.join} is 1:
- message "&e&l[&a&lMelonWars&e&l] &aスイカ軍に参加しました。"
- add 1 to {suikagun.join}
- set {suikagun.join.%player%} to 1
- add 1 to {melonwars.join}
- set {melonwars.join.%player%} to 1
- remove 1 from {melongun.join}
- execute console command "/tp %player% 162 109 -51"
- if {melonwars.join} is more than 2:
- broadcast "&e&l[&a&lMelonWars&e&l] &aメロンウォーズに%{melonwars.join}%人参加しました。あと20秒で開始します。参加したい方はあと20秒以内に参加してください。/melonwars join"
- wait 20 seconds
- broadcast "&e&l[&a&lMelonWars&e&l] &aゲームを開始します。"
- execute console command "/setblock 228 139 -35 redstone_block"
- wait 1 seconds
- broadcast "&e&l[&a&lMelonWars&e&l] &a3秒前..."
- wait 1 seconds
- broadcast "&e&l[&a&lMelonWars&e&l] &a2秒前..."
- wait 1 seconds
- broadcast "&e&l[&a&lMelonWars&e&l] &a1秒前..."
- wait 1 seconds
- broadcast "&e&l[&a&lMelonWars&e&l] &aスタート!"
- set {melonwars.start} to 1
- execute console command "/fill 163 108 -50 161 108 -52 air"
- execute console command "/fill 164 108 -156 162 108 -154 air"
- if {melonwars.join.%player%} is 1:
- message "&e&l[&a&lMelonWars&e&l] &c常にゲームに参加しています。"
- on break of light green stained terracotta:
- if {melonwars.start} is 1:
- if {suikagun.join.%player%} is 1:
- remove 1 from {melongun.health}
- broadcast "&e&l[&a&lMelonWars&e&l] &cメロン軍のメロンが削られました。"
- if {melongun.health} is 0:
- broadcast "&e&l[&a&lMelonWars&e&l] &a今回はメロン軍の体力が0になりました。よってスイカ軍の勝利です!"
- execute console command "/setblock 228 139 -35 air"
- set {melonwars.start} to 0
- set {melonwars.time} to 600
- set {melongun.health} to 15
- set {suikagun.health} to 15
- set {melonwars.join} to 0
- set {melongun.join} to 1
- set {suikagun.join} to 0
- loop all players:
- execute player command "/warsback"
- on break of green terracotta block:
- if {melonwars.start} is 1:
- if {melongun.join.%player%} is 1:
- remove 1 from {suikagun.health}
- broadcast "&e&l[&a&lMelonWars&e&l] &cスイカ軍のスイカが削られました。"
- if {melongun.health} is 0:
- broadcast "&e&l[&a&lMelonWars&e&l] &a今回はメロン軍の体力が0になりました。よってスイカ軍の勝利です!"
- execute console command "/setblock 228 139 -35 air"
- set {melonwars.start} to 0
- set {melonwars.time} to 600
- set {melongun.health} to 15
- set {suikagun.health} to 15
- set {melonwars.join} to 0
- set {melongun.join} to 1
- set {suikagun.join} to 0
- loop all players:
- execute player command "/warsback"
- command /warsback:
- trigger:
- if {melonwars.join.%player%} is 1:
- execute player command "/spawn"
- every seconds:
- if {melonwars.start} is 1:
- remove 1 from {melonwars.time}
- if {melonwars.time} is 0:
- broadcast "&e&l[&a&lMelonWars&e&l] &d10分以上が経過しています。ゲームはあと30秒後に引き分けという結果になります。"
- wait 30 seconds
- execute console command "/setblock 228 139 -35 air"
- set {melonwars.start} to 0
- set {melonwars.time} to 600
- set {melongun.health} to 15
- set {suikagun.health} to 15
- set {melonwars.join} to 0
- set {melongun.join} to 1
- set {suikagun.join} to 0
- loop all players:
- if {melonwars.join.%loop-player%} is 1:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&a&lメロンウォーズステータス"
- set score "メロン軍体力" in sidebar of loop-player to {melongun.health}
- set score "スイカ軍体力" in sidebar of loop-player to {suikagun.health}
- set score "残り時間" in sidebar of loop-player to {melonwars.time}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement