Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- logo: &8[&4&l人狼RPG&8]
- command /jinro [<text>]:
- permission: skript.admin
- permission message: &cYou don't have permission!
- trigger:
- if arg-1 is "stop":
- set {game} to "false"
- command "/scoreboard teams leave @a"
- delete {jinrou::*}
- delete {_player::*}
- delete {kyozin::*}
- delete {gouhu::*}
- delete {kyu::*}
- set {map} to "none"
- delete {murabito::*}
- set {time} to "none"
- set {times} to 150
- delete {_p}
- delete {_a}
- delete {_i}
- delete {_u}
- loop all players:
- set {sanka.%loop-player%} to "false"
- set {score.%loop-player%} to 0
- set slot 4 of loop-player to 1 nether star named "&aゲームに参加"
- if arg-1 is "start":
- broadcast "{@logo} &aマップを選んでいます…"
- wait 2 seconds
- command "/clear @a nether_star"
- chance of 20%:
- send title "&8&k!! &6&l Unknown Stage &8&k!!"
- broadcast "&6================================="
- broadcast "&b Made: _N4_ , Marble_Pro"
- broadcast "&b &aMAP: Unknown Stage"
- broadcast "&6=================================="
- command "/execute @a ~ ~ ~ /playsound minecraft:entity.generic.explode master @a"
- set {map} to 1
- wait 2 seconds
- execute console command "/tp @a[team=sanka] -349 9 1375"
- else:
- chance of 25%:
- send title "&8&k!! &6&l 豪邸 &8&k!!"
- broadcast "&6=============================="
- broadcast "&b Made: Futaba_Nyan , MakingMe_"
- broadcast "&b &aMAP: 豪邸"
- broadcast "&6==============================="
- command "/execute @a ~ ~ ~ /playsound minecraft:entity.generic.explode master @a"
- set {map} to 2
- wait 2 seconds
- execute console command "/tp @a[team=sanka] 100 5 100"
- else:
- chance of 100%:
- send title "&8&k!! &6&l Big Ocean &8&k!!"
- broadcast "&6=============================="
- broadcast "&b Made: Marble_Pro"
- broadcast "&b &aMAP: Big Ocean"
- broadcast "&6==============================="
- command "/execute @a ~ ~ ~ /playsound minecraft:entity.generic.explode master @a"
- set {map} to 3
- wait 2 seconds
- execute console command "/tp @a[team=sanka] 100 5 100"
- wait 2 seconds
- broadcast "{@logo} &e試合を開始します。開始前にプレイヤーは散らばりましょう"
- broadcast "{@logo} &e試合開始までのこり&c15秒前&e…"
- command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
- send title "&e15…"
- wait 5 seconds
- broadcast "{@logo} &e試合開始までのこり&c10秒前&e…"
- command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
- send title "&e10…"
- wait 5 seconds
- broadcast "{@logo} &e試合開始までのこり&c5秒前&e…"
- command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
- send title "&e5…"
- wait 1 seconds
- broadcast "{@logo} &e試合開始までのこり&c4秒前&e…"
- command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
- send title "&e4…"
- wait 1 seconds
- broadcast "{@logo} &e試合開始までのこり&c3秒前&e…"
- command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
- send title "&e3…"
- wait 1 seconds
- broadcast "{@logo} &e試合開始までのこり&c2秒前&e…"
- command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
- send title "&e2…"
- wait 1 seconds
- broadcast "{@logo} &e試合開始までのこり&c1秒前&e…"
- command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
- send title "&e1…"
- wait 1 seconds
- broadcast "{@logo} &6&lStart!"
- broadcast "{@logo} &7役職が配られました"
- execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.wolf.howl master @a ~ ~ ~"
- command "/time set night"
- set {time} to "night"
- set {times} to 150
- set {game} to "true"
- loop all players:
- if {sanka.%loop-player%} is "true":
- add loop-player to {_player::*}
- command "/scoreboard teams join murabito %loop-player%"
- set {score.%loop-player%} to 5
- loop {jinrou} times:
- set {_p} to random player of {_player::*}
- add {_p} to {jinrou::*}
- set {jinrou::%{_p}%} to "true"
- command "/scoreboard teams join jinrou %{_p}%"
- set {score.%{_p}%} to 1
- set {villager::%{_p}%} to "true"
- remove {_p} from {_player::*}
- loop {kyouzin} times:
- set {_a} to random player of {_player::*}
- command "/scoreboard teams join kyouzin %{_a}%"
- set {score.%{_a}%} to 2
- add {_a} to {kyozin::*}
- set {kyouzin::%{_p}%} to "true"
- remove {_a} from {_player::*}
- loop {kyu} times:
- set {_i} to random player of {_player::*}
- command "/scoreboard teams join kyuketu %{_i}%"
- set {score.%{_i}%} to 3
- add {_i} to {kyu::*}
- set {vampire::%{_p}%} to "true"
- remove {_i} from {_player::*}
- loop {gouhu} times:
- set {_u} to random player of {_player::*}
- set {score.%{_u}%} to 4
- add {_u} to {gouhu::*}
- set {gouhu::%{_p}%} to "true"
- command "/scoreboard teams join gouhu %{_u}%"
- remove {_u} from {_player::*}
- add {_player::*} to {murabito::*}
- set {villager::%{_p}%} to "true"
- remove {_player::*} from {_murabito::*}
- #1 = 人狼 ¦ 2 = 狂人 ¦ 3 = 吸血鬼 ¦ 4 = 豪富 ¦ 5 = 村人#
- loop all players:
- if {score.%loop-player%} is 0:
- set slot 4 of loop-player to 1 bed named "&c観戦"
- if {score.%loop-player%} is 1:
- execute console command "menu grab %loop-player% jinrou"
- give loop-player pieces of paper named "&4&l人狼" with lore "&e他の人狼 &b%{jinrou::*}%"
- send "&aあなたは&4&l人狼&aです" to loop-player
- send "&e他の人狼 … &f%{jinrou::*}%" to loop-player
- command "/title %loop-player% times 20 100 20"
- command "title %loop-player% subtitle ["""",{""text"":""\u4ed6\u306e\u4eba\u72fc"",""color"":""yellow""},{""text"":"" \u2026"",""color"":""yellow""},{""text"":"" ""},{""selector"":""@a[team=jinrou]""}]"
- command "/title %loop-player% title ["""",{""text"":""\u3042\u306a\u305f\u306f"",""color"":""green""},{""text"":""\u4eba\u72fc"",""bold"":true,""color"":""dark_red""},{""text"":""\u3067\u3059"",""color"":""green""}]"
- if {score.%loop-player%} is 2:
- send title "&aあなたは&8&l狂人&aです" to loop-player
- send "&aあなたは&8&l狂人&aです" to loop-player
- execute console command "menu grab %loop-player% kyouzin"
- every 1 seconds:
- if {game} is "true":
- remove 1 from {times}
- loop all players:
- if {time} is "day":
- send action bar "&6&l朝 &b>>> &a残り時間:&e%{times}%" to loop-player
- else:
- if {time} is "night":
- send action bar "&9&l夜 &b>>> &a残り時間:&e%{times}%" to loop-player
- if {times} is less than 1:
- loop all players:
- if {time} is "day":
- set {time} to "night"
- set {times} to 150
- send title "&8--= &b☽&9夜になりました&b☽ &8=--" to loop-player
- command "/time set night"
- else:
- if {time} is "night":
- set {time} to "day"
- set {times} to 100
- send title "&8--= &c☀&6朝になりました&c☀ &8=--" to loop-player
- command "/time set day"
- on first join:
- wait 2 tick
- if {game} is "false":
- set slot 4 of player to 1 nether star named "&aゲームに参加"
- else:
- if {game} is "true":
- command "/clear %player% nether_star"
- set player's gamemode to spectator
- send "&aゲームがすでに始まっていたため観戦になりました"
- if {map} is 1:
- command "/tp %player% -349 9 1375"
- if {map} is 2:
- command "/tp %player% 100 5 100"
- if {map} is 3:
- on join:
- wait 2 tick
- if {game} is "false":
- set slot 4 of player to 1 nether star named "&aゲームに参加"
- else:
- if {game} is "true":
- command "/clear %player% nether_star"
- set player's gamemode to spectator
- send "&aゲームがすでに始まっていたため観戦になりました"
- if {map} is 1:
- command "/tp %player% -349 9 1375"
- if {map} is 2:
- command "/tp %player% 100 5 100"
- if {map} is 3:
- on join:
- wait 0.2 seconds
- send title "&ew"
- wait 0.3 seconds
- send title "&ew&de" #Welcome
- wait 0.3 seconds
- send title "&ew&de&bl"
- wait 0.3 seconds
- send title "&aw&de&bl&ac"
- wait 0.3 seconds
- send title "&aw&de&bl&ac&9o"
- wait 0.3 seconds
- send title "&aw&de&bl&ac&9o&6m"
- wait 0.3 seconds
- send title "&aW&de&bl&ac&9o&6m&3e"
- wait 0.3 seconds
- wait 0.3 seconds
- send title "&aW&de&bl&ac&9o&6m&3e, &a%player%!"
- command /check:
- trigger:
- send "%{jinrou::*}% 人狼 %{jinrou}%"
- send "%{kyozin::*}% 狂人 %{kyouzin}%"
- send "%{gouhu::*}% 豪富 %{gouhu}%"
- send "%{kyu::*}% 吸血鬼 %{kyu}%"
- send "%{murabito::*}% 村人"
- send "%{_player::*}%"
- on rightclick holding a nether star:
- name of held item contains "&aゲームに参加"
- if {sanka.%player%} is "false":
- send "&8[&4&l人狼RPG&8] &aゲームに参加しました!"
- command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
- set {sanka.%player%} to "true"
- command "/scoreboard teams join sanka %player%"
- else:
- send "&8[&4&l人狼RPG&8] &cすでに参加しています"
- command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.fail master %player%"
- on rightclick holding a bed:
- name of held item contains "&c観戦"
- if {game} is "false":
- send "&c試合は始まっていません"
- else:
- send "&a観戦になりました"
- if {map} is 1:
- execute console command "/tp %player% -349 9 1375"
- if {map} is 2:
- execute console command "/tp %player% 100 5 100"
- if {map} is 3:
- command /settime [<number>]:
- permission: skript.admin
- trigger:
- set {times} to arg-1
- on inventory click:
- if {game} is "false":
- if clicked slot is 4:
- cancel event
- command /a [<player>]:
- trigger:
- set {sanka.%arg-1%} to "true"
- on damage:
- if attacker's tool is stick:
- if {jinrou::%victim%} is "true":
- cancel event
- execute console command "clear %attacker% minecraft:stick 0 1 "
- send "&6占っています.." to attacker
- wait 1 second
- send "&b結果: &a%victim%は&4人狼でした。" to attacker
- else:
- if {villager::%victim%} is "true":
- cancel event
- execute console command "clear %attacker% minecraft:stick 0 1 "
- send "&6占っています.." to attacker
- wait 1 second
- send "&b結果: &a%victim%は&b村人でした。" to attacker
- if {vampire::%victim%} is "true":
- cancel event
- execute console command "clear %attacker% minecraft:stick 0 1 "
- send "&6占っています.." to attacker
- wait 1 second
- send "&b結果: &a%victim%は&5吸血鬼でした。" to attacker
- else:
- cancel event
- execute console command "clear %attacker% minecraft:stick 0 1 "
- send "&6占っています.." to attacker
- wait 1 second
- send "&b結果: &a%victim%は&a村人でした。" to attacker
- on damage:
- if attacker's tool is redstone dust:
- if {vampire::%victim%} is "true":
- send "&5吸血の十字架&aを使って吸血鬼を倒した!" to attacker
- execute console command "/execute %attacker% ~ ~ ~ /playsound minecraft:item.shield.break ambient %attacker% ~ ~ ~"
- execute console command "clear %attacker% redstone 0 1"
- kill victim
- else:
- send "&5吸血の十字架&aを使った。"
- execute console command "/execute %attacker% ~ ~ ~ /playsound minecraft:item.shield.break ambient %attacker% ~ ~ ~"
- execute console command "clear %attacker% redstone 0 1"
- cancel event
- on rightclick holding a armor stand:
- name of held item contains "&6&l騎士の祈り"
- execute console command "/effect %player% 11 1000000 255 true"
- execute console command "/clear %player% armor_stand 0 1"
- send "&6騎士の祈り&aを使用しました。"
- on rightclick holding a ender crystal:
- name of held item contains "共犯者の目"
- execute console command "/clear %player% end_crystal 0 1"
- send "&5共犯者の目&aを使用しました。"
- execute console command "/scoreboard teams join jinrou %player%"
- wait 20 seconds
- send "&5共犯者の目の効果が&a残り&610秒&aで効果が切れます…"
- wait 10 seconds
- send "&5共犯者の目&aの効果が切れました。"
- execute console command "/scoreboard teams join kyouzin %player%"
- on rightclick holding a firework star:
- name of held item contains "&7&l煙幕"
- execute console command "execute %player% ~ ~ ~ /effect @a[r=5] 15 5 1"
- execute console command "effect %Player% 15 0 "
- send "&7&l煙幕&aを使用しました。"
- on rightclick holding a totems of undying:
- name of held item contains "&e&l透姿"
- execute console command "/effect @a glowing 3 1 "
- send "&e&l透姿&aを使用しました。"
Add Comment
Please, Sign In to add comment