Advertisement
maozou

人狼RPG

Feb 19th, 2019
1,635
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.83 KB | None | 0 0
  1. options:
  2. logo: &7[&4&l人狼RPG&7]
  3. command /jinro <text>:
  4. permission: sk.admin
  5. trigger:
  6. if arg-1 is "start" or "stop":
  7. if arg-1 is "start":
  8. set {jinro} to "true"
  9. execute console command "setblock 22 1 120 air"
  10. execute console command "/clear @a nether_star"
  11. execute console command "/setblock 20 1 120 air"
  12. execute console command "/clear @a[team=sanka] noteblock"
  13. execute console command "/clear @a[team=sanka] redstone_block"
  14. execute console command "/setblock 41 1 185 redstone_block"
  15. execute console command "/setblock 37 1 182 redstone_block"
  16. execute console command "/effect @a[team=sanka] 21 10000 4 true"
  17. execute console command "/scoreboard teams leave @a[team=lobby]"
  18. execute console command "/jg @a"
  19. wait 1 seconds
  20. broadcast "{@logo} &aマップを選んでいます…"
  21. execute console command "/setblock 41 1 185 air"
  22. wait 2 second
  23. execute console command "/execute @r[type=Armor_Stand,name=MapRandom] ~ ~ ~ setblock ~ ~ ~ redstone_block"
  24. wait 10 second
  25. execute console command "/title @a subtitle ["""",{""text"":""--"",""color"":""dark_gray""},{""text"":""JinrouPRG"",""bold"":true,""color"":""dark_red""},{""text"":""--"",""color"":""dark_gray""}]"
  26. execute console command "/title @a title ["""",{""text"":""\u4eba\u72fcRPG"",""bold"":true,""color"":""dark_red""},{""text"":""\u3092\u59cb\u3081\u307e\u3059"",""color"":""dark_gray""}]"
  27. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  28. broadcast "{@logo} &4&l人狼RPG&aをスタートします…"
  29. execute console command "/heal @a"
  30. wait 3 seconds
  31. execute console command "/title @a title ["""",{""text"":""\u4eba\u72fcRPG"",""bold"":true,""color"":""dark_red""},{""text"":""\u3092\u59cb\u3081\u307e\u3059"",""color"":""dark_gray""}]"
  32. execute console command "/title @a title {""text"":""3\u2026"",""bold"":true,""color"":""green""}"
  33. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  34. broadcast "{@logo} &a3…"
  35. wait 2 second
  36. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  37. execute console command "/title @a title ["""",{""text"":""\u4eba\u72fcRPG"",""bold"":true,""color"":""dark_red""},{""text"":""\u3092\u59cb\u3081\u307e\u3059"",""color"":""dark_gray""}]"
  38. execute console command "/title @a title {""text"":""2\u2026"",""bold"":true,""color"":""yellow""}"
  39. broadcast "{@logo} &e2…"
  40. wait 2 seconds
  41. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  42. execute console command "/title @a title ["""",{""text"":""\u4eba\u72fcRPG"",""bold"":true,""color"":""dark_red""},{""text"":""\u3092\u59cb\u3081\u307e\u3059"",""color"":""dark_gray""}]"
  43. execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  44. execute console command "/title @a title {""text"":""1\u2026"",""bold"":true,""color"":""red""}"
  45. broadcast "{@logo} &41…"
  46. wait 2 seconds
  47. execute console command "/title @a title {""text"":""Start!!"",""bold"":true,""color"":""gold""}"
  48. execute console command "/title @a subtitle ["""",{""text"":""--"",""color"":""dark_gray""},{""text"":""JinrouPRG"",""bold"":true,""color"":""dark_red""},{""text"":""--"",""color"":""dark_gray""}]"
  49. execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.experience_orb.pickup master @a"
  50. broadcast "{@logo} &6&lStart!!"
  51. execute console command "/setblock 41 1 181 redstone_block"
  52. if {jinrou1} is "true":
  53. command "/scoreboard teams join jinrou @r[team=sanka]"
  54. else:
  55. if {jinrou2} is "true":
  56. command "/scoreboard teams join jinrou @r[team=sanka]"
  57. command "/scoreboard teams join jinrou @r[team=sanka]"
  58. else:
  59. if {jinrou3} is "true":
  60. command "/scoreboard teams join jinrou @r[team=sanka]"
  61. command "/scoreboard teams join jinrou @r[team=sanka]"
  62. command "/scoreboard teams join jinrou @r[team=sanka]"
  63. else:
  64. if {jinrou4} is "true":
  65. command "/scoreboard teams join jinrou @r[team=sanka]"
  66. command "/scoreboard teams join jinrou @r[team=sanka]"
  67. command "/scoreboard teams join jinrou @r[team=sanka]"
  68. command "/scoreboard teams join jinrou @r[team=sanka]"
  69. else:
  70. if {jinrou5} is "true":
  71. command "/scoreboard teams join jinrou @r[team=sanka]"
  72. command "/scoreboard teams join jinrou @r[team=sanka]"
  73. command "/scoreboard teams join jinrou @r[team=sanka]"
  74. command "/scoreboard teams join jinrou @r[team=sanka]"
  75. command "/scoreboard teams join jinrou @r[team=sanka]"
  76. else:
  77. if {jinrou6} is "true":
  78. command "/scoreboard teams join jinrou @r[team=sanka]"
  79. command "/scoreboard teams join jinrou @r[team=sanka]"
  80. command "/scoreboard teams join jinrou @r[team=sanka]"
  81. command "/scoreboard teams join jinrou @r[team=sanka]"
  82. command "/scoreboard teams join jinrou @r[team=sanka]"
  83. command "/scoreboard teams join jinrou @r[team=sanka]"
  84. else:
  85. if {jinrou7} is "true":
  86. command "/scoreboard teams join jinrou @r[team=sanka]"
  87. command "/scoreboard teams join jinrou @r[team=sanka]"
  88. command "/scoreboard teams join jinrou @r[team=sanka]"
  89. command "/scoreboard teams join jinrou @r[team=sanka]"
  90. command "/scoreboard teams join jinrou @r[team=sanka]"
  91. command "/scoreboard teams join jinrou @r[team=sanka]"
  92. command "/scoreboard teams join jinrou @r[team=sanka]"
  93. if {kyouzin1} is "true":
  94. command "/scoreboard teams join kyouzin @r[team=sanka]"
  95. else:
  96. if {kyouzin2} is "true":
  97. command "/scoreboard teams join kyouzin @r[team=sanka]"
  98. command "/scoreboard teams join kyouzin @r[team=sanka]"
  99. else:
  100. if {kyouzin3} is "true":
  101. command "/scoreboard teams join kyouzin @r[team=sanka]"
  102. command "/scoreboard teams join kyouzin @r[team=sanka]"
  103. command "/scoreboard teams join kyouzin @r[team=sanka]"
  104. if {gouhu1} is "true":
  105. command "/scoreboard teams join gouhu @r[team=sanka]"
  106. else:
  107. if {gouhu2} is "true":
  108. command "/scoreboard teams join gouhu @r[team=sanka]"
  109. command "/scoreboard teams join gouhu @r[team=sanka]"
  110. else:
  111. if {gouhu3} is "true":
  112. command "/scoreboard teams join gouhu @r[team=sanka]"
  113. command "/scoreboard teams join gouhu @r[team=sanka]"
  114. command "/scoreboard teams join gouhu @r[team=sanka]"
  115. if {kyu1} is "true":
  116. command "/scoreboard teams join kyuketu @r[team=sanka]"
  117. command "/scoreboard teams join murabito @a[team=sanka]"
  118. command "/scoreboard teams join murabito @a[team=sanka]"
  119. command "/jinrou @a[team=jinrou]"
  120. command "/kyuketuki @a[team=kyuketu]"
  121. command "/kyouzin @a[team=kyouzin]"
  122. command "/gouhu @a[team=gouhu]"
  123. else:
  124. if {kyu0} is "true":
  125. command "/scoreboard teams join murabito @a[team=sanka]"
  126. command "/jinrou @a[team=jinrou]"
  127. command "/kyuketuki @a[team=kyuketu]"
  128. command "/kyouzin @a[team=kyouzin]"
  129. command "/gouhu @a[team=gouhu]"
  130. if arg-1 is "stop":
  131. execute console command "setblock 22 1 120 redstone_block"
  132. broadcast "{@logo} &4&l人狼終了!"
  133. broadcast "&8==============&4役職&8=============="
  134. broadcast "&4&l人狼 … &b%{jinrou::*}%"
  135. broadcast "&8&l狂人 … &b%{kyouzin::*}%"
  136. broadcast "&6&l豪富 … &b%{gouhu::*}%"
  137. broadcast "&d&l吸血鬼 … &b%{kyuketuki::*}%"
  138. broadcast "&8====================================="
  139. set {jinro::a} to "false"
  140. set {vlls::a} to 0
  141. set {jrrs::a} to 0
  142. set {vams::a} to 0
  143. delete {jinrou::*}
  144. delete {kyouzin::*}
  145. delete {gouhu::*}
  146. delete {kyuketuki::*}
  147. delete {murabito::*}
  148. execute console command "time set 1000"
  149. loop all players:
  150. set {vll::%loop-player%} to "false"
  151. set {jrr::%loop-player%} to "false"
  152. set {shpp.%loop-player%} to "false"
  153. set {vam::%loop-player%} to "false"
  154. set {game.%loop-player%} to "false"
  155. set {start.%loop-player%} to "false"
  156.  
  157. command /villager <player>:
  158. permission: sk.villager
  159. trigger:
  160. set {vll::%arg-1%} to "true"
  161. add 1 to {vlls::a}
  162. add name of arg-1 to {murabito::*}
  163. command /jinrou <player>:
  164. permission: sk.jinrou
  165. trigger:
  166. set {jrr::%arg-1%} to "true"
  167. add 1 to {jrrs::a}
  168. add name of arg-1 to {jinrou::*}
  169. command /kyuketuki <player>:
  170. permission: sk.kyuketuki
  171. trigger:
  172. set {vam::%arg-1%} to "true"
  173. add 1 to {vams::a}
  174. add name of arg-1 to {kyuketuki::*}
  175. command /jvcheck <player>:
  176. permission: sk.admin
  177. trigger:
  178. send "villagers %{vlls::a}%"
  179. send "jinros %{jrrs::a}%"
  180. send "kyuuketuki %{vams::a}%"
  181. command /kyouzin <player>:
  182. permission: skript.admin
  183. trigger:
  184. add name of arg-1 to {kyouzin::*}
  185. on death:
  186. attacker is player
  187. victim is player
  188. if {vll::%victim%} is "true":
  189. remove 1 from {vlls::a}
  190. else:
  191. remove 1 from {jrrs::a}
  192. on death:
  193. set {shpp.%victim%} to "true"
  194. execute console command "/clear %player%"
  195. execute console command "/scoreboard teams leave %player%"
  196. execute console command "/effect @a 23 10000 255 true"
  197. execute console command "/spawnpoint %player% -20 5 112"
  198. on damage:
  199. if attacker's tool is stick:
  200. if {jrr::%victim%} is "true":
  201. cancel event
  202. execute console command "clear %attacker% minecraft:stick 0 1 "
  203. send "&6占っています.." to attacker
  204. wait 1 second
  205. send "&b結果: &a%victim%は&4人狼でした。" to attacker
  206. else:
  207. if {vll::%victim%} is "true":
  208. cancel event
  209. execute console command "clear %attacker% minecraft:stick 0 1 "
  210. send "&6占っています.." to attacker
  211. wait 1 second
  212. send "&b結果: &a%victim%は&b村人でした。" to attacker
  213. if {vam::%victim%} is "true":
  214. cancel event
  215. execute console command "clear %attacker% minecraft:stick 0 1 "
  216. send "&6占っています.." to attacker
  217. wait 1 second
  218. send "&b結果: &a%victim%は&5吸血鬼でした。" to attacker
  219. else:
  220. cancel event
  221. execute console command "clear %attacker% minecraft:stick 0 1 "
  222. send "&6占っています.." to attacker
  223. wait 1 second
  224. send "&b結果: &a%victim%は&a村人でした。" to attacker
  225.  
  226. on damage:
  227. if attacker's tool is redstone dust:
  228. if {vam::%victim%} is "true":
  229. send "&5吸血の十字架&aを使って吸血鬼を倒した!" to attacker
  230. execute console command "/execute %attacker% ~ ~ ~ /playsound minecraft:item.shield.break ambient %attacker% ~ ~ ~"
  231. execute console command "clear %attacker% redstone 0 1"
  232. kill victim
  233. else:
  234. send "&5吸血の十字架&aを使った。"
  235. execute console command "/execute %attacker% ~ ~ ~ /playsound minecraft:item.shield.break ambient %attacker% ~ ~ ~"
  236. execute console command "clear %attacker% redstone 0 1"
  237. cancel event
  238. every 1 second:
  239. if {jinro} is "true":
  240. loop all players:
  241. if {as.a} is "asa":
  242. remove 1 from {time.a}
  243. send action bar "&6&l朝 &B&L>>> &a&L残り時間&b&L:&e&L%{time.a}%" to loop-player
  244. else:
  245. send "a" to loop-player
  246. send action bar "&9&l夜 &B&L>>> &a&L残り時間&b&L:&e&L%{time.a}%" to loop-player
  247. if {time.a} is less than 0.1:
  248. if {as.a} is "asa":
  249. set {as.a} to "yoru"
  250. set {time.a} to 150
  251.  
  252. else:
  253. set {as.a} to "asa"
  254. set {time.a} to 100
  255. command /tms:
  256. trigger:
  257. set {as.a} to "yoru"
  258. set {time.a} to 150
  259. command /tmst:
  260. trigger:
  261. set {jinro} to "stop"
  262. set {time.a} to 150
  263. command /tmss:
  264. trigger:
  265. set {time.a} to 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement