Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- zmb: &a[&4&lZombies&a]
- on join:
- broadcast "&e[&bJoin&e] &a%player%"
- command "/execute %player% ~ ~ ~ /playsound minecraft:entity.experience_orb.pickup ambient %player% ~ ~ ~ 2 1"
- teleport the player to {joinplace}
- on quit:
- broadcast "&e[&bQuit&e] &a%player%"
- on first join:
- broadcast "&e[&d&lFirstJoin&e] &a%player%"
- wait 2 tick
- command "/execute %player% ~ ~ ~ /playsound minecraft:entity.experience_orb.pickup ambient %player% ~ ~ ~ 2 1"
- command "/execute %player% ~ ~ ~ /playsound minecraft:entity.firework.launch ambient %player% ~ ~ ~ 2 1"
- teleport the player to {joinplace}
- command "/gamemode 2 %player%"
- set {zc.%player%} to 0
- on chat:
- if {prefix.%player%} is set:
- cancel event
- broadcast "%{prefix.%player%}%&a: &f%message%"
- on place of a tnt:
- cancel event
- command /prefix <player> <text>:
- permission: sk.admin
- trigger:
- if arg-1 is set:
- if arg-2 is set:
- set {prefix.%arg-1%} to coloured "%arg-2%%arg-1%"
- send "&a%arg-1%の&bPrefix&aを%arg-2%&aに変更しました。"
- command /zombies [<text>] [<text>] [<number>]:
- permission: sk.admin
- trigger:
- if arg-1 is "start":
- start()
- if arg-1 is "stop":
- stop()
- if arg-1 is "set":
- function start():
- if {game} is not "true":
- set {game} to "true"
- broadcast "&eゲームはあと20秒で始まります!"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 1 "
- wait 10 second
- broadcast "&eゲームはあと&610&e秒で始まります!"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 1 "
- wait 5 second
- broadcast "&Eゲームはあと4&e秒で始まります!"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 1 "
- wait a second
- broadcast "&Eゲームはあと3&e秒で始まります!"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 1 "
- wait a second
- broadcast "&Eゲームはあと2&e秒で始まります!"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 1 "
- wait a second
- broadcast "&Eゲームはあと1&e秒で始まります!"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.dispense master @a ~ ~ ~ 2 1 "
- wait a second
- loop all players:
- if {joiners::*} contain loop-player:
- teleport loop-player to {mapspawn}
- command "/effect @a 16 100000 127 true"
- set {timerstart} to "true"
- round()
- function stop():
- if {game} is "true":
- set {game} to false
- delete {joiners::*}
- delete {p::*}
- set {down} to ""
- set {players} to 0
- set {round} to 0
- set {zmbleft} to 0
- set {s} to 0
- set {m} to 0
- set {timerstart} to false
- broadcast "{@zmb}&e不具合が発生したためゲームを終了しました。"
- loop all players:
- set {down.%loop-player%} to false
- set {downtime.%loop-player%} to -1
- command "effect %loop-player% 14 0 127 true"
- set {died.%loop-player%} to false
- set {coin.%loop-player%} to 0
- set loop-player's fly mode to false
- set {rivive.%loop-player%} to "false"
- set {down.%{r.%loop-player%}%} to "false"
- set {revive.%loop-player%} to "false"
- set {revivet.%loop-player%} to 0
- set {r.%loop-player%} to ""
- set {downtime.%{r.%loop-player%}%} to -2
- delete {death::%{r.%loop-player%}%}
- set {down} to ""
- function round():
- add 1 to {round}
- execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.wither.spawn master @a ~ ~ ~ 2 0 "
- on break:
- if player's tool is stick:
- if {stick.%player%} is "true":
- cancel event
- add event-block to {spzombies::*}
- send "&aスポーン場所を設定しました。"
- if {stick.%player%} is false:
- cancel event
- send "&cスポーン場所から削除しました。"
- remove event-block from {spzombies::*}
- command /stick <text>:
- permission: sk.admin
- trigger:
- if arg-1 is "place":
- set {stick.%player%} to "true"
- send "{@zmb}&a設置モード"
- send "&a使用するには棒をもってスポーン場所を殴ってください"
- if arg-1 is "delete":
- send "{@zmb}&4リセットモード"
- delete {spzombies::*}
- if arg-1 is "off":
- set {stick.%player%} to ""
- send "{@zmb}&cオフ"
- command /setplace [<text>]:
- permission: sk.admin
- trigger:
- if arg-1 is "lobby":
- set {joinplace} to player's location
- send "&aスポーン場所を設定しました。"
- if arg-1 is "map":
- set {mapspawn} to player's location
- send "&aスポーン地点を設定しました。"
- command /check:
- permission: sk.admin
- trigger:
- send "&aSpzombies: %{spzombies::*}%"
- send "Game %{game}%"
- send "window %{window::*}%"
- command /join:
- trigger:
- if {game} is false:
- if {joiners::*} do not contain player:
- command "execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.dispense master %player% ~ ~ ~ 1 1.8"
- add player to {joiners::*}
- add 1 to {players}
- broadcast "&f%player% &ehas joined (&b%{players}%/8&e)!"
- else:
- send "&cすでに参加しています"
- command "execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.dispense master %player% ~ ~ ~ 1 0"
- else:
- send "&cゲームは既に始まっています"
- command "execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.dispense master %player% ~ ~ ~ 1 0"
- every 1 second:
- loop all players:
- wipe loop-player's sidebar
- if {game} is "true":
- set name of sidebar of loop-player to "&e&lZombies"
- set score "&7%now%" in sidebar of loop-player to 15
- set score "&a📞" in sidebar of loop-player to 14
- set score "&c&lRound %{round}%" in sidebar of loop-player to 13
- set score "Zombies Left: &a%{zmbleft}%" in sidebar of loop-player to 12
- set score "&a📞" in sidebar of loop-player to 11
- set {_player::*} to {joiners::*}
- loop number of {joiners::*} times:
- add 1 to {_n}
- if {p::%{_n}%} is not set:
- set {p::%{_n}%} to random player of {_player::*}
- set score "%{p::%{_n}%}% &6&l%{coin.%{_n}%}%" in sidebar of loop-player to 11-{_n}
- remove {p::%{_n}%} from {_player::*}
- set score "Zombie Kills: &a%{zmbkill.%loop-player%}%" in sidebar of loop-player to 3
- set score "Time: &a%{m}%:%{s}%" in sidebar of loop-player to 2
- set score "Map: &aDead End" in sidebar of loop-player to 1
- set {_n} to 0
- else:
- set name of sidebar of loop-player to "&e&lZombies"
- set score "&7%now%" in sidebar of loop-player to 15
- set score "&a📞" in sidebar of loop-player to 14
- set score "&eZC: &6%{zc.%loop-player%}%" in sidebar of loop-player to 13
- set score "Players: &a%number of all players%/8" in sidebar of loop-player to 12
- loop all players:
- if {down.%loop-player%} is "true":
- if {downtime.%loop-player%} is greater than 0.1:
- remove 1 from {downtime.%loop-player%}
- send action bar from "&eDiedするまで%{downtime.%loop-player%}%秒" to loop-player
- if {downtime.%loop-player%} is 0:
- set {downtime.%loop-player%} to 20
- command "/execute @a ~ ~ ~ /playsound minecraft:entity.player.hurt ambient @a ~ ~ ~ 2 1"
- set {down.%loop-player%} to false
- set {died.%loop-player%} to "true"
- send loop-player title "&4&lYou Died"
- send "&a次のラウンドで復活できます。" to loop-player
- command "effect %loop-player% 14 10000 127 true"
- set loop-player's fly mode to true
- command "/playsound minecraft:entity.player.hurt ambient %loop-player% ~ ~ ~ "
- set tab header to "&e&LZombies" and footer to "&eplay.Rezxis.net" for player
- every 1 second:
- if {timerstart} is "true":
- add 1 to {s}
- if {s} is 60:
- add 1 to {m}
- set {s} to 0
- on damage of player:
- if {game} is "true":
- health of victim*2 <= final damage
- cancel event
- set {down.%victim%} to "true"
- set {downtime.%victim%} to 20
- set {down} to "%victim%"
- set {death::%victim%} to location of victim
- command "heal %victim%"
- loop all players:
- send loop-player title "&7%victim% is down &ein Map"
- command "execute @a ~ ~ ~ /playsound minecraft:entity.wolf.growl ambient @a ~ ~ ~ 2 0.5"
- set {down} to ""
- on break:
- if player is not op:
- if {build.%player%} is "true":
- else:
- cancel event
- on place:
- if player is not op:
- if {build.%player%} is "true":
- else:
- cancel event
- command /reset:
- permission: sk.admin
- trigger:
- delete {death::*}
- set {_p} to ""
- every ticks:
- if {game} is "true":
- loop {death::*}:
- set {_p} to loop-index parsed as player
- loop all players in radius 2 of location of {_p}:
- loop-player is not {_p}
- if loop-player is sneaking:
- remove 1 from {tasukeru.%loop-player%}
- send action bar "&e蘇生完了まで%{tasukeru.%loop-player%}/20%秒" to loop-player
- send action bar "&e復活まで%{tasukeru.%loop-player%}/20%秒" to {_p}
- if {tasukeru.%loop-player%} is 0:
- broadcast "&e%loop-player%が%{_p}%を蘇生しました"
- delete {death::%{_p}%}
- delete {down.%{_p}%}
- delete {downtime.%{_p}%}
- stop
- else:
- set {tasukeru.%loop-player%} to 60
- loop all players in radius 2 of location of {w1}:
- if loop-player is sneaking:
- set {w1re} to "true"
- if {w1re} is "true":
- remove 1 from {w1t}
- send "&e窓を修復中..." to loop-player
- send "&6+10 coin" to loop-player
- command /builder <player>:
- permission: sk.admin
- trigger:
- if arg-1 is set:
- set {build.%arg-1%} to "true"
- send "&a%arg-1%をビルダーにしました"
- send "&aあなたはビルダーになった為、/gamemode 1が利用可能です。" to arg-1
- command /nobuilder <player>:
- permission: sk.admin
- trigger:
- if arg-1 is set:
- set {build.%arg-1%} to "true"
- send "&a%arg-1%をビルダーから除外しました"
- on command "/gamemode 1":
- if {builder.%player%} is "true":
- set player's gamemode to creative
- command /setwindow <text>:
- permission: sk.admin
- trigger:
- if arg-1 is "1":
- set {w1} to player's location
- send "&a設定しました。"
- if arg-1 is "2":
- set {w2} to player's location
- send "&a設定しました。"
- if arg-1 is "3":
- set {w3} to player's location
- send "&a設定しました。"
- if arg-1 is "4":
- set {w4} to player's location
- send "&a設定しました。"
- if arg-1 is "5":
- set {w5} to player's location
- send "&a設定しました。"
- if arg-1 is "6":
- set {w6} to player's location
- send "&a設定しました。"
- if arg-1 is "7":
- set {w7} to player's location
- send "&a設定しました。"
- if arg-1 is "8":
- set {w} to player's location
- send "&a設定しました。"
Add Comment
Please, Sign In to add comment