Advertisement
Itsyuumello2

Untitled

Dec 27th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.15 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. command "/clear @a"
  219. command "/effect %loop-player% clear"
  220. command "/playsound block.note.pling master @a ~ ~ ~ 2 0.1 1"
  221. set loop-player's gamemode to adventure
  222. command "/fill -845 78 -823 -845 127 -872 bedrock"
  223. wait 0.5 seconds
  224. delete {lobbyitem::*}
  225. if {default.%loop-player%} is set:
  226. set {default.%loop-player%}'s display name to "&7%player%"
  227. set tablist name of loop-player to "&7%player%"
  228. teleport {default.%loop-player%} to {defaultspawn}
  229. if {vip.%loop-player%} is set:
  230. set {vip.%loop-player%}'s display name to "&a[VIP] %player%"
  231. set tablist name of loop-player to "&a[VIP] %player%"
  232. set {vip.%loop-player%}'s flight mode to true
  233. set {fly.%loop-player%} to {vip.%loop-player%}
  234. teleport {vip.%loop-player%} to {vipspawn}
  235. if {vip+.%loop-player%} is set:
  236. set {vip+.%loop-player%}'s display name to "&a[VIP&6+&a] %player%"
  237. set tablist name of loop-player to "&a[VIP&6+&a] %player%"
  238. set {vip+.%loop-player%}'s flight mode to true
  239. teleport {vip+.%loop-player%} to {vip+spawn}
  240. set {fly.%player%} to {vip+.%loop-player%}
  241. if {mvp.%loop-player%} is set:
  242. set {mvp.%loop-player%}'s display name to "&b[MVP] %player%"
  243. set tablist name of loop-player to "&b[MVP] %player%"
  244. set {mvp.%loop-player%}'s flight mode to true
  245. teleport {mvp.%loop-player%} to {mvpspawn}
  246. set {fly.%player%} to {mvp.%loop-player%}
  247. if {mvp+.%player%} is set:
  248. set {mvp+.%player%}'s display name to "&b[MVP&c+&b] %player%"
  249. set tablist name of loop-player to "&b[MVP&c+&b] %player%"
  250. set {mvp+.%player%}'s flight mode to true
  251. teleport {mvp+.%player%} to {mvp+spawn}
  252. set {fly.%player%} to {mvp+.%player%}
  253. if {special.%player%} is set:
  254. set {special.%player%}'s display name to "&d[SPECIAL] %player%"
  255. set tablist name of loop-player to "&d[SPECIAL] %player%"
  256. set {special.%player%}'s flight mode to true
  257. set {fly.%player%} to {special.%player%}
  258. teleport player to {specialspawn}
  259. if {admin.%player%} is set:
  260. set {admin.%player%}'s display name to "&c[ADMIN] %player%"
  261. set tablist name of loop-player to "&c[ADMIN] %player%"
  262. set {admin.%player%}'s flight mode to true
  263. set {fly.%player%} to {admin.%player%}
  264. teleport {admin.%player%} to {adminspawn}
  265.  
  266. command /lobbyitem <player>:
  267. permission: skript.admin
  268. trigger:
  269. loop all players:
  270. if arg-1 is set:
  271. set slot 0 of arg-1 to bedrock named "&c現在コスチューム作成中..." with lore "&1" and "&c&lCOMING SOON..." and "&2"
  272. set slot 4 of arg-1 to nether star named "&aGame Join &7(Right Click)"
  273. if arg-1 is not set:
  274. set slot 0 of arg-1 to bedrock named "&c現在コスチューム作成中..." with lore "&1" and "&c&lCOMING SOON..." and "&2"
  275. set slot 4 of arg-1 to nether star named "&aGame Join &7(Right Click)"
  276.  
  277. command /check:
  278. permission: skript.admin
  279. trigger:
  280. send "Red player: &a%{red::*}%"
  281. send "Total red: &a%{redteam}%"
  282. send "blue player: &a%{blue::*}%"
  283. send "Total blue: &a%{blueteam}%"
  284. send "white player: &a%{white::*}%"
  285. send "&1"
  286. send "Total: &a%{gameplayer}%"
  287.  
  288. command /teleportset <text>:
  289. permission: skript.admin
  290. trigger:
  291. if arg-1 is "red":
  292. set {redteleport} to location of player
  293. send "&aSET THE RED TELEPORT LOCATION"
  294. if arg-1 is "blue":
  295. set {blueteleport} to location of player
  296. send "&aSET THE BLUE TELEPORT LOCATION"
  297.  
  298. every 1 seconds:
  299. loop all players:
  300. if {game} is true:
  301. {gamesidebar.%loop-player%} is true
  302. wipe loop-player's sidebar
  303. set name of sidebar of loop-player to "&e&lSHOP WARS"
  304. set score "&1" in sidebar of loop-player to 11
  305. set score "&fNext Event:" in sidebar of loop-player to 10
  306. set score "&a%{event}%" in sidebar of loop-player to 9
  307. set score "&2" in sidebar of loop-player to 8
  308. set score "&c&lR &fRed: &a%{redteam}%" in sidebar of loop-player to 7
  309. set score "&9&lB &fBlue: &a%{blueteam}%" in sidebar of loop-player to 6
  310. set score "&3" in sidebar of loop-player to 5
  311. set score "&fKills: &a%{gamekill.%loop-player%}%" in sidebar of loop-player to 4
  312. set score "&4" in sidebar of loop-player to 3
  313. set score "&fGold: &e%{gold.%loop-player%}%" in sidebar of loop-player to 2
  314. set score "&5" in sidebar of loop-player to 1
  315. set score "&eplay.rezxis.net" in sidebar of loop-player to 0
  316.  
  317. command /kit <text>:
  318. trigger:
  319. if {lobby} is set:
  320. if arg-1 is "none":
  321. send "&eSelected &cNONE &eKit!"
  322. command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  323. delete {defaultkit.%player%}
  324. delete {minerkit.%player%}
  325. if arg-1 is "default":
  326. send "&eSelected &cDEFAULT &eKit!"
  327. command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  328. set {defaultkit.%player%} to player
  329. delete {minerkit.%player%}
  330. if arg-1 is "miner":
  331. send "&eSelected &cMINER &eKit!"
  332. command "/playsound block.note.pling master %player% ~ ~ ~ 2 2 1"
  333. set {minerkit.%player%} to player
  334. delete {defaultkit.%player%}
  335.  
  336. on death of player:
  337. if {game} is true:
  338. set death message to "&7%victim% &ewas killed by &7%attacker%"
  339. set victim's display name to "&7[SPECTATOR] %victim%"
  340. set tablist name of victim to "&7[SPECTATOR] %victim%"
  341. command "/playsound entity.experience_orb.pickup master %attacker% ~ ~ ~ 2 2 1"
  342. command "/playsound entity.experience_orb.pickup master %attacker% ~ ~ ~ 2 1 1"
  343. remove victim from {white::*}
  344. remove 1 from {gameplayer}
  345. wait 0.1 seconds
  346. force respawn victim
  347. if {default.%attacker%} is set:
  348. send "&6+20 coins! (kill)" to attacker
  349. send "&d+80 exprience (kill)" to attacker
  350. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  351. add 20 to {coins.%attacker%}
  352. add 80 to {exp.%attacker%}
  353. add {gold.%victim%} to {gold.%attacker%}
  354. if {vip.%attacker%} is set:
  355. send "&6+40 coins! (Rank bonus +20 coins!) Kill" to attacker
  356. send "&d+80 exprience (kill)" to attacker
  357. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  358. add 40 to {coins.%attacker%}
  359. add 80 to {exp.%attacker%}
  360. add {gold.%victim%} to {gold.%attacker%}
  361. if {vip+.%attacker%} is set:
  362. send "&6+60 coins! (Rank bonus +40 coins!) Kill" to attacker
  363. send "&d+80 exprience (kill)" to attacker
  364. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  365. add 60 to {coins.%attacker%}
  366. add 80 to {exp.%attacker%}
  367. add {gold.%victim%} to {gold.%attacker%}
  368. if {mvp.%attacker%} is set:
  369. send "&6+80 coins! (Rank bonus +60 coins!) Kill" to attacker
  370. send "&d+80 exprience (kill)" to attacker
  371. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  372. add 80 to {coins.%attacker%}
  373. add 80 to {exp.%attacker%}
  374. add {gold.%victim%} to {gold.%attacker%}
  375. if {mvp+.%attacker%} is set:
  376. send "&6+100 coins! (Rank bonus +100 coins!) Kill" to attacker
  377. send "&d+80 exprience (kill)" to attacker
  378. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  379. add 100 to {coins.%attacker%}
  380. add 80 to {exp.%attacker%}
  381. add {gold.%victim%} to {gold.%attacker%}
  382. if {special.%attacker%} is set:
  383. send "&6+100 coins! (Rank bonus +100 coins!) Kill" to attacker
  384. send "&d+80 exprience (kill)" to attacker
  385. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  386. add 100 to {coins.%attacker%}
  387. add 80 to {exp.%attacker%}
  388. add {gold.%victim%} to {gold.%attacker%}
  389. if {admin.%attacker%} is set:
  390. send "&6+100 coins! (Rank bonus +100 coins!) Kill" to attacker
  391. send "&d+80 exprience (kill)" to attacker
  392. send "&e+%{gold.%victim%}% gold (Get %victim%'s gold!)" to attacker
  393. add 100 to {coins.%attacker%}
  394. add 80 to {exp.%attacker%}
  395. add {gold.%victim%} to {gold.%attacker%}
  396.  
  397. on respawn:
  398. if {game} is true:
  399. set player's gamemode to spectator
  400. teleport player to {spectatespawn}
  401. send "&cあなたは死亡しました!"
  402. send player title "&c&lYOU DIED!" for 3 seconds
  403. if {red::*} is set:
  404. send "&dオシ~!! &9青&dチームはあと &c%{blueteam}%&d人だったのにな~!"
  405. if {blue::*} is set:
  406. send "&dオシ~!! &c赤&dチームはあと &c%{redteam}%&d人だったのにな~!"
  407.  
  408. on gamemode change to spectator:
  409. set player's display name to "&7[SPECTATOR] %player%"
  410. set tablist name of player to "&7[SPECTATOR] %player%"
  411.  
  412. on death of player:
  413. if {red::%victim%} is set:
  414. remove 1 from {redteam}
  415. delete {red::%victim%}
  416. stop
  417.  
  418. on death of player:
  419. if {blue::%victim%} is set:
  420. remove 1 from {blueteam}
  421. delete {blue::%victim%}
  422. stop
  423.  
  424. on break of stone:
  425. if {game} is true:
  426. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  427. add 1 to {gold.%player%}
  428. send "&e+1 gold (mine)"
  429. on break of grass:
  430. if {game} is true:
  431. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  432. add 1 to {gold.%player%}
  433. send "&e+1 gold (mine)"
  434. on break of cobblestone:
  435. if {game} is true:
  436. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  437. add 1 to {gold.%player%}
  438. send "&e+1 gold (mine)"
  439. on break of sand:
  440. if {game} is true:
  441. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  442. add 5 to {gold.%player%}
  443. send "&e+5 gold (mine)"
  444. on break of log:
  445. if {game} is true:
  446. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  447. add 15 to {gold.%player%}
  448. send "&e+15 gold (mine)"
  449. on break of oak leaves:
  450. if {game} is true:
  451. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  452. add 5 to {gold.%player%}
  453. send "&e+5 gold (mine)"
  454. on break of rail:
  455. if {game} is true:
  456. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  457. add 20 to {gold.%player%}
  458. send "&e+20 gold (mine)"
  459. on break of coal ore:
  460. if {game} is true:
  461. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  462. add 5 to {gold.%player%}
  463. send "&e+5 gold (mine)"
  464. on break of iron ore:
  465. if {game} is true:
  466. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  467. add 10 to {gold.%player%}
  468. send "&e+10 gold (mine)"
  469. on break of lapis ore:
  470. if {game} is true:
  471. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  472. add 15 to {gold.%player%}
  473. send "&e+15 gold (mine)"
  474. on break of redstone ore:
  475. if {game} is true:
  476. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  477. add 15 to {gold.%player%}
  478. send "&e+15 gold (mine)"
  479. on break of diamond ore:
  480. if {game} is true:
  481. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  482. add 50 to {gold.%player%}
  483. send "&e+50 gold (mine)"
  484. on break of emerald ore:
  485. if {game} is true:
  486. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  487. add 50 to {gold.%player%}
  488. send "&e+50 gold (mine)"
  489. on break of gold ore:
  490. if {game} is true:
  491. command "/playsound entity.experience_orb.pickup master %player% ~ ~ ~ 2 2 1"
  492. add 100 to {gold.%player%}
  493. send "&e+100 gold (mine)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement