Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.62 KB | None | 0 0
  1. command /lhp <number>:
  2. permission: sk.admin
  3. trigger:
  4. if arg is not set:
  5. set player's scaled health mode to false
  6. else:
  7. set player's scaled health to arg / 2
  8. command /maxhp <number>:
  9. permission: sk.admin
  10. trigger:
  11. set rf max hp of player to arg
  12.  
  13. on damage:
  14. repair attacker's tool
  15. if attacker's tool is iron sword:
  16. if name of attacker's tool contains "ミラクルソード":
  17. set {_weapon::*} to lore of attacker's tool
  18. loop {_weapon::*}:
  19. loop-value contains "&3-&8ID&7:&f":
  20. set {_n} to loop-value
  21. replace "&3-&8ID&7:&f" with "" in {_n}
  22. set {id.%attacker%} to {_n} parsed as number
  23. if {cooltime::%attacker%::%{id.%attacker%}%} <= 0:
  24. set {_weapon::*} to lore of attacker's tool
  25. loop {_weapon::*}:
  26. loop-value contains "&3-&aCooltime&7:&f":
  27. set {_n} to loop-value
  28. replace "&3-&aCooltime&7:&f" with "" in {_n}
  29. set {cooltime::%attacker%::%{id.%attacker%}%} to {_n} parsed as number
  30. add damage to the attacker's health
  31. command "/execute %victim% ~ ~ ~ /particle reddust ~ ~ ~ 0.5 0.5 0.5 0 50"
  32. command "/execute %attacker% ~ ~ ~ /particle heart ~ ~ ~ 0.5 0.5 0.5 0 50"
  33. on rightclick with diamond hoe:
  34. if name of event-item contains "マジックミサイル":
  35. set {_weapon::*} to lore of player's tool
  36. loop {_weapon::*}:
  37. loop-value contains "&3-&8ID&7:&f":
  38. set {_n} to loop-value
  39. replace "&3-&8ID&7:&f" with "" in {_n}
  40. set {id.%player%} to {_n} parsed as number
  41. if {cooltime::%player%::%{id.%player%}%} <= 0:
  42. set {_weapon::*} to lore of player's tool
  43. loop {_weapon::*}:
  44. loop-value contains "&3-&aCooltime&7:&f":
  45. set {_n} to loop-value
  46. replace "&3-&aCooltime&7:&f" with "" in {_n}
  47. set {cooltime::%player%::%{id.%player%}%} to {_n} parsed as number
  48. cancel event
  49. set {_loc} to location of event-player
  50. add 1.5 to y-coordinate of {_loc}
  51. set {_a2} to yaw of location of event-player - 270
  52. set {_a1} to Pitch of location of event-player * -1
  53. set {_x} to sin(90-{_a1}) * cos({_a2}) * 0.15
  54. set {_z} to sin(90-{_a1}) * sin({_a2}) * 0.15
  55. set {_y} to cos(90-{_a1}) * 0.15
  56. loop 200 times:
  57. set {_a2} to yaw of location of event-player - 270
  58. set {_a1} to Pitch of location of event-player * -1
  59. add sin(90-{_a1}) * cos({_a2}) * 0.15 to {_x}
  60. add sin(90-{_a1}) * sin({_a2}) * 0.15 to {_z}
  61. add cos(90-{_a1}) * 0.15 to {_y}
  62. add {_x} to x-coordinate of {_loc}
  63. add {_y} to y-coordinate of {_loc}
  64. add {_z} to z-coordinate of {_loc}
  65. execute console command "particle smoke %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.15 0.15 0.15 0 30 force"
  66. if block at {_loc} is not air:
  67. add 1.5 to y-coordinate of {_loc}
  68. execute console command "/playsound minecraft:entity.lightning.impact master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 5 1"
  69. command "/particle witchMagic %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 1 1 1 80 force"
  70. loop living entities in radius 3 of {_loc}:
  71. make player damage loop-entity by 8
  72. stop
  73. loop living entities in radius 1.5 of {_loc}:
  74. loop-entity is not event-player
  75. loop-entity's gamemode is not spectator
  76. loop-entity is not {pvpfalse::*}
  77. execute console command "/playsound minecraft:entity.lightning.impact master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 5 1"
  78. command "/particle witchMagic %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 1 1 1 80 force"
  79. make player damage loop-entity by 8
  80. stop
  81. wait 1 ticks
  82. if name of event-item contains "スーパーボール":
  83. set {_weapon::*} to lore of player's tool
  84. loop {_weapon::*}:
  85. loop-value contains "&3-&8ID&7:&f":
  86. set {_n} to loop-value
  87. replace "&3-&8ID&7:&f" with "" in {_n}
  88. set {id.%player%} to {_n} parsed as number
  89. if {cooltime::%player%::%{id.%player%}%} <= 0:
  90. set {_weapon::*} to lore of player's tool
  91. loop {_weapon::*}:
  92. loop-value contains "&3-&aCooltime&7:&f":
  93. set {_n} to loop-value
  94. replace "&3-&aCooltime&7:&f" with "" in {_n}
  95. set {cooltime::%player%::%{id.%player%}%} to {_n} parsed as number
  96. cancel event
  97. execute console command "/execute %player% ~ ~ ~ /playsound minecraft:entity.slime.jump master %player% ~ ~ ~ 1 1"
  98. set {_loc} to location of event-player
  99. add 1.5 to y-coordinate of {_loc}
  100. execute console command "playsound minecraft:BLOCK_ANVIL master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 0"
  101. set {_a2} to yaw of location of event-player - 270
  102. set {_a1} to Pitch of location of event-player * -1
  103. set {_x} to sin(90-{_a1}) * cos({_a2}) * 0.75
  104. set {_z} to sin(90-{_a1}) * sin({_a2}) * 0.75
  105. loop 100 times:
  106. add {_x} to x-coordinate of {_loc}
  107. add {_z} to z-coordinate of {_loc}
  108. if block at {_loc} is not air:
  109. set {_x} to {_x} * -0.5
  110. set {_z} to {_z} * -0.5
  111. execute console command "playsound minecraft:entity.slime.jump master %player% %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 2"
  112. execute console command "particle blockcrack %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0 0 0 0 10 0 @a 4261"
  113. loop living entities in radius 2 of {_loc}:
  114. loop-entities is not event-player
  115. loop-entity's gamemode is not spectator
  116. loop-entity is not {pvpfalse::*}
  117. make player damage loop-entity by 7
  118. set {_x} to {_x} * -0.5
  119. set {_z} to {_z} * -0.5
  120. wait a ticks
  121. if name of event-item contains "ショックウェーブ":
  122. set {_weapon::*} to lore of player's tool
  123. loop {_weapon::*}:
  124. loop-value contains "&3-&8ID&7:&f":
  125. set {_n} to loop-value
  126. replace "&3-&8ID&7:&f" with "" in {_n}
  127. set {id.%player%} to {_n} parsed as number
  128. if {cooltime::%player%::%{id.%player%}%} <= 0:
  129. set {_weapon::*} to lore of player's tool
  130. loop {_weapon::*}:
  131. loop-value contains "&3-&aCooltime&7:&f":
  132. set {_n} to loop-value
  133. replace "&3-&aCooltime&7:&f" with "" in {_n}
  134. set {cooltime::%player%::%{id.%player%}%} to {_n} parsed as number
  135. execute console command "/execute %player% ~ ~ ~ /playsound minecraft:entity.player.attack.sweep master @a ~ ~ ~ 1 0"
  136. set {_loc} to location of event-player
  137. add 1.5 to y-coordinate of {_loc}
  138. execute console command "playsound minecraft:BLOCK_ANVIL master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 0"
  139. set {_a2} to yaw of location of event-player - 270
  140. set {_a1} to Pitch of location of event-player * -1
  141. set {_x} to sin(90-{_a1}) * cos({_a2}) * 1
  142. set {_z} to sin(90-{_a1}) * sin({_a2}) * 1
  143. set {_y} to cos(90-{_a1}) * 1
  144. loop 20 times:
  145. add {_x} to x-coordinate of {_loc}
  146. add {_y} to y-coordinate of {_loc}
  147. add {_z} to z-coordinate of {_loc}
  148. if block at {_loc} is not air:
  149. execute console command "particle sweepAttack %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1.25 1.25 1.25 0.5 50"
  150. loop living entities in radius 3 of {_loc}:
  151. loop-entities is not event-player
  152. make player damage loop-entity by 12
  153. stop
  154. execute console command "playsound minecraft:entity.player.attack.sweep master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.5 1.2"
  155. execute console command "particle sweepAttack %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0 0 0 0 5"
  156. loop living entities in radius 1.5 of {_loc}:
  157. loop-entity's gamemode is not spectator
  158. loop-entity is not {pvpfalse::*}
  159. execute console command "particle sweepAttack %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1.25 1.25 1.25 0.5 50 force"
  160. make player damage loop-entity by 9
  161. stop
  162. wait a tick
  163. if name of event-item contains "シールドバッシュ":
  164. set {_weapon::*} to lore of player's tool
  165. loop {_weapon::*}:
  166. loop-value contains "&3-&8ID&7:&f":
  167. set {_n} to loop-value
  168. replace "&3-&8ID&7:&f" with "" in {_n}
  169. set {id.%player%} to {_n} parsed as number
  170. if {cooltime::%player%::%{id.%player%}%} <= 0:
  171. set {_weapon::*} to lore of player's tool
  172. loop {_weapon::*}:
  173. loop-value contains "&3-&aCooltime&7:&f":
  174. set {_n} to loop-value
  175. replace "&3-&aCooltime&7:&f" with "" in {_n}
  176. set {cooltime::%player%::%{id.%player%}%} to {_n} parsed as number
  177. cancel event
  178. execute console command "/execute %player% ~ ~ ~ /playsound minecraft:entity.player.attack.strong master @a ~ ~ ~ 1 0"
  179. set {_loc} to location of event-player
  180. add 1 to y-coordinate of {_loc}
  181. execute console command "playsound minecraft:BLOCK_ANVIL master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 0"
  182. set {_a2} to yaw of location of event-player - 270
  183. set {_a1} to Pitch of location of event-player * -1
  184. set {_x} to sin(90-{_a1}) * cos({_a2}) * 1
  185. set {_z} to sin(90-{_a1}) * sin({_a2}) * 1
  186. set {_y} to cos(90-{_a1}) * 1
  187. loop 5 times:
  188. add {_x} to x-coordinate of {_loc}
  189. add {_y} to y-coordinate of {_loc}
  190. add {_z} to z-coordinate of {_loc}
  191. if block at {_loc} is not air:
  192. stop
  193. execute console command "particle crit %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.3 0.3 0.3 0 50"
  194. loop living entities in radius 1.5 of {_loc}:
  195. loop-entities is not event-player
  196. loop-entity's gamemode is not spectator
  197. loop-entity is not {pvpfalse::*}
  198. make player damage loop-entity by 4
  199. set velocity of loop-entity to vector {_x} * 0.75,{_y} + 0.5,{_z} * 0.75
  200. execute console command "particle smoke %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.5 0 0.5 0 25"
  201. execute console command "/execute %player% ~ ~ ~ /playsound minecraft:entity.irongolem.hurt master @a ~ ~ ~ 1 1"
  202. stop
  203. wait a tick
  204. set velocity of event-player to vector {_x},{_y} * 0.5,{_z}
  205. if name of event-item contains "スモークフライ":
  206. set {_weapon::*} to lore of player's tool
  207. loop {_weapon::*}:
  208. loop-value contains "&3-&8ID&7:&f":
  209. set {_n} to loop-value
  210. replace "&3-&8ID&7:&f" with "" in {_n}
  211. set {id.%player%} to {_n} parsed as number
  212. if {cooltime::%player%::%{id.%player%}%} <= 0:
  213. set {_weapon::*} to lore of player's tool
  214. loop {_weapon::*}:
  215. loop-value contains "&3-&aCooltime&7:&f":
  216. set {_n} to loop-value
  217. replace "&3-&aCooltime&7:&f" with "" in {_n}
  218. set {cooltime::%player%::%{id.%player%}%} to {_n} parsed as number
  219. set {_loc} to location of event-player
  220. add 1.5 to y-coordinate of {_loc}
  221. execute console command "playsound minecraft:BLOCK_ANVIL master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 0"
  222. set {_a2} to yaw of location of event-player - 270
  223. set {_a1} to Pitch of location of event-player * -1
  224. set {_x} to sin(90-{_a1}) * cos({_a2}) * 1
  225. set {_z} to sin(90-{_a1}) * sin({_a2}) * 1
  226. set {_y} to cos(90-{_a1}) * 1
  227. loop 7 times:
  228. add {_x} to x-coordinate of {_loc}
  229. add {_y} to y-coordinate of {_loc}
  230. add {_z} to z-coordinate of {_loc}
  231. if block at {_loc} is not air:
  232. stop
  233. execute console command "playsound minecraft:entity.bat.takeoff master %player% %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.5 1.2"
  234. execute console command "particle smoke %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.4 0.4 0.4 0 50 force"
  235. loop living entities in radius 2 of {_loc}:
  236. loop-entity is not event-player
  237. loop-entity's gamemode is not spectator
  238. loop-entity is not {pvpfalse::*}
  239. make player damage loop-entity by 3
  240. set velocity of loop-entity to vector {_x} * 0,{_y} + 0.75,{_z} * 0
  241. execute console command "particle cloud %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.5 0 0.5 0 5 force"
  242. stop
  243. wait a tick
  244. set velocity of event-player to vector {_x},{_y},{_z}
  245. if name of event-item contains "コールドバニラ":
  246. set {_weapon::*} to lore of player's tool
  247. loop {_weapon::*}:
  248. loop-value contains "&3-&8ID&7:&f":
  249. set {_n} to loop-value
  250. replace "&3-&8ID&7:&f" with "" in {_n}
  251. set {id.%player%} to {_n} parsed as number
  252. if {cooltime::%player%::%{id.%player%}%} <= 0:
  253. set {_weapon::*} to lore of player's tool
  254. loop {_weapon::*}:
  255. loop-value contains "&3-&aCooltime&7:&f":
  256. set {_n} to loop-value
  257. replace "&3-&aCooltime&7:&f" with "" in {_n}
  258. set {cooltime::%player%::%{id.%player%}%} to {_n} parsed as number
  259. set {_loc} to location of event-player
  260. add 1.5 to y-coordinate of {_loc}
  261. execute console command "playsound minecraft:BLOCK_ANVIL master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 0"
  262. set {_a2} to yaw of location of event-player - 270
  263. set {_a1} to Pitch of location of event-player * -1
  264. set {_x} to sin(90-{_a1}) * cos({_a2}) * 1
  265. set {_z} to sin(90-{_a1}) * sin({_a2}) * 1
  266. set {_y} to cos(90-{_a1}) * 1
  267. loop 40 times:
  268. add {_x} to x-coordinate of {_loc}
  269. add {_y} to y-coordinate of {_loc}
  270. add {_z} to z-coordinate of {_loc}
  271. loop 20 times:
  272. set {_numx} to random number between -0.25 and 0.25
  273. set {_numy} to random number between -0.25 and 0.25
  274. set {_numz} to random number between -0.25 and 0.25
  275. execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0.1 1 -0.1 1 0 force"
  276. if block at {_loc} is not air:
  277. execute console command "particle fallingdust %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force @a 022"
  278. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  279. loop living entities in radius 2 of {_loc}:
  280. loop-entity's gamemode is not spectator
  281. loop-entities is not event-player
  282. make player damage loop-entity by 7
  283. command "/effect %loop-entity% slowness 2 3 true"
  284. stop
  285. loop living entities in radius 2 of {_loc}:
  286. loop-entity is not event-player
  287. loop-entity's gamemode is not spectator
  288. execute console command "particle fallingdust %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force @a 022"
  289. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  290. make player damage loop-entity by 7
  291. command "/effect %loop-entity% slowness 5 3 true"
  292. stop
  293. wait a ticks
  294. if name of event-item contains "回復薬":
  295. set {_weapon::*} to lore of player's tool
  296. loop {_weapon::*}:
  297. loop-value contains "&3-&8ID&7:&f":
  298. set {_n} to loop-value
  299. replace "&3-&8ID&7:&f" with "" in {_n}
  300. set {id.%player%} to {_n} parsed as number
  301. if {cooltime::%player%::%{id.%player%}%} <= 0:
  302. set {_weapon::*} to lore of player's tool
  303. loop {_weapon::*}:
  304. loop-value contains "&3-&aCooltime&7:&f":
  305. set {_n} to loop-value
  306. replace "&3-&aCooltime&7:&f" with "" in {_n}
  307. set {cooltime::%player%::%{id.%player%}%} to {_n} parsed as number
  308. add 3 to the player's health
  309.  
  310. command /weaponstatus [<text>] [<text>] [<number>]:
  311. permission: weapon.sk
  312. aliases: /ws
  313. trigger:
  314. if arg-1 is set:
  315. if arg-2 is "ct":
  316. set line 2 of lore of held item to colored "&3-&aCooltime&7:&f%arg-3%"
  317. if arg-2 is "id":
  318. set line 3 of lore of held item to colored "&3-&8ID&7:&f%arg-3%"
  319. set line 1 of lore of held item to colored "&9&l≪ &6Weapon&a&l-&6Status&9&l ≫"
  320. set the name of held item to colored arg-1
  321. else:
  322. send "&a/weapon &c<weapon name> <weapon status> &c<number>"
  323. send "&aWeaponStatus&7: &bct&7,&bid"
  324.  
  325. every 1 seconds in "world":
  326. loop all players:
  327. set {_weapon::*} to lore of loop-player's tool
  328. loop {_weapon::*}:
  329. loop-value-1 contains "&3-&8ID&7:&f":
  330. set {_n} to loop-value-1
  331. replace "&3-&8ID&7:&f" with "" in {_n}
  332. set {id.%loop-player%} to {_n} parsed as number
  333. if {cooltime::%loop-player%::%{id.%loop-player%}%} is not set:
  334. loop 50 times:
  335. set {cooltime::%loop-player%::%loop-number%} to 0
  336. if {cooltime::%loop-player%::%{id.%loop-player%}%} >= 1:
  337. loop 50 times:
  338. remove 1 from {cooltime::%loop-player%::%loop-number%}
  339. if display name of loop-player's held item is set:
  340. send action bar "&d Item &3[ &r%display name of loop-player's held item% &3] &dCooltime &e[ %{cooltime::%loop-player%::%{id.%loop-player%}%}% &e]" to loop-player
  341. else:
  342. send action bar "&d Name &3[ &r%loop-player% &3]" to loop-player
  343. else:
  344. if display name of loop-player's held item is set:
  345. send action bar "&d Item &3[ &r%display name of loop-player's held item% &3] &dCooltime &e[ Already &e]" to loop-player
  346. else:
  347. send action bar "&d Name &3[ &r%loop-player% &3]" to loop-player
  348.  
  349. #-fall-damage-cancel-
  350.  
  351. on damage:
  352. if damage cause is fall:
  353. cancel event
  354. #-Shop-Chest-
  355.  
  356. on leftclick on chest:
  357. if player is op:
  358. if player is sneaking:
  359. if block under the event-block is gold block:
  360. cancel event
  361. open chest with 6 rows named "shop-edit" to player
  362. set {_num} to 0
  363. loop 54 times:
  364. set {_shop} to "%inventory name of player's current inventory%"
  365. replace all "-edit" with "" in {_shop}
  366. set slot {_num} of player's current inventory to {%{_shop}%::%{_num}%}
  367. add 1 to {_num}
  368.  
  369. on rightclick on chest:
  370. if block under the event-block is gold block:
  371. cancel event
  372. open chest with 6 rows named "shop" to player
  373. set {_num} to 0
  374. loop 54 times:
  375. set {_shop} to "%inventory name of player's current inventory%"
  376. set slot {_num} of player's current inventory to {%{_shop}%::%{_num}%}
  377. add 1 to {_num}
  378.  
  379. on inventory close:
  380. if inventory name of player's current inventory contain "-edit":
  381. set {_num} to 0
  382. loop 54 times:
  383. set {_shop} to "%inventory name of player's current inventory%"
  384. replace all "-edit" with "" in {_shop}
  385. set {%{_shop}%::%{_num}%} to slot {_num} of player's current inventory
  386. add 1 to {_num}
  387. send "&6%{_shop}%&7の情報を保存しました"
  388.  
  389. #-Timer-
  390.  
  391. command /timer [<number>]:
  392. permission: sk.admin
  393. trigger:
  394. set {timer} to arg-1
  395. set {progress} to 100 / arg-1
  396. set {ppercent} to 100
  397.  
  398. every 1 seconds in "world":
  399. if {timer} >= 0:
  400. loop all players:
  401. create bossbar titled "&e[ %{timer}% Seconds &e]" and id "timer" for loop-player with progress {ppercent} with colors green
  402. remove {progress} from {ppercent}
  403. remove 1 from {timer}
  404. else if {timer} <= 0:
  405. remove bossbar "timer"
  406. delete {player::*}
  407. set {ffa} to false
  408. send all players title "&4! - &cタイムアップ&4 - !" for 3 seconds
  409. teleport all players to {lobby}
  410. delete {timer}
  411.  
  412. #-Gamemode-
  413.  
  414. command /game [<text>]:
  415. permission: sk.admin
  416. trigger:
  417. if arg-1 is "ffa":
  418. ffastart(player)
  419. if arg-1 is "tdm":
  420. tdmstart(player)
  421. if arg-1 is not set:
  422. send "&c/game ffa,tdm"
  423.  
  424. command /ss [<text>]:
  425. permission: sk.admin
  426. trigger:
  427. if arg-1 is "lobby":
  428. send "&a待機場所を設定しました。"
  429. set {lobby} to location of event-player
  430. if arg-1 is "ffa":
  431. send "&a待機場所を設定しました。"
  432. set {ffa} to location of event-player
  433. if arg-1 is "blue":
  434. send "&a待機場所を設定しました。"
  435. set {bspawn} to location of event-player
  436. if arg-1 is "red":
  437. send "&a待機場所を設定しました。"
  438. set {rspawn} to location of event-player
  439.  
  440.  
  441. on quit:
  442. if {player::*} contains "%player%":
  443. remove player from {player::*}
  444. death()
  445.  
  446. on join:
  447. if {game} is true:
  448. send "&c試合がすでに始まっているので観戦です。"
  449. send "&c少々お待ちください。"
  450. set player's gamemode to spectator
  451. teleport player to {lobby}
  452. else:
  453. teleport player to {lobby}
  454. set player's gamemode to adventure
  455.  
  456. on damage of player:
  457. if {pvpfalse::*} contains "%victim%":
  458. cancel event
  459. stop
  460. else:
  461. health of victim*2 <= final damage
  462. cancel event
  463. broadcast "&7%attacker% &f≪&r%display name of attacker's held item%&f≫ &ckilled &7%victim%"
  464. heal victim
  465. set victim's gamemode to spectator
  466. remove victim from {player::*}
  467. death()
  468.  
  469. function ffastart(p: player):
  470. if {game} is not set:
  471. set {game} to false
  472. else if {game} is true:
  473. send "&cもうすでに試合が始まっています。" to {_p}
  474. else if {game} is false:
  475. start()
  476. wait 5 seconds
  477. teleport all players to {ffa}
  478.  
  479. function start():
  480. delete {player::*}
  481. broadcast "&a5秒後にスタートします..."
  482. wait 2 seconds
  483. send all players title "&6[ &a3 &6]" for 1 seconds
  484. wait 1 seconds
  485. send all players title "&6[ &e2 &6]" for 1 seconds
  486. wait 1 seconds
  487. send all players title "&6[ &c1 &6]" for 1 seconds
  488. wait 1 seconds
  489. send all players title "&6[ &aSTART &6]" for 1 seconds
  490. loop all players:
  491. add loop-player to {player::*}
  492. remove loop-player from {pvpfalse::*}
  493. set {_num} to number of {player::*}
  494. broadcast "&b残り%{_num}%人です。"
  495. command "/timer 600"
  496. set {game} to true
  497.  
  498. function tdmstart(p: player):
  499. if {game} is not set:
  500. set {game} to false
  501. else if {game} is true:
  502. send "&cもうすでに試合が始まっています。" to {_p}
  503. else if {game} is false:
  504. loop all players:
  505. if number of {red::*} is 0:
  506. add loop-player to {red::*}
  507. send loop-player title "&6[ &c赤チーム &6]" for 3 seconds
  508. if number of {red::*} = number of {blue::*}:
  509. add loop-player to {red::*}
  510. send loop-player title "&6[ &c赤チーム &6]" for 3 seconds
  511. if number of {red::*} > number of {blue::*}:
  512. add loop-player to {blue::*}
  513. send loop-player title "&6[ &9蒼チーム &6]" for 3 seconds
  514. teleport {blue::*} to {bspawn}
  515. teleport {red::*} to {rspawn}
  516. start()
  517.  
  518. function death():
  519. set {_num} to number of {player::*}
  520. if {_num} <= 1:
  521. broadcast "&eWinner &8- &b%{players::*}%"
  522. set {game} to false
  523. loop all players:
  524. add loop-player to {pvpfalse::*}
  525. teleport all players to {lobby}
  526. delete {timer}
  527. remove bossbar "timer"
  528. else:
  529. broadcast "&b残り%{_num}%人です。"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement