Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- max_players: 20
- can_start: 6
- on join:
- execute console command "clear %player%"
- execute console command "replaceitem entity %player% slot.hotbar.0 minecraft:nether_star {display:{Name:""§6§lMainMenu"",Lore:[""§7捨てないでください。詰みます。""]}}"
- execute console command "replaceitem entity %player% slot.hotbar.8 minecraft:slime_ball {display:{Name:""§e§lKitMenu"",Lore:[""§7キットを選択します。""]}}"
- if {%player%.kit} is not set:
- execute console command "scoreboard players tag %arg 1% remove archer"
- execute console command "scoreboard players tag %player% add knight"
- command /spawn [<text>]:
- trigger:
- execute console command "tp %player% 8.5 61.0 8.5 0 0"
- execute console command "gamemode 2 %player%"
- command /already [<player>]:
- permission: console
- permission message: Unknown command. Type "/help" for help.
- trigger:
- send "&c既に選択されています。" to arg-1
- execute console command "execute %arg 1% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master %arg 1% ~ ~ ~ 5 0.5"
- command /format [<player>] [<text>]:
- permission: console
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if arg-1 is set:
- if {%arg 1%.rank} is "elite" or "legend" or "builder" or "helper" or "moderator" or "admin" or "sradmin" or "coowner" or "owner":
- if arg-2 is "kit-knight":
- format slot 0 of arg-1 with iron sword of Sharpness named "&a&l* Knight" with lore "&eAlready selected!" with no nbt to close then run [execute console command "already %arg 1%"]
- format slot 1 of arg-1 with bow named "&aArcher" with lore "&eClick to select!" with no nbt to run [execute console command "format %arg 1% kit-archer"]
- format slot 2 of arg-1 with fence named "&dBuilder" with lore "&eClick to select!|| ||&d&l-= Rank Kit =-" to run [execute console command "format %arg 1% kit-builder"]
- execute console command "execute %arg 1% ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master %arg 1% ~ ~ ~ 5 2.0"
- execute console command "scoreboard players tag %arg 1% remove builder"
- execute console command "scoreboard players tag %arg 1% remove archer"
- execute console command "scoreboard players tag %arg 1% add knight"
- delete {%arg 1%.kit}
- if arg-2 is "kit-archer":
- format slot 0 of arg-1 with iron sword named "&aKnight" with lore "&eClick to select!" with no nbt to run [execute console command "format %arg 1% kit-knight"]
- format slot 1 of arg-1 with bow of Sharpness named "&a&l* Archer" with lore "&eAlready selected!" with no nbt to close then run [execute console command "already %arg 1%"]
- format slot 2 of arg-1 with fence named "&dBuilder" with lore "&eClick to select!|| ||&d&l-= Rank Kit =-" to run [execute console command "format %arg 1% kit-builder"]
- execute console command "execute %arg 1% ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master %arg 1% ~ ~ ~ 5 2.0"
- execute console command "scoreboard players tag %arg 1% remove builder"
- execute console command "scoreboard players tag %arg 1% remove knight"
- execute console command "scoreboard players tag %arg 1% add archer"
- set {%arg 1%.kit} to archer
- if arg-2 is "kit-builder":
- format slot 0 of arg-1 with iron sword named "&aKnight" with lore "&eClick to select!" with no nbt to run [execute console command "format %arg 1% kit-knight"]
- format slot 1 of arg-1 with bow named "&aArcher" with lore "&eClick to select!" with no nbt to run [execute console command "format %arg 1% kit-archer"]
- format slot 2 of arg-1 with fence of Sharpness named "&d&l* Builder" with lore "&eAlready selected!|| ||&d&l-= Rank Kit =-" to close then run [execute console command "already %arg 1%"]
- execute console command "execute %arg 1% ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master %arg 1% ~ ~ ~ 5 2.0"
- execute console command "scoreboard players tag %arg 1% remove knight"
- execute console command "scoreboard players tag %arg 1% remove archer"
- execute console command "scoreboard players tag %arg 1% add builder"
- set {%arg 1%.kit} to builder
- else:
- if arg-2 is "kit-knight":
- format slot 0 of arg-1 with iron sword of Sharpness named "&a&l* Knight" with lore "&eAlready selected!" with no nbt to close then run [execute console command "already %arg 1%"]
- format slot 1 of arg-1 with bow named "&aArcher" with lore "&eClick to select!" with no nbt to run [execute console command "format %arg 1% kit-archer"]
- format slot 2 of arg-1 with fence named "&dBuilder" with lore "&cNeed a Elite rank!|| ||&d&l-= Rank Kit =-" to close then run [execute console command "format %arg 1% kit-builder"]
- execute console command "execute %arg 1% ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master %arg 1% ~ ~ ~ 5 2.0"
- execute console command "scoreboard players tag %arg 1% remove builder"
- execute console command "scoreboard players tag %arg 1% remove archer"
- execute console command "scoreboard players tag %arg 1% add knight"
- delete {%arg 1%.kit}
- if arg-2 is "kit-archer":
- format slot 0 of arg-1 with iron sword named "&aKnight" with lore "&eClick to select!" with no nbt to run [execute console command "format %arg 1% kit-knight"]
- format slot 1 of arg-1 with bow of Sharpness named "&a&l* Archer" with lore "&eAlready selected!" with no nbt to close then run [execute console command "already %arg 1%"]
- format slot 2 of arg-1 with fence named "&dBuilder" with lore "&cNeed a Elite rank!|| ||&d&l-= Rank Kit =-" to close then run [execute console command "format %arg 1% kit-builder"]
- execute console command "execute %arg 1% ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master %arg 1% ~ ~ ~ 5 2.0"
- execute console command "scoreboard players tag %arg 1% remove builder"
- execute console command "scoreboard players tag %arg 1% remove knight"
- execute console command "scoreboard players tag %arg 1% add archer"
- set {%arg 1%.kit} to archer
- if arg-2 is "kit-builder":
- send "&4&lError &8» &cこのキットを使うにはEliteランクが必要です。" to arg-1
- execute console command "execute %arg 1% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master %arg 1% ~ ~ ~ 5 0.5"
- on right click holding a nether star:
- name of held item contains "§6§lMainMenu"
- lore of held item contains "§7捨てないでください。詰みます。"
- open chest with 5 row named "MainMenu" to player
- wait a tick
- format slot 10 of player with slime ball named "&e&lKitMenu" with lore "&7キットを選択します。" to run [execute player command "kit"]
- format slot 12 of player with compass named "&a&lPlayingGames" with lore "&7ゲームを観戦します。" to run [execute console command "gameview %player%"]
- format slot 14 of player with emerald item named "&d&lRealm&e&lShop" with lore "&7レルムショップを開きます。||&c&l寄付&eをよろしくお願いします。" to run [execute player command "buy"]
- format slot 16 of player with bed item named "&c&lロビーに戻る" with lore "&7ロビーに戻ります。" to close then run [execute player command "spawn"]"
- on right click holding a slime ball:
- name of held item contains "§e§lKitMenu"
- lore of held item contains "§7キットを選択します。"
- execute player command "kit"
- command /kit [<text>]:
- trigger:
- if {%player%.rank} is "elite" or "legend" or "builder" or "helper" or "moderator" or "admin" or "sradmin" or "coowner" or "owner":
- if {%player%.kit} is not set:
- open chest with 1 row named "KitMenu" to player
- wait a tick
- format slot 0 of player with iron sword named "&a&l* Knight" with lore "&eAlready selected!" to close then run [execute console command "already %player%"]
- format slot 1 of player with bow named "&aArcher" with lore "&eClick to select!" with no nbt to run [execute console command "format %player% kit-archer"]
- format slot 2 of player with fence named "&dBuilder" with lore "&eClick to select!|| ||&d&l-= Achievement Kit =-" to run [execute console command "format %player% kit-builder"]
- if {%player%.kit} is "archer":
- format slot 0 of player with iron sword named "&aKnight" with lore "&eClick to select!" with no nbt to run [execute console command "format %player% kit-knight"]
- format slot 1 of player with bow of Sharpness named "&a&l* Archer" with lore "&eAlready selected!" with no nbt to close then run [execute console command "already %player%"]
- format slot 2 of player with fence named "&dBuilder" with lore "&eClick to select!|| ||&d&l-= Achievement Kit =-" to run [execute console command "format %player% kit-builder"]
- if {%player%.kit} is "builder":
- format slot 0 of player with iron sword named "&aKnight" with lore "&eClick to select!" with no nbt to run [execute console command "format %player% kit-knight"]
- format slot 1 of player with bow of Sharpness named "&aArcher" with lore "&eClick to select!" with no nbt to run [execute console command "format %player% kit-archer"]
- format slot 2 of player with fence named "&d&l* Builder" with lore "&eAlready selected!|| ||&d&l-= Achievement Kit =-" to close then run [execute console command "already %player%"]
- else:
- if {%player%.kit} is not set:
- format slot 0 of player with iron sword of Sharpness named "&a&l* Knight" with lore "&eAlready selected!" with no nbt to close then run [execute console command "already %arg 1%"]
- format slot 1 of player with bow named "&aArcher" with lore "&eClick to select!" with no nbt to run [execute console command "format %arg 1% kit-archer"]
- format slot 2 of player with fence named "&dBuilder" with lore "&cNeed a Elite rank!|| ||&d&l-= Rank Kit =-" to close then run [execute console command "format %player% kit-builder"]
- if {%player%.kit} is archer:
- format slot 0 of player with iron sword named "&aKnight" with lore "&eClick to select!" with no nbt to run [execute console command "format %arg 1% kit-knight"]
- format slot 1 of player with bow of Sharpness named "&a&l* Archer" with lore "&eAlready selected!" with no nbt to close then run [execute console command "already %arg 1%"]
- format slot 2 of player with fence named "&dBuilder" with lore "&cNeed a Elite rank!|| ||&d&l-= Rank Kit =-" to close then run [execute console command "format %player% kit-builder"]
- command /gameview <player>:
- permission: console
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if arg-1 is set:
- execute console command "gamemode 3 %arg 1%"
- execute console command "tp %arg 1% <城の座標> 0 0"
- send "&2/spawn&aでロビーに戻ることができます!"
- command /gameteam <player> <text>:
- permission: op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if arg-1 is set:
- if arg-2 is "defender":
- if {%arg 1%.joined} is set:
- execute console command "nte player %arg 1% suffix &b&l (Defender)"
- execute console command "setsuffix %arg 1% &b&l (Defender)"
- set {%arg 1%.team} to defender
- execute console command "scoreboard players tag %arg 1% remove attacker"
- execute console command "scoreboard players tag %arg 1% add player"
- execute console command "scoreboard players tag %arg 1% add defender"
- else:
- send "&r[&cCastleSiege&r] &c%arg 1%はゲームに参加していません!"
- if arg-2 is "attacker":
- if {%arg 1%.joined} is set:
- execute console command "nte player %arg 1% suffix &c&l (Attacker)"
- execute console command "setsuffix %arg 1% &c&l (Attacker)"
- set {%arg 1%.team} to attacker
- execute console command "scoreboard players tag %arg 1% remove defender"
- execute console command "scoreboard players tag %arg 1% add player"
- execute console command "scoreboard players tag %arg 1% add attacker"
- else:
- send "&r[&cCastleSiege&r] &c%arg 1%はゲームに参加していません!"
- command /bosyuu <text>:
- permission: op
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if arg-1 is "true":
- if {game.started} is not set:
- if {game.bosyuu} is not set:
- set {game.bosyuu} to yes
- else:
- send "&r[&cCastleSiege&r] &c既に募集しています!"
- else:
- send "&r[&cCastleSiege&r] &c既にゲームが開始しています!"
- if arg-1 is "false":
- if {game.bosyuu} is set:
- delete {game.bosyuu}
- else:
- send "&r[&cCastleSiege&r] &cプレイヤーを募集していません!"
- command /join <player>:
- permission: console
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {game.bosyuu} is set:
- if {game.players} <= {@max_players}:
- execute console command "execute %arg 1% ~ ~ ~ /playsound minecraft:ui.button.click master %arg 1% ~ ~ ~ 5 1.0"
- execute console command "si %arg 1% ゲームに参加しました。"
- set {%arg 1%.joined} to yes
- add 1 to {game.players}
- add "%player%" to {joined.players}
- broadcast "&r[&aCastleSiege&r] &e%arg 1%がゲームに参加しました。&7%{game.players}%&8&7{@max_players}"
- broadcast "&r[&aCastleSiege&r] &a最低 {can_start} 人参加すればゲームを開始できます。"
- else:
- send "&r[&cCastleSiege&r] &cこれ以上参加することはできません!" arg-1
- execute console command "execute %arg 1% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master %arg 1% ~ ~ ~ 5 0.5"
- else:
- send "&r[&cCastleSiege&r] &cプレイヤーを募集していないので、参加することはできません!" to arg-1
- execute console command "execute %arg 1% ~ ~ ~ /playsound minecraft:entity.endermen.teleport master %arg 1% ~ ~ ~ 5 0.5"
- command /quit <player>:
- permission: console
- permission message: Unknown command. Type "/help" for help.
- trigger:
- if {%arg 1%.joined} is set:
- add -1 to {game.players}
- remove "%player%" from {joined.players}
- broadcast "&r[&aCastleSiege&r] &e%arg 1%が参加をやめました。"
- execute console command "execute %arg 1% ~ ~ ~ /playsound minecraft:ui.button.click master %arg 1% ~ ~ ~ 5 1.0"
- else:
- send "&r[&cCastleSiege] &c参加していません!" to arg-1
- on quit:
- delete {%player%.team}
- execute console command "scoreboard players tag %arg 1% remove attacker"
- execute console command "scoreboard players tag %arg 1% remove player"
- execute console command "scoreboard players tag %arg 1% remove defender"
- if {%player%.joined} is set:
- add -1 to {game.players}
- remove "%player%" from {joined.players}
- broadcast "&r[&aCastleSiege&r] &e%player%が参加をやめました。"
- command /game-join [<text>]:
- trigger:
- execute console command "join %player%"
- command /game-quit [<text>]:
- trigger:
- execute console command "quit %player%"
- every ticks:
- if {game.players} is not set:
- set {game.players} to 0
- if {game.bosyuu} is set:
- execute console command "title @a actionbar {""text"":""\u00a73\u00a7lプレイヤーを募集中... \u00a77%{game.players}%\u00a78/\u00a77{@max_players}""}"
- command /joinedlist [<text>]:
- permission: op
- permission message: §cYou do not have permission to execute this command!
- trigger:
- send "&e参加者人数: &7%{game.players}%&8/&7{@max_players}"
- command /game <text>:
- permission: op
- permission message: Unknown command. Type "/help" for help.
- usage: /game <start/stop>
- trigger:
- if arg-1 is "start" or "stop" or "tyuukoku" or "teamkime" or "bosyuustart" or "bosyuustop":
- if arg-1 is "start":
- if {game.players} >= {@can_start}:
- if {game.started} is not set:
- clear {joined.players}
- delete {game.bosyuu}
- set {game.players} to 0
- set {game.started} to yes
- clear {_r}
- delete {_t}
- broadcast "&r[&aCastleSiege&r] &bゲーム開始まであと &a&l20 &b秒!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait 10 seconds
- broadcast "&r[&aCastleSiege&r] &bゲーム開始まであと &a&l10 &b秒!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait 5 seconds
- broadcast "&r[&aCastleSiege&r] &bゲーム開始まであと &e&l5 &b秒!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait 1 seconds
- broadcast "&r[&aCastleSiege&r] &bゲーム開始まであと &6&l4 &b秒!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait 1 seconds
- broadcast "&r[&aCastleSiege&r] &bゲーム開始まであと &c&l3 &b秒!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait 1 seconds
- broadcast "&r[&aCastleSiege&r] &bゲーム開始まであと &c&l2 &b秒!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait 1 seconds
- broadcast "&r[&aCastleSiege&r] &bゲーム開始まであと &c&l1 &b秒!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait 1 seconds
- broadcast "&r[&aCastleSiege&r] &3&lゲーム開始!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master @a ~ ~ ~ 5 1.0"
- execute console command "tp @a[tag=defender] <城の中の座標> 0 0"
- execute console command "tp @a[tag=attacker] <城の外の座標> 0 0"
- execute console command "clear @a[tag=player]"
- execute console command "replaceitem entity @a[tag=attacker] slot.hotbar.0 minecraft:iron_axe 1 0 {HideFlags:63,Unbreakable:1,CanDestroy:["minecraft:fence"],display:{Name:""§cAttacker Axe""}}"
- execute console command "replaceitem entity @a[tag=knight] slot.hotbar.0 minecraft:iron_sword 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aKnight Sword""}}"
- execute console command "replaceitem entity @a[tag=knight] slot.hotbar.1 minecraft:bow 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aKnight Bow""}}"
- execute console command "replaceitem entity @a[tag=knight] slot.hotbar.2 minecraft:arrow 32 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aArrow""}}"
- execute console command "replaceitem entity @a[tag=knight] slot.armor.head minecraft:iron_helmet 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aKnight Helmet""}}"
- execute console command "replaceitem entity @a[tag=knight] slot.armor.chest minecraft:iron_chestplate 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aKnight Chestplate""}}"
- execute console command "replaceitem entity @a[tag=knight] slot.armor.legs minecraft:iron_leggings 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aKnight Leggings""}}"
- execute console command "replaceitem entity @a[tag=knight] slot.armor.feet minecraft:iron_boots 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aKnight Boots""}}"
- execute console command "replaceitem entity @a[tag=archer] slot.hotbar.0 minecraft:stone_sword 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aArcher Sword""}}"
- execute console command "replaceitem entity @a[tag=archer] slot.hotbar.1 minecraft:bow 1 0 {HideFlags:63,Unbreakable:1,ench:[{id:51,lvl:1}],display:{Name:""§aArcher Bow""}}"
- execute console command "replaceitem entity @a[tag=archer] slot.inventory.19 minecraft:arrow 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aArrow""}}"
- execute console command "replaceitem entity @a[tag=archer] slot.armor.head minecraft:chainmail_helmet 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aArcher Helmet""}}"
- execute console command "replaceitem entity @a[tag=archer] slot.armor.chest minecraft:chainmail_chestplate 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aArcher Chestplate""}}"
- execute console command "replaceitem entity @a[tag=archer] slot.armor.legs minecraft:chainmail_leggings 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aArcher Leggings""}}"
- execute console command "replaceitem entity @a[tag=archer] slot.armor.feet minecraft:chainmail_boots 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aArcher Boots""}}"
- execute console command "replaceitem entity @a[tag=builder] slot.hotbar.0 minecraft:stone_sword 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§dBuilder Sword""}}"
- execute console command "replaceitem entity @a[tag=builder] slot.hotbar.1 minecraft:iron_axe 1 0 {CanDestroy:[""minecraft:fence""],HideFlags:63,Unbreakable:1,AttributeModifiers:[{AttributeName:""generic.attackDamage"",Name:""generic.attackDamage"",Amount:-9,Operation:0,UUIDLeast:650669,UUIDMost:607624}],display:{Name:""§6Fence Breaker""}}"
- execute console command "replaceitem entity @a[tag=builder] slot.hotbar.2 minecraft:bow 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§dBuilder Bow""}}"
- execute console command "replaceitem entity @a[tag=builder] slot.hotbar.3 minecraft:arrow 16 0 {HideFlags:63,Unbreakable:1,display:{Name:""§aArrow""}}"
- execute console command "replaceitem entity @a[tag=builder] slot.hotbar.4 minecraft:fence 32 0 {display:{Name:""§eFence""},CanPlaceOn:["minecraft:"]}"
- execute console command "replaceitem entity @a[tag=builder] slot.armor.head minecraft:golden_helmet 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§dBuilder Helmet""}}"
- execute console command "replaceitem entity @a[tag=builder] slot.armor.chest minecraft:golden_chestplate 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§dBuilder Chestplate""}}"
- execute console command "replaceitem entity @a[tag=builder] slot.armor.legs minecraft:golden_leggings 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§dBuilder Leggings""}}"
- execute console command "replaceitem entity @a[tag=builder] slot.armor.feet minecraft:golden_boots 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§dBuilder Boots""}}"
- execute console command "gamemode 0 @a[tag=builder]"
- loop all players:
- delete {%loop-player%.joined}
- execute console command "title @a[tag=player] subtitle {""text"":""\u00a7b\u00a7lCastleSiege""}"
- execute console command "title @a[tag=player] title {""text"":""\u00a7a\u00a7l-=Game Started=-""}"
- else:
- send "&r[&cCastleSiege&r] &cゲームは既に開始しています!"
- else:
- send "&r[&cCastleSiege&r] &c人数が足りないのでゲームを開始することができません!"
- if arg-1 is "stop":
- delete {game.started}
- broadcast "&r[&aCastleSiege&r] &6&lゲーム終了!"
- broadcast " "
- execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.wither.spawn master @a ~ ~ ~ 5 1.0"
- execute console command "tp @a[tag=player] 8.5 61.0 8.5 0 0"
- execute console command "clear @a[tag=player]"
- execute console command "replaceitem entity @a[tag=player] slot.hotbar.0 minecraft:nether_star {display:{Name:""§6§lMainMenu"",Lore:[""§7捨てないでください。詰みます。""]}}"
- execute console command "replaceitem entity @a[tag=player] slot.hotbar.8 minecraft:slime_ball {display:{Name:""§e§lKitMenu"",Lore:[""§7キットを選択します。""]}}"
- execute console command "setblock 6 57 15 redstone_block"
- execute console command "scoreboard players tag @a remove player"
- execute console command "scoreboard players tag @a remove defender"
- execute console command "scoreboard players tag @a remove attacker"
- loop all players:
- delete {%loop-player%.team}
- if {win.team} is attacker:
- execute console command "title @a[tag=player] subtitle {""text"":""&6&l-=Game Ended=-""}"
- execute console command "title @a[tag=player] title {""text"":""&c&l-=Attackers win=-""}"
- broadcast "&r[&aCastleSiege&r] &6&lWinner: &c&lAttacker"
- delete {win.team}
- if {win.team} is defender:
- execute console command "title @a[tag=player] subtitle {""text"":""&6&l-=Game Ended=-""}"
- execute console command "title @a[tag=player] title {""text"":""&b&l-=Defenders win=-""}"
- broadcast "&r[&aCastleSiege&r] &6&lWinner: &b&lDefender"
- delete {win.team}
- if arg-1 is "tyuukoku":
- broadcast "&r[&aCastleSiege&r] &eまもなくゲームを開始します。"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- if arg-1 is "teamkime":
- set {_t} to 0
- loop {game.players} times:
- set {_r} to random player of {joined.players}
- remove {_r} from {joined.players}
- if {_t} is 1:
- execute console command "gameteam %{_r}% defender"
- execute console command "si あなたは &b&lDefender &aになりました。"
- set {_t} to 0
- else if {_t} is 0:
- execute console command "gameteam %{_r}% attacker"
- execute console command "si あなたは &c&lAttacker &aになりました。"
- set {_t} to 1
- if arg-1 is "bosyuu":
- set {game.bosyuu} to true
- broadcast "&r[&aCastleSiege&r] &eプレイヤーの募集を開始します。"
- broadcast "&r[&aCastleSiege&r] &6参加する場合は、/game-join、抜ける場合は、/game-quitです。"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- command /announcement <text>:
- permission: op
- permission message: §cYou do not have permission to execute this command!
- usage: /announcement <Text>
- aliases: /announce, /an
- trigger:
- broadcast "&9&lAnnouncement &8» &a%coloured arg 1%"
- command /information <text>:
- permission: op
- permission message: §cYou do not have permission to execute this command!
- usage: /information <Text>
- aliases: /info
- trigger:
- broadcast "&b&lInfo &8» &a%coloured arg 1%"
- command /si <player> <text>:
- permission: op
- permission message: §cYou do not have permission to execute this command!
- usage: /si <Player> <Text>
- trigger:
- send "&b&lInfo &8» &a%coloured arg 2%" to arg-1
- on damage of player:
- if damage cause is fall:
- cancel event
- if damage cause is burn:
- cancel event
- attacker is player:
- if {%attacker%.team} is defender:
- if {%victim%.team} is defender:
- cancel event
- on death of player:
- attacker is player:
- if {%victim%.team} is defender:
- force respawn player
- execute console command "gameview %player%"
- execute console command "clear %player%"
- execute console command "replaceitem entity %player% slot.hotbar.0 minecraft:nether_star {display:{Name:""§6§lMainMenu"",Lore:[""§7捨てないでください。詰みます。""]}}"
- execute console command "replaceitem entity %player% slot.hotbar.8 minecraft:slime_ball {display:{Name:""§e§lKitMenu"",Lore:[""§7キットを選択します。""]}}"
- execute console command "title %player% title {""text"":""\u00a7c\u00a7lYOU DIED""}"
- execute console command "si %player% &c死んでしまった!"
- send "&r[&eCastleSiege&r] &6%player%&eが死んでしまった!"
- if {%victim%.team} is attacker:
- force respawn player
- execute console command "clear %player%"
- execute console command "title %player% subtitle {""text"":""\u00a76\u00a7l10秒後にリスポーンします...""}"
- execute console command "title %player% title {""text"":""\u00a7c\u00a7lYOU DIED""}"
- execute console command "gamemode 3 %player%"
- execute console command "tp %player% <城の外の座標> 0 0"
- wait 10 seconds
- execute console command "gamemode 2 %player%"
- execute console command "tp %player% <城の外の座標> 0 0"
- execute console command "replaceitem entity %player% slot.hotbar.0 minecraft:iron_axe 1 0 {HideFlags:63,Unbreakable:1,CanDestroy:["minecraft:fence"],display:{Name:""§cAttacker Axe""}}"
- command /respawn <player>:
- permission: op
- permission message: §cYou do not have permission to execute this command!
- usage: /respawn <Player>
- trigger:
- if arg-1 is set:
- force respawn arg-1
- send "&eRespawned %arg 1%!"
- on damage of zombie:
- victim's name is "§6§lKing"
- attacker is player:
- if {%attacker%.team} is defender:
- cancel event
- if {%attacker%.team} is attacker
- execute console command "title @a actionbar {""text"":""\u00a7c%attacker% がキングを攻撃している!""}"
- on death of zombie:
- victim's name is "§6§lKing"
- attacker is player:
- if {%attacker%.team} is attacker:
- broadcast "&r[&eCastleSiege&r] &6キングが倒された!"
- set {win.team} to attacker
- execute console command "game stop"
- on right click on fence:
- if {%player%.team} is defender:
- set event-block to air
- execute console command "playsound minecraft:ui.button.click master @a %location of target block% 5 1.0"
- wait 2 seconds
- set event-block to oak fence
- on break:
- if player do not have permission "server.candestroy":
- event-block is not a fence:
- cancel event
Add Comment
Please, Sign In to add comment