Advertisement
taktie0304

Untitled

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