Itsyuumello2

Untitled

Dec 22nd, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.51 KB | None | 0 0
  1. command /start:
  2. permission: skript.admin
  3. permission message: &cスタッフのみが使えるコマンドです。
  4. trigger:
  5. broadcast "&eThe game starts in &615 &eseconds!"
  6. execute console command "/playsound block.note.hat master @a ~ ~ ~ 2 1 1"
  7. wait 14 seconds
  8. broadcast "&eThe game starts in &c5 &eseconds!"
  9. send {white::*} title "&a5" for 2 seconds
  10. execute console command "/playsound block.note.hat master @a ~ ~ ~ 2 1 1"
  11. wait 1 seconds
  12. send {white::*} title "&64" for 2 seconds
  13. broadcast "&eThe game starts in &c4 &eseconds!"
  14. execute console command "/playsound block.note.hat master @a ~ ~ ~ 2 1 1"
  15. wait 1 seconds
  16. send {white::*} title "&63" for 2 seconds
  17. broadcast "&eThe game starts in &c3 &eseconds!"
  18. execute console command "/playsound block.note.hat master @a ~ ~ ~ 2 1 1"
  19. wait 1 seconds
  20. send {white::*} title "&c2" for 2 seconds
  21. broadcast "&eThe game starts in &c2 &eseconds!"
  22. execute console command "/playsound block.note.hat master @a ~ ~ ~ 2 1 1"
  23. wait 1 seconds
  24. send {white::*} title "&c1" for 1 seconds
  25. broadcast "&eThe game starts in &c1 &eseconds!"
  26. execute console command "/playsound block.note.hat master @a ~ ~ ~ 2 1 1"
  27. wait 1 seconds
  28. command "/clear @a"
  29. set {opentime} to 30
  30. set {pvptime} to 30
  31. wait 0.5 seconds
  32. set {open} to true
  33. set {pvp} to false
  34. set {lobby} to false
  35. set {game} to true
  36. set {gamered} to true
  37. set {gameblue} to true
  38. teleport {red::*} to {redteleport}
  39. teleport {blue::*} to {blueteleport}
  40. set {white::*}'s gamemode to survival
  41. if {white::*} is not set:
  42. set {notjoin::*}'s gamemode to spectator
  43. send "&eあなたはゲームに参加できていないので &7&o観戦 &eモードに変更されました!"
  44. loop all players:
  45. remove loop-player from {fly.%player%}
  46. set {gamesidebar.%loop-player%} to true
  47. if {white::*} is set:
  48. equip loop-player with all leather armor
  49. dye {blue::*}'s helmet blue
  50. dye {blue::*}'s chestplate blue
  51. dye {blue::*}'s leggings blue
  52. dye {blue::*}'s boots blue
  53. dye {red::*}'s helmet red
  54. dye {red::*}'s chestplate red
  55. dye {red::*}'s leggings red
  56. dye {red::*}'s boots red
  57. if {defaultkit.%loop-player%} is set:
  58. give stone pickaxe of efficiency 2 to {defaultkit.%loop-player%}
  59. give stone axe of efficiency 2 to {defaultkit.%loop-player%}
  60. give stone shovel of efficiency 1 to {defaultkit.%loop-player%}
  61. if {Minerkit.%loop-player%} is set:
  62. give iron pickaxe of efficiency 1 and unbreaking 3 and sharpness 1 to {minerkit.%loop-player%}
  63. give 16 stone to {minerkit.%loop-player%}
  64.  
  65. on quit:
  66. if {lobby} is true:
  67. if {white::*} is set:
  68. delete {white::%player%}
  69. delete {blue::%player%}
  70. delete {red::%player%}
  71. remove 1 from {gameplayer}
  72. if {red::*} is set:
  73. remove 1 from {redteam}
  74. if {blue::*} is set:
  75. remove 1 from {blueteam}
  76.  
  77. on any movement:
  78. loop all players:
  79. if {game} is true:
  80. set {redsidebar.%loop-player%} to true
  81. set {bluesidebar.%loop-player%} to true
  82. stop
  83.  
  84. every 1 seconds:
  85. if {game} is true:
  86. if {open} is true:
  87. set {event} to "Open wall in %{opentime}%"
  88. remove 1 from {opentime}
  89. if {pvp} is true:
  90. set {event} to "Death Match in %{pvptime}%"
  91. remove 1 from {pvptime}
  92. if {end} is true:
  93. set {event} to "Game End!"
  94.  
  95. on any move:
  96. if {game} is true:
  97. if {opentime} is 1:
  98. set {openwalls} to true
  99. stop
  100. if {openwalls} is true:
  101. wait 1 seconds
  102. command "/playsound entity.enderdragon.growl master @a ~ ~ ~ 2 1 1"
  103. broadcast "&6-----------------------------------"
  104. broadcast "&b 壁が開いた! バトルスタート!"
  105. broadcast "&6-----------------------------------"
  106. command "/fill -845 78 -823 -845 127 -872 air"
  107. set {open} to false
  108. set {opentime} to 300
  109. set {pvp} to true
  110. set {pvptime} to 300
  111. wait 0.5 seconds
  112. set {openwalls} to false
  113. stop
  114.  
  115. on any movement:
  116. if {game} is true:
  117. if {redteam} is 0:
  118. set {redvictory} to true
  119. stop
  120. if {blueteam} is 0:
  121. set {bluevictory} to true
  122. stop
  123. if {bluevictory} is true:
  124. broadcast "&e--------------------------------------------------"
  125. broadcast "&1"
  126. broadcast "&c&lRED &7team the victory!"
  127. broadcast "&2"
  128. broadcast "&e--------------------------------------------------"
  129. command "/playsound block.note.pling master @a ~ ~ ~ 2 2 1"
  130. wait 10 seconds
  131. loop all players:
  132. delete {red::*}
  133. delete {blue::*}
  134. delete {white::*}
  135. set {pvp} to false
  136. set {open} to false
  137. set {gamered} to false
  138. set {gameblue} to false
  139. set {gameplayer} to 0
  140. set {redteam} to 0
  141. set {blueteam} to 0
  142. set {gold.%loop-player%} to 0
  143. set {gamekill.%loop-player%} to 0
  144. set {lobby} to true
  145. set {game} to false
  146. set {lobbyitem::*} to loop-player
  147. set {notjoin::*} to loop-player
  148. teleport loop-player to {defaultspawn}
  149. command "/clear @a"
  150. command "/effect %loop-player% clear"
  151. command "/playsound block.note.pling master @a ~ ~ ~ 2 0.1 1"
  152. set loop-player's gamemode to adventure
  153. command "/fill -845 78 -823 -845 127 -872 bedrock"
  154. wait 0.5 seconds
  155. delete {lobbyitem::*}
  156. if {redvictory} is true:
  157. broadcast "&e--------------------------------------------------"
  158. broadcast "&1"
  159. broadcast "&9&lBLUE &7team the victory!"
  160. broadcast "&2"
  161. broadcast "&e--------------------------------------------------"
  162. command "/playsound block.note.pling master @a ~ ~ ~ 2 2 1"
  163. wait 10 seconds
  164. loop all players:
  165. delete {red::*}
  166. delete {blue::*}
  167. delete {white::*}
  168. set {pvp} to false
  169. set {open} to false
  170. set {gamered} to false
  171. set {gameblue} to false
  172. set {gameplayer} to 0
  173. set {redteam} to 0
  174. set {blueteam} to 0
  175. set {gold.%loop-player%} to 0
  176. set {gamekill.%loop-player%} to 0
  177. set {lobby} to true
  178. set {game} to false
  179. set {lobbyitem::*} to loop-player
  180. set {notjoin::*} to loop-player
  181. teleport loop-player to {defaultspawn}
  182. command "/clear @a"
  183. command "/effect %loop-player% clear"
  184. command "/playsound block.note.pling master @a ~ ~ ~ 2 0.1 1"
  185. set loop-player's gamemode to adventure
  186. command "/fill -845 78 -823 -845 127 -872 bedrock"
  187. wait 0.5 seconds
  188. delete {lobbyitem::*}
  189. stop
  190.  
  191. command /stopgame <text>:
  192. permission: skript.admin
  193. trigger:
  194. loop all players:
  195. send "&6-----------------------------------------------------" to loop-player
  196. send "&1" to loop-player
  197. send "&aサーバーの &c管理者 &aによってゲームが &c強制的 &aに &c停止 &aしました。" to loop-player
  198. send "&2" to loop-player
  199. send "&7理由: &b%arg-1%" to loop-player
  200. send "&3" to loop-player
  201. send "&6-----------------------------------------------------" to loop-player
  202. delete {red::*}
  203. delete {blue::*}
  204. delete {white::*}
  205. set {pvp} to false
  206. set {open} to false
  207. set {gamered} to false
  208. set {gameblue} to false
  209. set {gameplayer} to 0
  210. set {redteam} to 0
  211. set {blueteam} to 0
  212. set {gold.%loop-player%} to 0
  213. set {gamekill.%loop-player%} to 0
  214. set {lobby} to true
  215. set {game} to false
  216. set {lobbyitem::*} to loop-player
  217. set {notjoin::*} to loop-player
  218. teleport loop-player to {defaultspawn}
  219. command "/clear @a"
  220. command "/effect %loop-player% clear"
  221. command "/playsound block.note.pling master @a ~ ~ ~ 2 0.1 1"
  222. set loop-player's gamemode to adventure
  223. command "/fill -845 78 -823 -845 127 -872 bedrock"
  224. wait 0.5 seconds
  225. wait 0.5 seconds
  226. delete {lobbyitem::*}
  227.  
  228. command /lobbyitem <player>:
  229. permission: skript.admin
  230. trigger:
  231. loop all players:
  232. if arg-1 is set:
  233. set slot 0 of arg-1 to bedrock named "&c現在コスチューム作成中..." with lore "&1" and "&c&lCOMING SOON..." and "&2"
  234. set slot 4 of arg-1 to nether star named "&aGame Join &7(Right Click)"
  235. if arg-1 is not set:
  236. set slot 0 of arg-1 to bedrock named "&c現在コスチューム作成中..." with lore "&1" and "&c&lCOMING SOON..." and "&2"
  237. set slot 4 of arg-1 to nether star named "&aGame Join &7(Right Click)"
  238.  
  239. command /check:
  240. permission: skript.admin
  241. trigger:
  242. send "Red player: &a%{red::*}%"
  243. send "Total red: &a%{redteam}%"
  244. send "blue player: &a%{blue::*}%"
  245. send "Total blue: &a%{blueteam}%"
  246. send "white player: &a%{white::*}%"
  247. send "&1"
  248. send "Total: &a%{gameplayer}%"
  249.  
  250. command /teleportset <text>:
  251. permission: skript.admin
  252. trigger:
  253. if arg-1 is "red":
  254. set {redteleport} to location of player
  255. send "&aSET THE RED TELEPORT LOCATION"
  256. if arg-1 is "blue":
  257. set {blueteleport} to location of player
  258. send "&aSET THE BLUE TELEPORT LOCATION"
  259.  
  260. every 1 seconds:
  261. loop all players:
  262. if {game} is true:
  263. {gamesidebar.%loop-player%} is true
  264. wipe loop-player's sidebar
  265. set name of sidebar of loop-player to "&e&lSHOP WARS"
  266. set score "&1" in sidebar of loop-player to 11
  267. set score "&fNext Event:" in sidebar of loop-player to 10
  268. set score "&a%{event}%" in sidebar of loop-player to 9
  269. set score "&2" in sidebar of loop-player to 8
  270. set score "&c&lR &fRed: &a%{redteam}%" in sidebar of loop-player to 7
  271. set score "&9&lB &fBlue: &a%{blueteam}%" in sidebar of loop-player to 6
  272. set score "&3" in sidebar of loop-player to 5
  273. set score "&fKills: &a%{gamekill.%loop-player%}%" in sidebar of loop-player to 4
  274. set score "&4" in sidebar of loop-player to 3
  275. set score "&fGold: &e%{gold.%loop-player%}%" in sidebar of loop-player to 2
  276. set score "&5" in sidebar of loop-player to 1
  277. set score "&eplay.rezxis.net" in sidebar of loop-player to 0
  278.  
  279. command /kit <text>:
  280. trigger:
  281. if {lobby} is set:
  282. if arg-1 is "none":
  283. send "&eSelected &cNONE &eKit!"
  284. command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  285. delete {defaultkit.%player%}
  286. delete {minerkit.%player%}
  287. if arg-1 is "default":
  288. send "&eSelected &cDEFAULT &eKit!"
  289. command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  290. set {defaultkit.%player%} to player
  291. delete {minerkit.%player%}
  292. if arg-1 is "miner":
  293. send "&eSelected &cMINER &eKit!"
  294. command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  295. set {minerkit.%player%} to player
  296. delete {defaultkit.%player%}
  297.  
  298. on death of player:
  299. if {game} is true:
  300. set death message to "&7%victim% &ewas killed by &7%attacker%"
  301. command "/playsound entity.experience_orb.pickup master %attacker% ~ ~ ~ 2 2 1"
  302. command "/playsound entity.experience_orb.pickup master %attacker% ~ ~ ~ 2 1 1"
  303. remove victim from {white::*}
  304. remove 1 from {gameplayer}
  305. force respawn victim
  306. if {default.%attacker%} is set:
  307. send "&6+20 coins! (kill)" to attacker
  308. send "&d+80 exprience (kill)" to attacker
  309. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  310. add 20 to {coins.%attacker%}
  311. add 80 to {exp.%attacker%}
  312. add {gold.%victim%} to {gold.%attacker%}
  313. if {vip.%attacker%} is set:
  314. send "&6+40 coins! (Rank bonus +20 coins!) Kill" to attacker
  315. send "&d+80 exprience (kill)" to attacker
  316. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  317. add 40 to {coins.%attacker%}
  318. add 80 to {exp.%attacker%}
  319. add {gold.%victim%} to {gold.%attacker%}
  320. if {vip+.%attacker%} is set:
  321. send "&6+60 coins! (Rank bonus +40 coins!) Kill" to attacker
  322. send "&d+80 exprience (kill)" to attacker
  323. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  324. add 60 to {coins.%attacker%}
  325. add 80 to {exp.%attacker%}
  326. add {gold.%victim%} to {gold.%attacker%}
  327. if {mvp.%attacker%} is set:
  328. send "&6+80 coins! (Rank bonus +60 coins!) Kill" to attacker
  329. send "&d+80 exprience (kill)" to attacker
  330. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  331. add 80 to {coins.%attacker%}
  332. add 80 to {exp.%attacker%}
  333. add {gold.%victim%} to {gold.%attacker%}
  334. if {mvp+.%attacker%} is set:
  335. send "&6+100 coins! (Rank bonus +100 coins!) Kill" to attacker
  336. send "&d+80 exprience (kill)" to attacker
  337. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  338. add 100 to {coins.%attacker%}
  339. add 80 to {exp.%attacker%}
  340. add {gold.%victim%} to {gold.%attacker%}
  341. if {special.%attacker%} is set:
  342. send "&6+100 coins! (Rank bonus +100 coins!) Kill" to attacker
  343. send "&d+80 exprience (kill)" to attacker
  344. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  345. add 100 to {coins.%attacker%}
  346. add 80 to {exp.%attacker%}
  347. add {gold.%victim%} to {gold.%attacker%}
  348. if {admin.%attacker%} is set:
  349. send "&6+100 coins! (Rank bonus +100 coins!) Kill" to attacker
  350. send "&d+80 exprience (kill)" to attacker
  351. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  352. add 100 to {coins.%attacker%}
  353. add 80 to {exp.%attacker%}
  354. add {gold.%victim%} to {gold.%attacker%}
  355.  
  356. on death of player:
  357. if {red::%victim%} is set:
  358. remove 1 from {redteam}
  359. delete {red::%victim%}
  360. stop
  361.  
  362. on death of player:
  363. if {blue::%victim%} is set:
  364. remove 1 from {blueteam}
  365. delete {blue::%victim%}
  366. stop
  367.  
  368. on break of stone:
  369. if {game} is true:
  370. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  371. add 1 to {gold.%player%}
  372. send "&e+1 gold (mine)"
  373. on break of grass:
  374. if {game} is true:
  375. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  376. add 1 to {gold.%player%}
  377. send "&e+1 gold (mine)"
  378. on break of cobblestone:
  379. if {game} is true:
  380. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  381. add 1 to {gold.%player%}
  382. send "&e+1 gold (mine)"
  383. on break of sand:
  384. if {game} is true:
  385. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  386. add 5 to {gold.%player%}
  387. send "&e+5 gold (mine)"
  388. on break of oak leaves:
  389. if {game} is true:
  390. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  391. add 5 to {gold.%player%}
  392. send "&e+5 gold (mine)"
  393. on break of log:
  394. if {game} is true:
  395. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  396. add 15 to {gold.%player%}
  397. send "&e+15 gold (mine)"
  398. on break of rail:
  399. if {game} is true:
  400. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  401. add 20 to {gold.%player%}
  402. send "&e+20 gold (mine)"
  403. on break of coal ore:
  404. if {game} is true:
  405. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  406. add 5 to {gold.%player%}
  407. send "&e+5 gold (mine)"
  408. on break of iron ore:
  409. if {game} is true:
  410. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  411. add 10 to {gold.%player%}
  412. send "&e+10 gold (mine)"
  413. on break of lapis ore:
  414. if {game} is true:
  415. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  416. add 15 to {gold.%player%}
  417. send "&e+15 gold (mine)"
  418. on break of redstone ore:
  419. if {game} is true:
  420. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  421. add 15 to {gold.%player%}
  422. send "&e+15 gold (mine)"
  423. on break of diamond ore:
  424. if {game} is true:
  425. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  426. add 50 to {gold.%player%}
  427. send "&e+50 gold (mine)"
  428. on break of emerald ore:
  429. if {game} is true:
  430. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  431. add 50 to {gold.%player%}
  432. send "&e+50 gold (mine)"
  433. on break of gold ore:
  434. if {game} is true:
  435. command "/playsound entity.exprience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  436. add 100 to {gold.%player%}
  437. send "&e+100 gold (mine)"
Add Comment
Please, Sign In to add comment