Advertisement
taktie0304

Untitled

Jul 21st, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.46 KB | None | 0 0
  1. command /scoreoption:
  2. trigger:
  3. command "/scoreboard teams add red"
  4. command "/scoreboard teams add blue"
  5. command "/scoreboard teams option red color red"
  6. command "/scoreboard teams option blue color blue"
  7. command "/scoreboard teams option red friendlyfire false"
  8. command "/scoreboard teams option blue friendlyfire false"
  9. command "/scoreboard teams option red nametagVisibility hideForOtherTeams"
  10. command "/scoreboard teams option blue nametagVisibility hideForOtherTeams"
  11. set {game} to false
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. command /start:
  20. trigger:
  21. if {game} is false:
  22. loop all players:
  23. send loop-player title "&a5" with subtitle "&fスタートまで" for 1 seconds
  24. wait 1 second
  25. loop all players:
  26. send loop-player title "&a4" with subtitle "&fスタートまで" for 1 seconds
  27. wait 1 second
  28. loop all players:
  29. send loop-player title "&a3" with subtitle "&fスタートまで" for 1 seconds
  30. wait 1 second
  31. loop all players:
  32. send loop-player title "&a2" with subtitle "&fスタートまで" for 1 seconds
  33. wait 1 second
  34. loop all players:
  35. send loop-player title "&a1" with subtitle "&fスタートまで" for 1 seconds
  36. wait 1 second
  37. set {gameplayer} to 0
  38. loop all players:
  39. if {join.%loop-player%} is true:
  40. add 1 to {gameplayer}
  41. if {gameplayer} <= 1:
  42. broadcast "&c参加人数が足りませんでした"
  43. else:
  44. set {red} to 0
  45. set {blue} to 0
  46. set {count} to 180
  47. set {lobby} to location (49, 5, 10)
  48. set {cmdlobby} to "49 5 10"
  49. set {redspawn} to location (-80, 22, 33)
  50. set {bluespawn} to location (-18, 19, 0)
  51. set {obsidian} to true
  52. set {diamondpickaxe} to true
  53. command "/scoreboard teams empty red"
  54. command "/scoreboard teams empty blue"
  55. loop all players:
  56. if {join.%loop-player%} is true:
  57. if {a} == 0:
  58. command "clear %loop-player%"
  59. if {obsidian} is true:
  60. command "/give %loop-player% minecraft:obsidian 1 0 {CanPlaceOn:[""minecraft:gold_block""]}"
  61. set {obsidian} to false
  62. set {team.%loop-player%} to "red"
  63. set {teamchat.%loop-player%} to "&c"
  64. add 1 to {red}
  65. command "/scoreboard teams join red %loop-player%"
  66. wait 2 ticks
  67. teleport the loop-player to {redspawn}
  68. set rf max hp of loop-player to 12
  69. give bow to loop-player
  70. give 32 arrow to loop-player
  71. equip loop-player with leather helmet
  72. dye loop-player's helmet (255, 51, 0)
  73. set the player's gamemode to adventure
  74. send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を防衛せよ" for 5 seconds
  75. delete {join.%loop-player%}
  76. set {a} to 1
  77. else:
  78. command "clear %loop-player%"
  79. if {diamondpickaxe} is true:
  80. command "/give %loop-player% minecraft:diamond_pickaxe 1 0 {ench:[{id:32s,lvl:1s}],CanDestroy:[""minecraft:obsidian""]}"
  81. set {diamondpickaxe} to false
  82. set {team.%loop-player%} to "blue"
  83. set {teamchat.%loop-player%} to "&9"
  84. add 1 to {blue}
  85. command "/scoreboard teams join blue %loop-player%"
  86. wait 2 ticks
  87. teleport the loop-player to {bluespawn}
  88. set rf max hp of loop-player to 12
  89. give bow to loop-player
  90. give 32 arrow to loop-player
  91. equip loop-player with leather helmet
  92. dye loop-player's helmet (0, 51, 255)
  93. set the player's gamemode to adventure
  94. send loop-player title " " with subtitle "&f敵を全滅、もしくは黒曜石を破壊せよ" for 5 seconds
  95. delete {join.%loop-player%}
  96. set {a} to 0
  97. set {game} to true
  98. enable PvP
  99. else:
  100. send "&c現在試合中です" to player
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108. on death of player:
  109. if {game} is true:
  110. set the death message to "%{teamchat.%attacker%}%%attacker% &7--&8|&6)&7--> %{teamchat.%victim%}%%victim%"
  111. set {DeathPoint.%player%} to location of player
  112. force the player to respawn
  113. teleport player to {DeathPoint.%player%}
  114. set the player's gamemode to spectator
  115. remove 1 from {%{team.%victim%}%}
  116. add 1 to {kill.%uuid of attacker%}
  117. add 1 to {death.%uuid of victim%}
  118. add 3 to {xp.%uuid of attacker%}
  119. send "&a+3xp" to attacker
  120. if {obsidian} is true:
  121. if {red} is 0:
  122. loop all players:
  123. if {team.%loop-player%} is "red":
  124. send loop-player title " " with subtitle "&f味方が全員倒された" for 3 seconds
  125. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  126. if {team.%loop-player%} is "blue":
  127. send loop-player title " " with subtitle "&f敵は全滅した。黒曜石を破壊せよ" for 3 seconds
  128. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  129. else if {blue} is 0:
  130. set {game} to false
  131. disable PvP
  132. loop all players:
  133. if {team.%loop-player%} is "red":
  134. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  135. send "&6&l勝利!" to loop-player
  136. send "&a+10xp" to loop-player
  137. add 10 to {xp.%uuid of loop-player%}
  138. add 1 to {win.%uuid of loop-player%}
  139. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  140. if {team.%loop-player%} is "blue":
  141. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  142. send "&9&l敗北..." to loop-player
  143. send "&a+2xp" to loop-player
  144. add 2 to {xp.%uuid of loop-player%}
  145. add 1 to {lose.%uuid of loop-player%}
  146. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  147. wait 6 seconds
  148. loop all players:
  149. if {team.%loop-player%} is set:
  150. command "clear %loop-player%"
  151. give grey dye named "&eゲームに参加する" to loop-player
  152. teleport the loop-player to {lobby}
  153. set rf max hp of loop-player to 20
  154. set health of loop-player to max health of loop-player
  155. set the loop-player's gamemode to adventure
  156. delete {team.%loop-player%}
  157. command "/fill -43 21 -9 -47 21 -5 air"
  158. command "/fill -11 21 37 -7 21 41 air"
  159. else if {red} is 0:
  160. set {game} to false
  161. disable PvP
  162. loop all players:
  163. if {team.%loop-player%} is "red":
  164. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  165. send "&9&l敗北..." to loop-player
  166. send "&a+2xp" to loop-player
  167. add 2 to {xp.%uuid of loop-player%}
  168. add 1 to {lose.%uuid of loop-player%}
  169. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  170. if {team.%loop-player%} is "blue":
  171. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  172. send "&6&l勝利!" to loop-player
  173. send "&a+10xp" to loop-player
  174. add 10 to {xp.%uuid of loop-player%}
  175. add 1 to {win.%uuid of loop-player%}
  176. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  177. wait 6 seconds
  178. loop all players:
  179. if {team.%loop-player%} is set:
  180. command "clear %loop-player%"
  181. give grey dye named "&eゲームに参加する" to loop-player
  182. teleport the loop-player to {lobby}
  183. set rf max hp of loop-player to 20
  184. set health of loop-player to max health of loop-player
  185. set the loop-player's gamemode to adventure
  186. delete {team.%loop-player%}
  187. command "/fill -43 21 -9 -47 21 -5 air"
  188. command "/fill -11 21 37 -7 21 41 air"
  189. else if {blue} is 0:
  190. set {game} to false
  191. disable PvP
  192. loop all players:
  193. if {team.%loop-player%} is "red":
  194. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  195. send "&6&l勝利!" to loop-player
  196. send "&a+10xp" to loop-player
  197. add 10 to {xp.%uuid of loop-player%}
  198. add 1 to {win.%uuid of loop-player%}
  199. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  200. if {team.%loop-player%} is "blue":
  201. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  202. send "&9&l敗北..." to loop-player
  203. send "&a+2xp" to loop-player
  204. add 2 to {xp.%uuid of loop-player%}
  205. add 1 to {lose.%uuid of loop-player%}
  206. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  207. wait 6 seconds
  208. loop all players:
  209. if {team.%loop-player%} is set:
  210. command "clear %loop-player%"
  211. give grey dye named "&eゲームに参加する" to loop-player
  212. teleport the loop-player to {lobby}
  213. set rf max hp of loop-player to 20
  214. set health of loop-player to max health of loop-player
  215. set the loop-player's gamemode to adventure
  216. delete {team.%loop-player%}
  217. command "/fill -43 21 -9 -47 21 -5 air"
  218. command "/fill -11 21 37 -7 21 41 air"
  219. else:
  220. loop all players:
  221. if {team.%loop-player%} is "red":
  222. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  223. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  224. if {team.%loop-player%} is "blue":
  225. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  226. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235. on quit:
  236. if {team.%player%} is set:
  237. remove 1 from {%{team.%player%}%}
  238. delete {team.%player%}
  239. command "/scoreboard teams leave %{team.%player%}% %player%"
  240. if {red} is 0:
  241. set {game} to false
  242. disable PvP
  243. loop all players:
  244. if {team.%loop-player%} is "red":
  245. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  246. send "&9&l敗北..." to loop-player
  247. send "&a+2xp" to loop-player
  248. add 2 to {xp.%uuid of loop-player%}
  249. add 1 to {lose.%uuid of loop-player%}
  250. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  251. if {team.%loop-player%} is "blue":
  252. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  253. send "&6&l勝利!" to loop-player
  254. send "&a+10xp" to loop-player
  255. add 10 to {xp.%uuid of loop-player%}
  256. add 1 to {win.%uuid of loop-player%}
  257. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  258. wait 6 seconds
  259. loop all players:
  260. if {team.%loop-player%} is set:
  261. command "clear %loop-player%"
  262. give grey dye named "&eゲームに参加する" to loop-player
  263. teleport the loop-player to {lobby}
  264. set rf max hp of loop-player to 20
  265. set health of loop-player to max health of loop-player
  266. set the loop-player's gamemode to adventure
  267. delete {team.%loop-player%}
  268. command "/fill -43 21 -9 -47 21 -5 air"
  269. command "/fill -11 21 37 -7 21 41 air"
  270. else if {blue} is 0:
  271. set {game} to false
  272. disable PvP
  273. loop all players:
  274. if {team.%loop-player%} is "red":
  275. send loop-player title "&6&l勝利" with subtitle "&f敵を全員倒した" for 5 seconds
  276. send "&6&l勝利!" to loop-player
  277. send "&a+10xp" to loop-player
  278. add 10 to {xp.%uuid of loop-player%}
  279. add 1 to {win.%uuid of loop-player%}
  280. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  281. if {team.%loop-player%} is "blue":
  282. send loop-player title "&9&l敗北" with subtitle "&f味方が全員倒された" for 5 seconds
  283. send "&9&l敗北..." to loop-player
  284. send "&a+2xp" to loop-player
  285. add 2 to {xp.%uuid of loop-player%}
  286. add 1 to {lose.%uuid of loop-player%}
  287. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  288. wait 6 seconds
  289. loop all players:
  290. if {team.%loop-player%} is set:
  291. command "clear %loop-player%"
  292. give grey dye named "&eゲームに参加する" to loop-player
  293. teleport the loop-player to {lobby}
  294. set rf max hp of loop-player to 20
  295. set health of loop-player to max health of loop-player
  296. set the loop-player's gamemode to adventure
  297. delete {team.%loop-player%}
  298. command "/fill -43 21 -9 -47 21 -5 air"
  299. command "/fill -11 21 37 -7 21 41 air"
  300. else:
  301. loop all players:
  302. if {team.%loop-player%} is "red":
  303. send loop-player title " " with subtitle "%{red}% VS %{blue}%" for 3 seconds
  304. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  305. if {team.%loop-player%} is "blue":
  306. send loop-player title " " with subtitle "%{blue}% VS %{red}%" for 3 seconds
  307. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.2 2"
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316. on place of obsidian:
  317. if {game} is true:
  318. set {count} to 50
  319. set {obsidian} to true
  320. loop all players:
  321. if {team.%loop-player%} is "red":
  322. send "&a&l黒曜石が設置された! 50秒間守り切れ!" to loop-player
  323. send loop-player title " " with subtitle "&a&l黒曜石が設置された! 50秒間守り切れ!" for 3 seconds
  324. if {team.%loop-player%} is "blue":
  325. send "&c&l黒曜石が設置された! 50秒以内に破壊せよ!" to loop-player
  326. send loop-player title " " with subtitle "&c&l黒曜石が設置された! 50秒以内に破壊せよ!" for 3 seconds
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335. on break of obsidian:
  336. if {game} is true:
  337. set {game} to false
  338. disable PvP
  339. loop all players:
  340. if {team.%loop-player%} is "red":
  341. send loop-player title "&9&l敗北" with subtitle "&f黒曜石が破壊された" for 5 seconds
  342. send "&9&l敗北..." to loop-player
  343. send "&a+2xp" to loop-player
  344. add 2 to {xp.%uuid of loop-player%}
  345. add 1 to {lose.%uuid of loop-player%}
  346. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  347. if {team.%loop-player%} is "blue":
  348. send loop-player title "&6&l勝利" with subtitle "&f黒曜石を破壊した" for 5 seconds
  349. send "&6&l勝利!" to loop-player
  350. send "&a+10xp" to loop-player
  351. add 10 to {xp.%uuid of loop-player%}
  352. add 1 to {victory.%uuid of loop-player%}
  353. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  354. wait 6 seconds
  355. loop all players:
  356. if {team.%loop-player%} is set:
  357. command "clear %loop-player%"
  358. give grey dye named "&eゲームに参加する" to loop-player
  359. teleport the loop-player to {lobby}
  360. set rf max hp of loop-player to 20
  361. set health of loop-player to max health of loop-player
  362. set the loop-player's gamemode to adventure
  363. delete {team.%loop-player%}
  364. command "/fill -43 21 -9 -47 21 -5 air"
  365. command "/fill -11 21 37 -7 21 41 air"
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374. every a second in "world":
  375. if {game} is true:
  376. remove 1 from {count}
  377. if {count} < 0:
  378. set {game} to false
  379. disable PvP
  380. if {obsidian} is true:
  381. loop all players:
  382. if {team.%loop-player%} is "red":
  383. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  384. send "&6&l勝利!" to loop-player
  385. send "&a+10xp" to loop-player
  386. add 10 to {xp.%uuid of loop-player%}
  387. add 1 to {win.%uuid of loop-player%}
  388. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  389. if {team.%loop-player%} is "blue":
  390. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  391. send "&9&l敗北..." to loop-player
  392. send "&a+2xp" to loop-player
  393. add 2 to {xp.%uuid of loop-player%}
  394. add 1 to {lose.%uuid of loop-player%}
  395. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  396. wait 6 seconds
  397. loop all players:
  398. if {team.%loop-player%} is set:
  399. command "clear %loop-player%"
  400. give grey dye named "&eゲームに参加する" to loop-player
  401. command "/tp %loop-player% %{cmdlobby}%"
  402. set rf max hp of loop-player to 20
  403. set health of loop-player to max health of loop-player
  404. set the loop-player's gamemode to adventure
  405. delete {team.%loop-player%}
  406. command "/fill -43 21 -9 -47 21 -5 air"
  407. command "/fill -11 21 37 -7 21 41 air"
  408. else:
  409. loop all players:
  410. if {team.%loop-player%} is "red":
  411. send loop-player title "&9&l敗北" with subtitle "&f時間切れ" for 5 seconds
  412. send "&9&l敗北..." to loop-player
  413. send "&a+2xp" to loop-player
  414. add 2 to {xp.%uuid of loop-player%}
  415. add 1 to {lose.%uuid of loop-player%}
  416. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  417. if {team.%loop-player%} is "blue":
  418. send loop-player title "&6&l勝利" with subtitle "&f時間切れ" for 5 seconds
  419. send "&6&l勝利!" to loop-player
  420. send "&a+10xp" to loop-player
  421. add 10 to {xp.%uuid of loop-player%}
  422. add 1 to {win.%uuid of loop-player%}
  423. execute console command "execute %loop-player% ~ ~ ~ playsound minecraft:entity.wither.spawn master %loop-player% ~ ~ ~ 0.5 1"
  424. wait 6 seconds
  425. loop all players:
  426. if {team.%loop-player%} is set:
  427. command "clear %loop-player%"
  428. give grey dye named "&eゲームに参加する" to loop-player
  429. command "/tp %loop-player% %{cmdlobby}%"
  430. set rf max hp of loop-player to 20
  431. set health of loop-player to max health of loop-player
  432. set the loop-player's gamemode to adventure
  433. delete {team.%loop-player%}
  434. command "/fill -43 21 -9 -47 21 -5 air"
  435. command "/fill -11 21 37 -7 21 41 air"
  436. loop all players:
  437. if {team.%loop-player%} is set:
  438. set action bar of loop-player to "&e(残り時間: %{count}%秒)"
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447. command /stats [<offline player>]:
  448. trigger:
  449. if arg 1 is not set:
  450. send "&6-----< &b%player% &6>-----"
  451. set {killdeath.%uuid of player%} to {kill.%uuid of player%} / {death.%uuid of player%}
  452. set {winlose.%uuid of player%} to {win.%uuid of player%} / {lose.%uuid of player%}
  453. send " &alevel: &e%{level.%uuid of player%}%" to player
  454. send " &axp: &e%{xp.%uuid of player%}%&7/%{needxp.%uuid of player%}%" to player
  455. send " "
  456. send " &akill: &e%{kill.%uuid of player%}%" to player
  457. send " &adeath: &e%{death.%uuid of player%}%" to player
  458. send " &aK/D: &e%{killdeath.%uuid of player%}%" to player
  459. send " &awin: &e%{win.%uuid of player%}%" to player
  460. send " &alose: &e%{lose.%uuid of player%}%" to player
  461. send " &aW/L: &e%{winlose.%uuid of player%}%" to player
  462. else:
  463. send "&6-----< &b%arg 1% &6>-----"
  464. set {killdeath.%uuid of arg 1%} to {kill.%uuid of arg 1%} / {death.%uuid of arg 1%}
  465. set {winlose.%uuid of arg 1%} to {win.%uuid of arg 1%} / {lose.%uuid of arg 1%}
  466. send " &alevel: &e%{level.%uuid of arg 1%}%" to player
  467. send " &axp: &e%{xp.%uuid of arg 1%}%&7/%{needxp.%uuid of arg 1%}%" to player
  468. send " "
  469. send " &akill: &e%{kill.%uuid of arg 1%}%" to player
  470. send " &adeath: &e%{death.%uuid of arg 1%}%" to player
  471. send " &aK/D: &e%{killdeath.%uuid of arg 1%}%" to player
  472. send " &awin: &e%{win.%uuid of arg 1%}%" to player
  473. send " &alose: &e%{lose.%uuid of arg 1%}%" to player
  474. send " &aW/L: &e%{winlose.%uuid of arg 1%}%" to player
  475.  
  476. on first join:
  477. set {kill.%uuid of player%} to 0
  478. set {death.%uuid of player%} to 0
  479. set {killdeath.%uuid of player%} to 0
  480. set {win.%uuid of player%} to 0
  481. set {lose.%uuid of player%} to 0
  482. set {winlose.%uuid of player%} to 0
  483. set {level.%uuid of player%} to 1
  484. set {xp.%uuid of player%} to 0
  485. set {needxp.%uuid of player%} to 10
  486. set {prefix.%uuid of player%} to ""
  487. set {suffix.%uuid of player%} to ""
  488.  
  489. on any movement:
  490. if {xp.%uuid of player%} >= {needxp.%uuid of player%}:
  491. set {xp.%uuid of player%} to {xp.%uuid of player%} - {needxp.%uuid of player%}
  492. add 1 to {level.%uuid of player%}
  493. set {needxp.%uuid of player%} to {needxp.%uuid of player%} * 1.5
  494. send "&b&lレベルアップ!! &a現在のレベル&7: &e%{level.%uuid of player%}%"
  495. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
  496. set tab header to "&7-- &6&lCounter Strike &d&lRealms &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  497.  
  498. on join:
  499. wait 3 ticks
  500. set the player's tablist name to "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%"
  501. set tab header to "&7-- &6&lCounter Strike &d&lRealms &7--" and footer to "&a現在のレベル&7: &e%{level.%uuid of player%}%" for player
  502. command "/clear %player%"
  503. give grey dye named "&eゲームに参加する" to player
  504. command "/tp %player% %{cmdlobby}%"
  505. set rf max hp of player to 20
  506. set health of player to max health of player
  507. command "/gamemode 2 %player%"
  508. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  509. send " &f&lCounter Strike Realms" to player
  510. send " " to player
  511. send " &e&l攻撃側と防衛側に分かれ、チームで戦います。" to player
  512. send " &e&l攻撃側は特定の場所に黒曜石を置き、" to player
  513. send " &e&lそれを壊されないよう守る必要があります。" to player
  514. send " &e&l防衛側は黒曜石を置かれないように防衛しましょう。" to player
  515. send " &e&lもし置かれても、破壊が可能です。" to player
  516. send " " to player
  517. send "&a▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to player
  518.  
  519. on chat:
  520. cancel event
  521. if {mutelist::*} contains player:
  522. send "&cあなたはミュートされているため、発言することができません。" to player
  523. stop
  524. broadcast "&7[Lv%{level.%uuid of player%}%]&r%{prefix.%uuid of player%}%&r%player%&r%{suffix.%uuid of player%}%&e》 &r%message%"
  525.  
  526. command /chat <text> <offline player> <text>:
  527. permission: skript.admin
  528. usage: /chat <prefix|suffix|mute|unmute> <player> <text>
  529. trigger:
  530. if arg 1 is "prefix":
  531. set {prefix.%uuid of arg 2%} to coloured arg 3
  532. send "&b%arg 2%さんのprefixを「&r%{prefix.%uuid of arg 2%}%&b」に変更しました。"
  533. stop
  534. if arg 1 is "suffix":
  535. set {suffix.%uuid of arg 2%} to coloured arg 3
  536. send "&b%arg 2%さんのsuffixを&r「%{suffix.%uuid of arg 2%}%&b」に変更しました。"
  537. stop
  538. if arg 1 is "mute":
  539. if {mutelist::*} contains arg 2:
  540. send "&c%arg 2%さんはすでにミュートされています。"
  541. stop
  542. send "&e%arg 2%さんが%sender%さんにミュートされました。" to ops
  543. send "&e理由:%coloured arg 3%" to ops
  544. add arg 2 to {mutelist::*}
  545. stop
  546. if arg 1 is "unmute":
  547. if {mutelist::*} contains arg 2:
  548. send "&a%arg 2%さんが%sender%さんにミュート解除されました。" to ops
  549. send "&a理由:%coloured arg 3%" to ops
  550. remove arg 2 from {mutelist::*}
  551. stop
  552. send "&c%arg 2%さんはミュートされていません。"
  553. stop
  554.  
  555. command /mutelist [<offline player>]:
  556. permission: skript.admin
  557. trigger:
  558. if arg 1 is not set:
  559. send "&d次のプレイヤーがミュートされています:"
  560. send "%{mutelist::*}%"
  561. stop
  562. if {mutelist::*} contains arg 1:
  563. send "&d対象のプレイヤーはミュートされています。"
  564. stop
  565. send "&b対象のプレイヤーはミュートされていません。"
  566.  
  567. on click:
  568. if player is holding lime dye named "&cゲームを抜ける":
  569. remove lime dye named "&cゲームを抜ける" from player
  570. set {join.%player%} to false
  571. send "&cゲームを抜けました"
  572. wait 5 ticks
  573. give grey dye named "&eゲームに参加する" to player
  574.  
  575. on click:
  576. if player is holding grey dye named "&eゲームに参加する":
  577. remove grey dye named "&eゲームに参加する" from player
  578. set {join.%player%} to true
  579. send "&eゲームに参加しました" to player
  580. wait 5 ticks
  581. give lime dye named "&cゲームを抜ける" to player
  582.  
  583. on hunger bar change:
  584. set the player's food level to 10
  585.  
  586. command /pd delete [<offline player>]:
  587. permission: skript.admin
  588. trigger:
  589. set {kill.%uuid of player%} to 0
  590. set {death.%uuid of player%} to 0
  591. set {killdeath.%uuid of player%} to 0
  592. set {win.%uuid of player%} to 0
  593. set {lose.%uuid of player%} to 0
  594. set {winlose.%uuid of player%} to 0
  595. set {level.%uuid of player%} to 1
  596. set {xp.%uuid of player%} to 0
  597. set {needxp.%uuid of player%} to 10
  598. set {prefix.%uuid of player%} to ""
  599. set {suffix.%uuid of player%} to ""
  600.  
  601. command /dye:
  602. permission: skript.admin
  603. trigger:
  604. give grey dye named "&eゲームに参加する" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement