Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- ZePrefix: &9RZE>
- command /zombieescape [<text>] [<text>] [<text>] [<offline player>]:
- permission: ze.setup
- permission message: {@ZePrefix}&c必要な権限を持っていません。
- aliases: ze
- trigger:
- if arg 1 is "lobby":
- set {ze.lobby} to location of player
- message "{@ZePrefix}&7ロビーの位置を&e%{ze.lobby}%&7に設定しました。"
- else if arg 1 is "clearjoinerss":
- loop {joinerss::*}:
- set {ze.joined.%loop-value%} to ""
- set {ze.role.%loop-value%} to ""
- clear {joine::*}
- else if arg 1 is "sayjoinerss":
- broadcast "%{joinerss::*}%"
- else if arg 1 is "startpoint":
- if arg 2 is "escape":
- set {ze.start.human.%arg 3%} to location of player
- message "{@ZePrefix}&7ステージ&e%arg 3%&7の人間のスタート位置を&e%{ze.start.human.%arg 3%}%&7に設定しました。"
- else if arg 2 is "zombie":
- set {ze.start.zombie.%arg 3%} to location of player
- message "{@ZePrefix}&7ステージ&e%arg 3%&7のゾンビのスタート位置を&e%{ze.start.zombie.%arg 3%}%&7に設定しました。"
- else:
- message "{@ZePrefix}&c無効な引数です:&e%arg 2%"
- else if arg 1 is "stage":
- if arg 2 is "add":
- loop {stages::*}:
- if loop-value is arg 3:
- message "{@ZePrefix}&c既にそのステージが存在しています。"
- stop
- add arg 3 to {stages::*}
- message "{@ZePrefix}&7ステージ&e%arg 3%&7を追加しました。"
- if arg 2 is "remove":
- loop {stages::*}:
- if loop-value is arg 3:
- remove arg 3 from {stages::*}
- message "{@ZePrefix}&7ステージ&e%arg 3%&7を削除しました。"
- stop
- message "{@ZePrefix}&cステージ&e%arg 3%&cは見つかりませんでした。"
- if arg 2 is "list":
- message "{@ZePrefix}&e***ステージリスト***"
- set {_num} to 0
- loop {stages::*}:
- add 1 to {_num}
- message "{@ZePrefix}&6No.%{_num}%: &f%loop-value%&8---&7表示名&2%{ze.stagename.%loop-value%}%"
- else if arg 1 is "play":
- if {ze.started}:
- message "{@ZePrefix}&cゲームは既に開始しています。"
- else:
- if {ze.joined.%player%}:
- message "{@ZePrefix}&c既に参加しています。"
- else:
- set {ze.joined.%player%} to true
- add player to {joinerss::*}
- broadcast "{@ZePrefix}%{color.%player's uuid%}%%player%&7さんが参加しました。"
- else if arg 1 is "setname":
- loop {stages::*}:
- if arg 2 is loop-value:
- if arg 3 is set:
- set {ze.stagename.%arg 2%} to arg 3
- message "{@ZePrefix}&e%arg 2%&7の表示名を%arg 3%に設定しました。"
- else:
- message "{@ZePrefix}&c表示名を設定してください。"
- stop
- message "{@ZePrefix}&cシステム名&e%arg 2%&cというステージは見つかりませんでした。"
- else if arg 1 is "setbuilder":
- loop {stages::*}:
- if arg 2 is loop-value:
- if arg 3 is set:
- set {ze.builder.%arg 2%} to arg 3
- message "{@ZePrefix}&e%arg 2%&7の建造者を%{ze.builder.%arg 2%}%に設定しました。"
- else:
- message "{@ZePrefix}&c建造者を設定してください。"
- else if arg 1 is "start":
- set {ze.requested} to false
- set {ze.occpupation} to false
- set {ze.requested} to false
- set {ze.started} to true
- set {ze.playingstage} to random element out of {stages::*}
- set block at {ze.finishredstone.%{ze.playingstage}%} to redstone_block
- wait 4 tick
- set block at {ze.finishredstone.%{ze.playingstage}%} to air
- loop {joinerss::*}:
- set {ze.noattack} to false
- make console execute command "shot give %loop-value% %{ze.maingun.%loop-value's uuid%}%"
- make console execute command "shot give %loop-value% %{ze.subgun.%loop-value's uuid%}%"
- make console execute command "shot give %loop-value% Knife"
- loop {ze.ammos.%loop-value's uuid%} times:
- make console execute command "give %loop-value-1% minecraft:melon_seeds 1 0 {display:{Name:""Gun Ammo""}}"
- loop {joinerss::*}:
- set loop-value's gamemode to adventure
- add 1 to {ze.humans}
- teleport loop-value to {ze.start.human.%{ze.playingstage}%}
- command "effect %loop-value% minecraft:slowness 5 126 true"
- command "effect %loop-value% minecraft:jump_boost 5 251 true"
- set {ze.role.%loop-value%} to "escape"
- loop all players:
- send loop-player title "&e%{ze.stagename.%{ze.playingstage}%}%" with subtitle "&2建造者---&9%{ze.builder.%{ze.playingstage}%}%" for 5 seconds
- broadcast "{@ZePrefix}&7あと&e10&7秒で開始します..."
- wait 5 seconds
- broadcast "{@ZePrefix}&7あと&c5&7秒で開始します..."
- wait 1 second
- broadcast "{@ZePrefix}&7あと&c4&7秒で開始します..."
- wait 1 second
- broadcast "{@ZePrefix}&7あと&c3&7秒で開始します..."
- wait 1 second
- broadcast "{@ZePrefix}&7あと&c2&7秒で開始します..."
- wait 1 second
- broadcast "{@ZePrefix}&7あと&c1&7秒で開始します..."
- loop all players:
- send loop-player title "&c---Game Started---" with subtitle "&2ゾンビは&9%{ze.time.%{ze.playingstage}%}%&2秒後に選ばれます..." for 5 seconds
- broadcast "{@ZePrefix}&cゲーム・スタート!"
- set {_wait2} to {ze.time.%{ze.playingstage}%} parsed as number
- loop {_wait2} times:
- wait 1 second
- set {ze.firstzombie} to random player out of {joinerss::*}
- set {ze.role.%{ze.firstzombie}%} to "infected"
- remove 1 from {ze.humans}
- clear {ze.firstzombie}'s inventory
- command "replaceitem entity %{ze.firstzombie}% slot.armor.head minecraft:wool 1 13 {ench:[{id:10,lvl:1}]}"
- command "replaceitem entity %{ze.firstzombie}% slot.armor.chest minecraft:leather_chestplate 1 0 {ench:[{id:10,lvl:1}],Unbreakable:1}"
- command "replaceitem entity %{ze.firstzombie}% slot.armor.legs minecraft:leather_leggings 1 0 {ench:[{id:10,lvl:1}],Unbreakable:1}"
- command "replaceitem entity %{ze.firstzombie}% slot.armor.feet minecraft:leather_boots 1 0 {ench:[{id:10,lvl:1}],Unbreakable:1}"
- broadcast "{@ZePrefix}&7最初に選ばれたのは&e%{ze.firstzombie}%&7だ!"
- send {ze.firstzombie} title "&2最初に感染したのはお前だ!" with subtitle "&c出来るだけ多くの人間を感染させろ!" for 3 seconds
- teleport {ze.firstzombie} to {ze.start.zombie.%{ze.playingstage}%}
- if {ze.humans} is 0:
- set {ze.occupation} to true
- loop all players:
- send loop-player title "&2Zombies Win!" with subtitle "&7全員を感染させた" for 4 seconds
- wait 4 seconds
- command "ze stop"
- else if arg 1 is "stop":
- set block at {ze.finishredstone.%{ze.playingstage}%} to redstone_block
- wait 4 tick
- set block at {ze.finishredstone.%{ze.playingstage}%} to air
- loop {joinerss::*}:
- teleport loop-value to {ze.lobby}
- set {ze.joined.%loop-value%} to ""
- set {ze.role.%loop-value%} to ""
- clear loop-value's inventory
- set {ze.humans} to 0
- set {ze.requested} to false
- set {ze.occupation} to false
- clear {joinerss::*}
- set {ze.started} to false
- set {ze.playingstage} to ""
- set {ze.firstzombie} to ""
- else if arg 1 is "goalsign":
- if arg 2 is set:
- loop {stages::*}:
- if arg 2 is loop-value:
- if targeted block of player is sign:
- set {ze.sign.%arg 2%} to location of targeted block
- message "{@ZePrefix}&7座標&e%{ze.sign.%arg 2%}%&7の看板を&7%arg 2%&7のゴール看板として設定しました。"
- else:
- message "{@ZePrefix}&cそれは看板ではありません。"
- stop
- message "{@ZePrefix}&e%arg 2%&cというステージは見つかりませんでした。"
- else:
- message "{@ZePrefix}&c対象となるステージのシステム名を選択してください。"
- else if arg 1 is "time":
- if arg 2 is set:
- loop {stages::*}:
- if arg 2 is loop-value:
- set {ze.time.%arg 2%} to arg 3
- message "{@ZePrefix}&7ステージ&e%arg 2%&7の人間の逃走猶予時間を&e%{ze.time.%arg 2%}%&7秒に設定しました。"
- stop
- message "{@ZePrefix}&e%arg 2%&cというステージは見つかりませんでした。"
- else:
- message "{@ZePrefix}&c対象となるステージのシステム名を選択してください。"
- else if arg 1 is "exit":
- if arg 2 is set:
- loop {stages::*}:
- if arg 2 is loop-value:
- set {ze.exit.%arg 2%} to arg 3
- message "{@ZePrefix}&7ステージ&e%arg 2%&7の脱出所要時間を&e%{ze.exit.%arg 2%}%&7秒に設定しました。"
- stop
- message "{@ZePrefix}&e%arg 2%&cというステージは見つかりませんでした。"
- else:
- message "{@ZePrefix}&c対象となるステージのシステム名を選択してください。"
- else if arg 1 is "safename":
- if arg 2 is set:
- loop {stages::*}:
- if loop-value is arg 2:
- if arg 3 is set:
- set {ze.safename.%arg 2%} to arg 3
- message "{@ZePrefix}&7ステージ&e%arg 2%&7のセーフゾーンのregion名を&e%{ze.safename.%arg 2%}%&7に設定しました。"
- stop
- message "{@ZePrefix}&cシステム名&e%arg 2%&cというステージは見つかりませんでした。"
- else if arg 1 is "finishredstone":
- if arg 2 is set:
- loop {stages::*}:
- if loop-value is arg 2:
- set {ze.finishredstone.%arg 2%} to location of targeted block
- message "{@ZePrefix}&7ステージ&e%arg 2%&7の終了時のレッドストーン配置位置を&e%{ze.finishredstone.%arg 2%}%&7に設定しました。"
- else if arg 1 is "data":
- loop {stages::*}:
- if loop-value is arg 2:
- message "{@ZePrefix}&7<<<<<<&6&l%arg 2%&fのデータ&7>>>>>>"
- message "{@ZePrefix}&7逃走猶予時間>> &e%{ze.time.%arg 2%}%"
- message "{@ZePrefix}&7脱出所要時間>> &e%{ze.exit.%arg 2%}%"
- message "{@ZePrefix}&7ゾンビのスタート位置>> &e%{ze.start.zombie.%arg 2%}%"
- message "{@ZePrefix}&7人間のスタート位置>> &e%{ze.start.human.%arg 2%}%"
- message "{@ZePrefix}&7表示名>> &e%{ze.stagename.%arg 2%}%"
- message "{@ZePrefix}&7建造者>> &e%{ze.builder.%arg 2%}%"
- message "{@ZePrefix}&7ゴール看板の位置>> &e%{ze.sign.%arg 2%}%"
- message "{@ZePrefix}&7セーフエリア>> &e%{ze.safename.%arg 2%}%"
- message "{@ZePrefix}&7最終処理のレッドストーン>> &e%{ze.finishredstone.%arg 2%}%"
- stop
- message "{@ZePrefix}&e%arg 2%&cというステージは見つかりませんでした。"
- else if arg 1 is "ammo":
- if arg 2 is "give":
- if arg 3 is set:
- if arg 4 is set:
- add arg 3 parsed as number to {ze.ammos.%arg 4's uuid%}
- message "{@ZePrefix}%{color.%arg 4's uuid%}%%arg 4%&7に&e%arg 3%&7発の銃弾を与えました。"
- if arg 2 is "take":
- if arg 3 is set:
- if arg 4 is set:
- remove arg 3 parsed as number from {ze.ammos.%arg 4's uuid%}
- message "{@ZePrefix}%{color.%arg 4's uuid%}%%arg 4%&7から&e%arg 3%&7発の銃弾を減らしました。"
- if arg 2 is "set":
- if arg 3 is set:
- if arg 4 is set:
- set {ze.ammos.%arg 4's uuid%} to arg 3 parsed as number
- message "{@ZePrefix}%{color.%arg 4's uuid%}%%arg 4%&7の銃弾を&e%arg 3%&7発に設定しました。"
- else if arg 1 is "setmaingun":
- set {ze.maingun.%player's uuid%} to arg 2
- message "{@ZePrefix}&7メインウエポンを&e%arg 2%&7に設定しました。"
- else if arg 1 is "setsubgun":
- set {ze.subgun.%player's uuid%} to arg 2
- message "{@ZePrefix}&7サブウエポンを&e%arg 2%&7に設定しました。"
- else if arg 1 is "weapons":
- open chest with 1 row named "&6&l||&8&lGuns&6&k||" to player
- wait 1 tick
- format slot 2 of player with 1 of iron_horse_armor named "&6&lMainWeapon" to run [make player execute command "ze mainw"]
- format slot 6 of player with 1 of iron_horse_armor named "&a&lSubWeapon" to run [make player execute command "ze subw"]
- else if arg 1 is "mainw":
- open chest with 1 row named "&6&lMainWeapons" to player
- wait 1 tick
- format slot 0 of player with 1 of iron_horse_armor named "&bAK-47" to close then run [make player execute command "ze setmaingun AK-47"]
- format slot 1 of player with 1 of golden_hoe named "&aDragunov" to close then run [make player execute command "ze setmaingun DRAGNOV"]
- format slot 2 of player with 1 of iron_horse_armor named "&bM1A1-Edition" to close then run [make player execute command "ze setmaingun M1A1"]
- format slot 3 of player with 1 of shears named "&eMP5" to close then run [make player execute command "ze setmaingun MP5"]
- format slot 4 of player with 1 of iron_horse_armor named "&eM249" to close then run [make player execute command "ze setmaingun M249"]
- else if arg 1 is "subw":
- open chest with 1 row named "&a&lSubWeapons" to player
- wait 1 tick
- format slot 0 of player with 1 of stone_shovel named "&aGlock18" to close then run [make player execute command "ze setsubgun GLOCK18"]
- format slot 1 of player with 1 of carrot_on_a_stick named "&eFive-SeveN" to close then run [make player execute command "ze setsubgun FIVE-SEVEN"]
- else if arg 1 is "help":
- if arg 2 is "1":
- message "{@ZePrefix}&7ヘルプ (1/2)*********"
- message "{@ZePrefix}&6/ze &flobby &7--- ロビーを設定します"
- message "{@ZePrefix}&7必ずロビーとして設定したい位置に立って実行してください。"
- message "{@ZePrefix}&6/ze &fstartpoint [escape/zombie] (ステージのシステム名) &7--- ゾンビや人間のスタート位置を設定します"
- message "{@ZePrefix}&7必ずスタート位置として設定したい位置に立って実行してください。"
- message "{@ZePrefix}&6/ze &fstage [add/remove] (ステージのシステム名) &7--- ステージを追加します"
- message "{@ZePrefix}&6/ze &ftime (ステージのシステム名) (時間) &7--- 最初に人間が逃げる時間を設定します"
- message "{@ZePrefix}&6/ze &fexit (ステージのシステム名) (時間) &7--- 脱出所要時間を設定します"
- message "{@ZePrefix}&6/ze &fsafename (ステージのシステム名) (ゴールとなるregion名) &7--- 脱出所要時間を設定します"
- else if arg 2 is "2":
- message "{@ZePrefix}&7ヘルプ (2/2)*********"
- message "{@ZePrefix}&7システム名は必ず半角アルファベットで設定してください。"
- message "{@ZePrefix}&6/ze &fstage list &7--- ステージの一覧を表示します"
- message "{@ZePrefix}&6/ze &fsetname (ステージのシステム名) (ステージの表示名) &7--- ステージの表示名を設定します"
- message "{@ZePrefix}&7何の文字を使っても大丈夫です。"
- message "{@ZePrefix}&6/ze &fsetbuilder (ステージのシステム名) (建造者) &7--- ステージの建造者を設定します"
- message "{@ZePrefix}&7何の文字を使っても大丈夫です。"
- message "{@ZePrefix}&6/ze &fplay &7--- ゲームに参加します"
- message "{@ZePrefix}&6/se &fstart &7--- ゲームを開始します"
- message "{@ZePrefix}&6/ze &fgoalsign (ステージのシステム名) &7--- ステージのゴール看板を設定します"
- on join:
- command "ungod %player%"
- if player is not op:
- clear player's inventory
- set {ze.joined.%player%} to false
- teleport player to {ze.lobby}
- set {ze.role.%player%} to ""
- on rightclick on a sign:
- if {ze.requested} is false:
- if {ze.started}:
- if {ze.role.%player%} is "escape":
- if {ze.sign.%{ze.playingstage}%} is location of targeted block:
- set {ze.requested} to true
- broadcast "{@ZePrefix}&e%player%&7さんが脱出申請をしています!"
- broadcast "{@ZePrefix}&7脱出まで&a%{ze.exit.%{ze.playingstage}%}%"
- set {_wait} to {ze.exit.%{ze.playingstage}%} parsed as number
- loop {_wait} times:
- wait 1 seconds
- if {ze.occupation} is false:
- loop {joinerss::*}:
- send loop-value title "&9Humans Win!" with subtitle "&7脱出に成功した" for 5 seconds
- command "god %loop-value%"
- wait 5 seconds
- command "ze stop"
- on damage of player:
- if damage cause is fall:
- cancel event
- else if {ze.joined.%victim%} is true:
- if {ze.noattack.%attacker%} is false:
- if {ze.role.%victim%} is "escape":
- cancel event
- if {ze.joined.%attacker%} is true:
- if {ze.role.%attacker%} is "infected":
- command "effect %victim% minecraft:slowness 5 126 true"
- command "god %victim%"
- command "effect %victim% minecraft:jump_boost 5 251 true"
- set {ze.noattack.%attacker%} to true
- broadcast "{@ZePrefix}&9%victim% &4<< &2%attacker%"
- clear victim's inventory
- send victim title "&7<<<<&c&l<&2攻撃を受けてしまった!&c&l>&7>>>>" for 1 second
- wait 1 second
- send victim title "&7<<<&c&l<<&2攻撃を受けてしまった!&c&l>>&7>>>" for 1 second
- wait 1 second
- send victim title "&7<<&c&l<<<&2攻撃を受けてしまった!&c&l>>>&7>>" for 1 second
- wait 1 second
- send victim title "&7<&c&l<<<<&2攻撃を受けてしまった!&c&l>>>>&7>" for 1 second
- wait 1 second
- send victim title "&c&l<<<<<&2攻撃を受けてしまった!&c&l>>>>>" for 1 second
- wait 1 second
- send victim title "&6&l<<<<<&2ゾンビに感染しました&6&l>>>>>" with subtitle "&c出来るだけ多く人間を感染させろ!" for 4 seconds
- command "ungod %victim%"
- set {ze.noattack.%victim%} to false
- remove 1 from {ze.humans}
- set {ze.role.%victim%} to "infected"
- command "replaceitem entity %victim% slot.armor.head minecraft:wool 1 13 {ench:[{id:10,lvl:1}]}"
- command "replaceitem entity %victim% slot.armor.chest minecraft:leather_chestplate 1 0 {ench:[{id:10,lvl:1}],Unbreakable:1}"
- command "replaceitem entity %victim% slot.armor.legs minecraft:leather_leggings 1 0 {ench:[{id:10,lvl:1}],Unbreakable:1}"
- command "replaceitem entity %victim% slot.armor.feet minecraft:leather_boots 1 0 {ench:[{id:10,lvl:1}],Unbreakable:1}"
- if {ze.humans} is 0:
- set {ze.occupation} to true
- loop all players:
- send loop-player title "&2Zombies Win!" with subtitle "&7全員を感染させた" for 4 seconds
- loop {joinerss::*}:
- command "god %loop-value%"
- wait 4 seconds
- command "ze stop"
- on death of player:
- if {ze.joined.%victim%} is true:
- if {ze.noattack.%attacker%} is false:
- if {ze.role.%victim%} is "infected":
- heal the victim
- if {ze.role.%attacker%} is "escape":
- command "effect %victim% minecraft:slowness 5 126 true"
- command "god %victim%"
- command "effect %victim% minecraft:jump_boost 5 251 true"
- set {ze.noattack.%victim%} to true
- send victim title "&7<<<<&c&l<&2ゾンビに再生しています...&c&l>&7>>>>" for 1 second
- wait 1 second
- send victim title "&7<<<&c&l<<&2ゾンビに再生しています...&c&l>>&7>>>" for 1 second
- wait 1 second
- send victim title "&7<<&c&l<<<&2ゾンビに再生しています...&c&l>>>&7>>" for 1 second
- wait 1 second
- send victim title "&7<&c&l<<<<&2ゾンビに再生しています...&c&l>>>>&7>" for 1 second
- wait 1 second
- send victim title "&c&l<<<<<&2ゾンビに再生しています...&c&l>>>>>" for 1 second
- wait 1 second
- send victim title "&6&l<<<<<&2ゾンビに再生しています...&6&l>>>>>" with subtitle "&c出来るだけ多く人間を感染させろ!" for 4 seconds
- set {ze.noattack.%victim%} to false
- command "ungod %victim%"
- on quit:
- loop {joinerss::*}:
- if loop-value is player:
- remove player from {joinerss::*}
- if {ze.role.%player%} is "escape":
- remove 1 from {ze.humans}
- if {ze.humans} is 0:
- set {ze.occupation} to true
- loop all players:
- send loop-player title "&2Zombies Win!" with subtitle "&7全員を感染させた" for 4 seconds
- loop {joinerss::*}:
- command "god %loop-value%"
- wait 4 seconds
- command "ze stop"
- on region enter:
- if "%region at player%" contains "%{ze.safename.%{ze.playingstage}%}%":
- if {ze.role.%player%} is "infected":
- set {ze.occupation} to true
- loop all players:
- send loop-player title "&2Zombies Win!" with subtitle "&7セーフエリアを占拠した" for 4 seconds
- wait 4 seconds
- loop {joinerss::*}:
- command "god %loop-value%"
- command "ze stop"
- command /rank [<text>] [<offline player>]:
- trigger:
- if arg 2 is set:
- if arg 1 is "default":
- set {rank.%arg 2's uuid%} to "default"
- set {color.%arg 2's uuid%} to "&7"
- set {prefix.%arg 2's uuid%} to "&7"
- if arg 1 is "stone":
- set {rank.%arg 2's uuid%} to "stone"
- set {color.%arg 2's uuid%} to "&8"
- set {prefix.%arg 2's uuid%} to "&8&k|&8Stone&8&k|"
- else if arg 1 is "iron":
- set {rank.%arg 2's uuid%} to "iron"
- set {color.%arg 2's uuid%} to "&8"
- set {prefix.%arg 2's uuid%} to "&7&k|&7Iron&7&k|"
- else if arg 1 is "lapis":
- set {rank.%arg 2's uuid%} to "lapis"
- set {color.%arg 2's uuid%} to "&1"
- set {prefix.%arg 2's uuid%} to "&1&k|&1Lapis&1&k|"
- else if arg 1 is "gold":
- set {rank.%arg 2's uuid%} to "gold"
- set {color.%arg 2's uuid%} to "&6"
- set {prefix.%arg 2's uuid%} to "&6&k|&6Gold&6&k|"
- else if arg 1 is "diamond":
- set {rank.%arg 2's uuid%} to "diamond"
- set {color.%arg 2's uuid%} to "&b"
- set {prefix.%arg 2's uuid%} to "&b&k|&bDiamond&b&k|"
- else if arg 1 is "emerald":
- set {rank.%arg 2's uuid%} to "emerald"
- set {color.%arg 2's uuid%} to "&a"
- set {prefix.%arg 2's uuid%} to "&a&k|&aEmerald&a&k|"
- else if arg 1 is "obsidan":
- set {rank.%arg 2's uuid%} to "obsidan"
- set {color.%arg 2's uuid%} to "&5"
- set {prefix.%arg 2's uuid%} to "&5&k|&5Obsidan&5&k|"
- else if arg 1 is "mod":
- set {rank.%arg 2's uuid%} to "mod"
- set {color.%arg 2's uuid%} to "&2"
- set {prefix.%arg 2's uuid%} to "&2&k|&2MOD&2&k|"
- else if arg 1 is "admin":
- set {rank.%arg 2's uuid%} to "admin"
- set {color.%arg 2's uuid%} to "&d"
- set {prefix.%arg 2's uuid%} to "&d&k|&dADMIN&d&k|"
- else if arg 1 is "owner":
- set {rank.%arg 2's uuid%} to "owner"
- set {color.%arg 2's uuid%} to "&c"
- set {prefix.%arg 2's uuid%} to "&c&k|&cOWNER&c&k|"
- else if arg 1 is "builder":
- set {rank.%arg 2's uuid%} to "builder"
- set {color.%arg 2's uuid%} to "&9"
- set {prefix.%arg 2's uuid%} to "&9&k|&9BUILDER&9&k|"
- else:
- message "&9Rank> &c無効なランクです。"
- set arg 2's tablist name to "%{prefix.%arg 2's uuid%}%%{color.%arg 2's uuid%}%%arg 2%"
- on chat:
- cancel event
- broadcast "%{prefix.%player's uuid%}%%{color.%player's uuid%}%%player%&f> %message%"
- on join:
- set {ze.noattack.%player%} to false
- if {ze.maingun.%player's uuid%} is not set:
- set {ze.maingun.%player's uuid%} to "AK-47"
- if {ze.subgun.%player's uuid%} is not set:
- set {ze.subgun.%player's uuid%} to "GLOCK18"
- if {rank.%player's uuid%} is not set:
- set {rank.%player's uuid%} to "default"
- set {color.%player's uuid%} to "&7"
- set {prefix.%player's uuid%} to "&7"
- set player's tablist name to "%{prefix.%player's uuid%}%%{color.%player's uuid%}%%player%"
- if {ze.ammos.%player's uuid%} is not set:
- set {ze.ammos.%player's uuid%} to 128
- on first join:
- set {rank.%player's uuid%} to "default"
- set {color.%player's uuid%} to "&7"
- set {prefix.%player's uuid%} to "&7"
- on right click holding a nether_star:
- make player execute command "ze weapons"
- command /play:
- trigger:
- if {ze.started}:
- message "{@ZePrefix}&cゲームは既に開始しています。"
- else:
- if {ze.joined.%player%}:
- message "{@ZePrefix}&c既に参加しています。"
- else:
- set {ze.joined.%player%} to true
- add player to {joinerss::*}
- broadcast "{@ZePrefix}%{color.%player's uuid%}%%player%&7さんが参加しました。"
- command /weapon:
- trigger:
- open chest with 1 row named "&6&l||&8&lGuns&6&k||" to player
- wait 1 tick
- format slot 2 of player with 1 of iron_horse_armor named "&6&lMainWeapon" to run [make player execute command "mainweapon"]
- format slot 6 of player with 1 of iron_horse_armor named "&a&lSubWeapon" to run [make player execute command "subweapon"]
- command /mainweapon:
- trigger:
- open chest with 1 row named "&6&lMainWeapons" to player
- wait 1 tick
- format slot 0 of player with 1 of iron_horse_armor named "&bAK-47" to close then run [make player execute command "maingun AK-47"]
- format slot 1 of player with 1 of golden_hoe named "&aDragunov" to close then run [make player execute command "maingun DRAGUNOV"]
- format slot 2 of player with 1 of iron_horse_armor named "&bM1A1-Edition" to close then run [make player execute command "maingun M1A1"]
- format slot 3 of player with 1 of shears named "&eMP5" to close then run [make player execute command "maingun MP5"]
- format slot 4 of player with 1 of iron_horse_armor named "&eM249" to close then run [make player execute command "maingun M249"]
- command /subweapon:
- trigger:
- open chest with 1 row named "&a&lSubWeapons" to player
- wait 1 tick
- format slot 0 of player with 1 of stone_shovel named "&aGlock18" to close then run [make player execute command "subgun GLOCK18"]
- format slot 1 of player with 1 of carrot_on_a_stick named "&eFive-SeveN" to close then run [make player execute command "subgun FIVE-SEVEN"]
- command /maingun <text>:
- trigger:
- set {ze.maingun.%player's uuid%} to arg
- message "{@ZePrefix}&7メインウエポンを&e%arg%&7に設定しました。"
- command /subgun <text>:
- trigger:
- set {ze.subgun.%player's uuid%} to arg
- message "{@ZePrefix}&7サブウエポンを&e%arg%&7に設定しました。"
- every 1 second:
- if {ze.started} is false:
- if {ze.countdowned} is false:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement