Advertisement
minmin0917

Untitled

Dec 26th, 2019
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.31 KB | None | 0 0
  1. #aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  2. #aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  3.  
  4. options:
  5. logo : &b[氷鬼]
  6. command /oc [<text>]:
  7. permission: skript.admin
  8. trigger:
  9. if arg-1 is set:
  10. send "&6[OP] &a%player% : %arg-1%" to ops
  11. else:
  12. send "&cメッセージを入力してください"
  13. on chat:
  14. cancel event
  15. if {Mute.%player%} is true:
  16. send "&cあなたはミュートされています!!"
  17. stop
  18. else:
  19. if {Rank.%player%} is "VIP":
  20. if {oni::*} contains player:
  21. broadcast "&c[鬼] %player% &e[VIP] &f: &f%message%"
  22. else if {nige::*} contains player:
  23. broadcast "&a[逃げ] %player% &e[VIP] &f: &f%message%"
  24. else if {koori::*} contains player:
  25. broadcast "&b[氷] %player% &e[VIP] &f: &f%message%"
  26. else if player is op:
  27. broadcast "&c[AllChat] &6[Admin] &d%player% &f: &f%message%"
  28. else if player's gamemode is spectator:
  29. broadcast "&c[AllChat] &7[観戦] %player% &e[VIP] : &f%message%"
  30. else:
  31. broadcast "&c[AllChat] %player% &e[VIP] &f: &f%message%"
  32. else:
  33. if {oni::*} contains player:
  34. broadcast "&c[鬼] %player% &7: &f%message%"
  35. else if {nige::*} contains player:
  36. broadcast "&a[逃げ] %player% &7: &f%message%"
  37. else if {koori::*} contains player:
  38. broadcast "&b[氷] %player% &7: &f%message%"
  39. else if player is op:
  40. broadcast "&c[AllChat] &6[Admin] &d%player% &f: &f%message%"
  41. else if player's gamemode is spectator:
  42. broadcast "&c[AllChat] &7[観戦] %player% : &7%message%"
  43. else:
  44. broadcast "&c[AllChat] %player% &7: &7%message%"
  45.  
  46. command /kaijo:
  47. permission: skript.admin
  48. trigger:
  49. command "/effect %player% clear"
  50. remove player from {koori::*}
  51. add player to {nige::*}
  52. command "/kill @e[type=falling_block,name=%player%]"
  53. command "/clear %player%"
  54. set player's tab list name to "&a[逃げ]%player%"
  55.  
  56.  
  57. on join:
  58. command "/effect %player% clear"
  59. if {game} is set:
  60. if {oni::*} contains player:
  61. teleport player to {spawn.nige::%{map}%}
  62. else if {nige::*} contains player:
  63. teleport player to {spawn.nige::%{map}%}
  64. effect(player)
  65. else if {koori::*} contains player:
  66. teleport player to {spawn.nige::%{map}%}
  67. effect(player)
  68. else:
  69. send "{@logo} &a試合が終わるまで観戦です"
  70. set player's tab list name to "&7[観戦]%player%"
  71. teleport player to location (532, 6, 284)
  72. set player's gamemode to spectator
  73. else:
  74. remove player from {koori::*}
  75. command "/scoreboard teams join nametag %player%"
  76.  
  77. on quit:
  78. if {nige::*} contains player:
  79. remove player from {nige::*}
  80.  
  81. command /spawnmap [<number>] [<text>] [<text>]:
  82. permission: skript.admib
  83. trigger:
  84. if arg-1 is set:
  85. if arg-2 is "add":
  86. if arg-3 is "oni":
  87. send "{@logo} &aマップ%arg-1%の鬼のスポーンを%location of player%に設定しました"
  88. set {spawn.oni::%arg-1%} to location of player
  89. else if arg-3 is "nige":
  90. send "{@logo} &eマップ%arg-1%の逃げのスポーンを%location of player%に設定しました"
  91. set {spawn.nige::%arg-1%} to location of player
  92. else if arg-2 is "remove":
  93. if arg-3 is "oni":
  94. send "{@logo} &aマップ%arg-1%の鬼のスポーンを削除しました"
  95. delete {spawn.oni::%arg-1%}
  96. if arg-3 is "nige":
  97. send "{@logo} &aマップ%arg-1%の逃げのスポーンを削除しました"
  98. delete {spawn.nige::%arg-1%}
  99.  
  100. command /kaisi:
  101. permission: skript.admin
  102. trigger:
  103. set {Server.Game} to true
  104. {game} is not set
  105. set {game} to true
  106. set {map} to random integer between 1 and 4
  107. broadcast "{@logo} &a鬼を決めます…"
  108. wait 1 seconds
  109. loop all players:
  110. {j.%loop-player%} is not set
  111. add loop-player to {_player::*}
  112. if number of {_player::*} is between 1 and 5:
  113. set {_n} to random player of {_player::*}
  114. command "/oni add %{_n}%"
  115. broadcast "{@logo} &a今回の鬼は&b%{_n}%&aさんです"
  116. else if number of {_player::*} is between 6 and 14:
  117. loop 2 times:
  118. set {_n} to random player of {_player::*}
  119. remove {_n} from {_player::*}
  120. command "/oni add %{_n}%"
  121. broadcast "{@logo} &a今回の鬼は&b%{_n}%&aさんです"
  122. else if number of {_player::*} is between 14 and 30:
  123. loop 3 times:
  124. set {_n} to random player of {_player::*}
  125. remove {_n} from {_player::*}
  126. command "/oni add %{_n}%"
  127. broadcast "{@logo} &a今回の鬼は&b%{_n}%&aさんです"
  128. wait 2 seconds
  129. set {game} to true
  130. loop all players:
  131. if {oni::*} contains loop-player:
  132. set loop-player's helmet to glowing ice named "&c【鬼装備】"
  133. set loop-player's chestplate to glowing leather chestplate named "&c【鬼装備】"
  134. set loop-player's leggings to glowing leather leggings named "&c【鬼装備】"
  135. set loop-player's boots to glowing leather boots named "&c【鬼装備】"
  136. dye loop-player's helmet light blue
  137. dye loop-player's chestplate light blue
  138. dye loop-player's leggings light blue
  139. dye loop-player's boots light blue
  140. teleport loop-player to {spawn.oni::%{map}%}
  141. set loop-player's tab list name to "&c[鬼]%loop-player%"
  142. else:
  143. {j.%loop-player%} is not set
  144. teleport loop-player to {spawn.nige::%{map}%}
  145. set loop-player's tab list name to "&a[逃げ]%loop-player%"
  146. command "/effect %loop-player% 1 10 2 true"
  147. give loop-player feather named "&bBooster"
  148. add loop-player to {nige::*}
  149. command "/setblock 560 4 200 redstone_block"
  150. command "/fill 584 12 194 584 5 182 ice"
  151. command "/fill 525 7 464 721 4 464 ice"
  152. broadcast "{@logo} &c10&a秒後に鬼が動き始めます…"
  153. command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  154. wait 5 seconds
  155. loop 5 times:
  156. broadcast "{@logo} &c%6-loop-number%&a秒後に鬼が動き始めます…"
  157. command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  158. wait 1 seconds
  159. command "/fill 584 12 194 584 5 182 air" #map1
  160. command "/fill 587 10 113 599 4 113 air" #map2
  161. command "/fill 895 8 18 895 5 31 air" #map3-1
  162. command "/fill 898 8 38 908 5 38 air" #map3-2
  163. command "/fill 527 7 464 525 4 464 air" #map4
  164. command "/execute @a ~ ~ ~ /playsound minecraft:entity.wither.spawn master @a ~ ~ ~ 1 2"
  165. broadcast "{@logo} &b&l鬼が動き始めました!"
  166. set {time} to 300
  167. set {time.color} to "&a"
  168. while {game} is set:
  169. wait 1 seconds
  170. remove 1 from {time}
  171. send action bar "&c&l【&e残り時間&8:%{time.color}%%{time}%&c&l &b%number of {nige::*}%人が生存中&c&l】" to all players
  172. if {time} is 150:
  173. set {time.color} to "&e"
  174. if {time} is 60:
  175. set {time.color} to "&c"
  176. if {time} is 30:
  177. broadcast "{@logo} &6残り30秒を切ったため逃走者にに発行、鬼にスピードがつきます"
  178. loop {nige::*}:
  179. command "/effect %loop-value% glowing 10000 255 true"
  180. loop {koori::*}:
  181. command "/effect %loop-value% glowing 10000 255 true"
  182. loop {oni::*}:
  183. command "/effect %loop-value% speed 100000 1 true"
  184. if number of {nige::*} is 0:
  185. execute console command "/owari"
  186. loop all players:
  187. teleport loop-player to location (532, 6, 284)
  188. broadcast "{@logo} &a全員が捕まったため、&c&l鬼側&aの&e勝利&aです!"
  189. else if {time} is 0:
  190. loop all players:
  191. teleport loop-player to location (532, 6, 284)
  192. broadcast "{@logo} &a生存者が逃げ切ったため、&b&l逃げ側&aの&e勝利&aです!"
  193. command "/owari"
  194. command /owari:
  195. permission: skript.admin
  196. trigger:
  197. set {Server.Game} to false
  198. delete {game}
  199. broadcast "{@logo} &aゲーム終了!"
  200. delete {nige::*}
  201. delete {tatti::*}
  202. loop {oni::*}:
  203. clear loop-value's inventory
  204. command "/oni allremove"
  205. loop {koori::*}:
  206. command "/kill @e[type=falling_block,name=%loop-value%]"
  207. delete {koori::*}
  208. loop all players:
  209. teleport loop-player to location (532, 6, 284)
  210. set loop-player's tab list name to "&f%loop-player%"
  211. set loop-player's gamemode to survival
  212. command "/effect %loop-player% clear"
  213. command "/clear %loop-player%"
  214. command "/fill 584 12 194 584 5 182 ice" #map1
  215. command "/fill 587 10 113 599 4 113 ice" #map2
  216. command "/fill 895 8 18 895 5 31 ice" #map3-1
  217. command "/fill 898 8 38 908 5 38 ice" #map3-2
  218. command "/fill 525 7 464 721 4 464 ice" #map4
  219.  
  220. command /nojoin:
  221. trigger:
  222. if {j.%player%} is not set:
  223. send "{@logo} &c不参加にしました"
  224. set {j.%player%} to "set"
  225. else:
  226. send "{@logo} &a自動参加になりました"
  227. delete {j.%player%}
  228.  
  229. command /oni <text> [<player>]:
  230. permission: skript.admin
  231. trigger:
  232. if arg-1 is "add":
  233. if arg-2 is set:
  234. if {oni::*} do not contain arg-2:
  235. send "{@logo} &a鬼を%arg-2%にしました"
  236. add arg-2 to {oni::*}
  237. else:
  238. send "{@logo} &c%arg-2%は既に鬼に含まれています"
  239. else:
  240. send "&cプレイヤーを書いてください"
  241. else if arg-1 is "remove":
  242. if arg-2 is set:
  243. if {oni::*} contains arg-2:
  244. send "{@logo} &a%arg-2%を鬼から削除しました"
  245. remove arg-2 from {oni::*}
  246. else:
  247. send "{@logo} &c%arg-2%は鬼ではありません"
  248. else:
  249. send "&cプレイヤーを書いてください"
  250. else if arg-1 is "allremove":
  251. delete {oni::*}
  252. send "{@logo} &aすべてのプレイヤーを鬼から削除しました"
  253. else:
  254. send "{@logo} &c使用法 : ""/oni [add/remove] <player>"
  255. send "{@logo} &c例 : ""/oni add %player%"" であなたを鬼にします"
  256. send "{@logo} &c例 : ""/oni remove %player%"" であなたを鬼から消します"
  257. send "{@logo} &c例 : ""/oni allremove"" ですべてのプレイヤーを鬼から削除します"
  258. on damage of player:
  259. cancel event
  260. if attacker is player:
  261. {game} is set
  262. if {oni::*} contains attacker:
  263. if {oni::*} do not contain victim:
  264. {tatti::%victim%} is not set
  265. set {tatti::%victim%} to true
  266. broadcast "{@logo} &c%victim%が%attacker%によって捕まった!"
  267. set victim's tab list name to "&b[氷]%victim%"
  268. set victim's hunger to 0
  269. command "/execute %victim% ~ ~ ~ /summon falling_block ~ ~ ~ {CustomName:""%victim%"",CustomNameVisible:1,NoGravity:1b,Block:""minecraft:ice"",Data:0,Time:1b,DropItem:0}"
  270. set victim's helmet to ice named "&b氷"
  271. set victim's chestplate to ice named "&b氷"
  272. set victim's leggings to ice named "&b氷"
  273. set victim's boots to ice named "&b氷"
  274. add victim to {koori::*}
  275. remove victim from {nige::*}
  276. effect(victim)
  277. else:
  278. if {oni::*} do not contain victim:
  279. {tatti::%attacker%} is not set
  280. {tatti::%victim%} is set
  281. broadcast "{@logo} &e%victim%が%attacker%によって救出されました!"
  282. set victim's tab list name to "&a[逃げ]%victim%"
  283. add victim to {nige::*}
  284. remove victim from {koori::*}
  285. command "/kill @e[type=falling_block,name=%victim%]"
  286. delete {tatti::%victim%}
  287. effect(victim)
  288. set victim's helmet to air
  289. set victim's chestplate to air
  290. set victim's leggings to air
  291. set victim's boots to air
  292. on inventory click:
  293. if clicked item's name is "&c【鬼装備】" or "&b氷":
  294. cancel event
  295. on drop:
  296. if event-item's name is "&c【鬼装備】" or "&b氷":
  297. cancel event
  298. function effect(p: player):
  299. if {koori::*} contains {_p}:
  300. command "effect %{_p}% slowness 10000 255 true"
  301. command "effect %{_p}% minecraft:jump_boost 10000 188 true"
  302. set {_p}'s hunger to 0
  303. else:
  304. command "/effect %{_p}% clear"
  305. set {_p}'s hunger to 20
  306. on any move:
  307. if {koori::*} contains player:
  308. set player's hunger to 0
  309. else:
  310. set player's hunger to 20
  311. execute console command "/tp @e[type=falling_block,name=%player%] %player%"
  312. on click with feather:
  313. if {nige::*} contains player:
  314. if event-item's name is "&bBooster":
  315. if {ct.%player%} is not set:
  316. set {ct.%player%} to true
  317. command "/effect %player% speed 8 2 true"
  318. send "{@logo} &bBooster &aを使用した!"
  319. command "execute %player% ~ ~ ~ /playsound minecraft:entity.player.burp master %player% ~ ~ ~ 2"
  320. wait 30 seconds
  321. delete {ct.%player%}
  322. else:
  323. send "{@logo} &cクールダウン中です"
  324. on drop:
  325. event-item's name is "&bBooster"
  326. cancel event
  327.  
  328. command /mute [<player>]:
  329. permission: skript.admin
  330. trigger:
  331. if arg 1 is not set:
  332. send "&cMuteしたいプレイヤーを選択して下さい!"
  333. else:
  334. set {Mute.%arg 1%} to true
  335.  
  336. command /unmute [<player>]:
  337. permission: skript.admin
  338. trigger:
  339. if arg 1 is not set:
  340. send "&cUnMuteしたいプレイヤーを選択して下さい!"
  341. else:
  342. set {Mute.%arg 1%} to false
  343.  
  344. command /fly:
  345. trigger:
  346. if {Rank.%player%} is "VIP" or ops:
  347. if {Server.Game} is false:
  348. if {flight.%player%} is true:
  349. set player's flight mode to false
  350. set {flight.%player%} to false
  351. send "{@logo} &cFly &7: &cfalse"
  352. else:
  353. set player's flight mode to true
  354. set {flight.%player%} to true
  355. send "{@logo} &cFly &7: &aon"
  356. else:
  357. send "{@logo} &cロビー以外で空を飛ぶことはできません!!"
  358. else:
  359. send "{@logo} &cあなたはFlyコマンドを実行する権限がありません!!"
  360. send "&6/realm &cからVIPを買うことでロビーで飛ぶことが可能になります"
  361.  
  362. on first join:
  363. set {flight.%player%} to false
  364. set player's flight mode to false
  365.  
  366. every 8 minutes:
  367. broadcast "{@logo} &6VIPRANK &cを購入することでロビーで空を飛ぶことができるようになります!!!!"
  368.  
  369. command /VIP [<player>]:
  370. permission: skript.admin
  371. trigger:
  372. if arg 1 is set:
  373. set {Rank.%arg 1%} to "VIP"
  374.  
  375. command /tpush [<player>]:
  376. permission: skript.admin
  377. trigger:
  378. push arg 1 up at speed 0.3
  379.  
  380. every 1 seconds:
  381. loop all players:
  382. if {Server.Game} is true:
  383. if loop-player is not op:
  384. set loop-player's flight mode to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement