sniperwolf1130

eikou

May 6th, 2020 (edited)
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.28 KB | None | 0 0
  1. on join:
  2. teleport player to {tp.lobby}
  3. remove all items from player's inventory
  4. set the join message to "<gold><bold>[栄光の架橋]%player%さんがサーバーに参加しました!"
  5. execute command "/tabsetting %player% 0"
  6. delete {shot.%player%}
  7. set player's gamemode to adventure
  8. give 1 stick named "<red><bold>レーザーポインター" to player
  9. if {pt.%player%} is not set:
  10. set {pt.%player%} to 0
  11. if {state} is 1:
  12. send "<gold><bold>現在試合中です。<light green><bold>/kansen<gold><bold>で観戦に切り替えられます"
  13.  
  14. on damage:
  15. # damage cause is fall:
  16. # cancel event
  17. if {dam} is 0:
  18. cancel event
  19.  
  20.  
  21.  
  22. on quit:
  23. set the quit message to "<gold><bold>[栄光の架橋]%player%さんがサーバーから退出しました"
  24.  
  25. on first join:
  26. teleport player to {tp.tuto}
  27. set player's gamemode to adventure
  28. give 1 stick named "<red><bold>レーザーポインター" to player
  29.  
  30. on drop:
  31. cancel event
  32.  
  33. on rightclick with stick:
  34. name of player's tool contains "<red><bold>レーザーポインター":
  35. cancel event
  36. set {_num} to 0.5
  37. set {_Particle} to location of the block {_num} meter in front of player's head
  38. loop 500 times:
  39. show 1 redstone particles at {_Particle} with color 200, 0, 0 offset by 0, 0, 0
  40. set {_num} to {_num} + 0.3
  41. set {_Particle} to location of the block {_num} meter infront of player's head
  42. if the block {_num} meter infront of player's head is not air:
  43. stop loop
  44.  
  45. command /getlaser:
  46. permission: op
  47. trigger:
  48. give 1 stick named "<red><bold>レーザーポインター" to player
  49.  
  50. command /getgacha:
  51. permission: op
  52. trigger:
  53. give 1 paper named "&6&lスキルガチャ&3: 右クリック" to player
  54.  
  55. on break of red wool:
  56. if {shot.%player%} is "blue":
  57. cancel event
  58.  
  59. on break of blue wool:
  60. if {shot.%player%} is "red":
  61. cancel event
  62.  
  63.  
  64. on shoot:
  65. set {plx} to floor(x-coordinate of location of shooter)
  66. set {ply} to floor(y-coordinate of location of shooter)
  67. set {plz} to floor(z-coordinate of location of shooter)
  68. {plx} is more than -13
  69. {plx} is less than 52
  70. {ply} is more than 64
  71. {ply} is less than 84
  72. {plz} is more than 62
  73. {plz} is less than 71
  74. cancel event
  75.  
  76. on shoot:
  77. set {plx} to floor(x-coordinate of location of shooter)
  78. set {ply} to floor(y-coordinate of location of shooter)
  79. set {plz} to floor(z-coordinate of location of shooter)
  80. {plx} is more than -13
  81. {plx} is less than 52
  82. {ply} is more than 64
  83. {ply} is less than 84
  84. {plz} is more than 35
  85. {plz} is less than 41
  86. event-projectile is snowball
  87. {vip.%shooter%} is 1
  88. if {yukidama.%shooter%} is not 0:
  89. execute command "/clear %shooter% minecraft:snowball"
  90. wait 1 tick
  91. give 1 snowball to shooter
  92. remove 1 from {yukidama.%shooter%}
  93. execute command "/title %shooter% title {""text"":""&b 雪玉残数: %{yukidama.%shooter%}%""}"
  94. else:
  95. send "&b雪玉が足りません!" to shooter
  96. play "BLOCK_LAVA_POP" to shooter
  97. cancel event
  98.  
  99. command /vip <player>:
  100. permission: op
  101. trigger:
  102. set {vip.%arg%} to 1
  103.  
  104. command /dam:
  105. permission: op
  106. trigger:
  107. if {dam} is 0:
  108. set {dam} to 1
  109. broadcast "damage ON"
  110. else:
  111. set {dam} to 0
  112. broadcast "damage OFF"
  113.  
  114. command /nonvip <player>:
  115. permission: op
  116. trigger:
  117. delete {vip.%arg%}
  118.  
  119. command /close:
  120. permission: op
  121. trigger:
  122. execute command "/fill 85 93 -27 85 91 -26 minecraft:glass"
  123. execute command "/fill 85 93 -23 85 91 -22 minecraft:glass"
  124.  
  125. command /opend:
  126. permission: op
  127. trigger:
  128. execute command "/fill 85 93 -27 85 91 -26 minecraft:air"
  129. execute command "/fill 85 93 -23 85 91 -22 minecraft:air"
  130.  
  131. command /settuto:
  132. permission: op
  133. trigger:
  134. set {tp.tuto} to location of player
  135. message "チュートリアルの場所を%{tp.tuto}%に設定しました"
  136.  
  137. command /setlob:
  138. permission: op
  139. trigger:
  140. set {tp.lobby} to location of player
  141. message "ロビーの場所を%{tp.lobby}%に設定しました"
  142.  
  143. command /setred:
  144. permission: op
  145. trigger:
  146. set {tp.red} to location of player
  147. message "赤チームの場所を%{tp.red}%に設定しました"
  148.  
  149. command /setblue:
  150. permission: op
  151. trigger:
  152. set {tp.blue} to location of player
  153. message "青チームの場所を%{tp.blue}%に設定しました"
  154.  
  155. command /setshot:
  156. permission: op
  157. trigger:
  158. set {tp.shot} to location of player
  159. message "射撃主の場所を%{tp.shot}%に設定しました"
  160.  
  161. command /setarea1:
  162. permission: op
  163. trigger:
  164. set {area1} to location of player
  165. message "エリア1の場所を%{area1}%に設定しました"
  166.  
  167. command /setarea2:
  168. permission: op
  169. trigger:
  170. set {area2} to location of player
  171. message "エリア2の場所を%{area2}%に設定しました"
  172.  
  173. command /tabsetting <player> <int>:
  174. permission: owner.sk
  175. trigger:
  176. set {tab.%arg 1%} to arg 2
  177.  
  178. command /pteam <player> [<text>]:
  179. permission: op
  180. trigger:
  181. if arg 2 is "red":
  182. set {shot.%arg 1%} to arg 2
  183. execute command "/tabsetting %arg 1% 1"
  184. else if arg 2 is "blue":
  185. set {shot.%arg 1%} to arg 2
  186. execute command "/tabsetting %arg 1% 2"
  187. else if arg 2 is "clear":
  188. set {shot.%arg 1%} to arg 2
  189. execute command "/tabsetting %arg 1% 0"
  190.  
  191. on walking on red wool:
  192. if {shot.%player%} is "blue":
  193. if {tp.%player%} is set:
  194. teleport player to {tp.%player%}
  195. else:
  196. teleport player to {tp.blue}
  197.  
  198. on walking on blue wool:
  199. if {shot.%player%} is "red":
  200. if {tp.%player%} is set:
  201. teleport player to {tp.%player%}
  202. else:
  203. teleport player to {tp.red}
  204.  
  205. on walking on magenta concrete:
  206. if {shot.%player%} is "red":
  207. if {tp.%player%} is set:
  208. teleport player to {tp.%player%}
  209. else:
  210. teleport player to {tp.red}
  211. else if {shot.%player%} is "blue":
  212. if {tp.%player%} is set:
  213. teleport player to {tp.%player%}
  214. else:
  215. teleport player to {tp.blue}
  216.  
  217. on walking on red concrete:
  218. if {state} is 1:
  219. if {shot.%player%} is "blue":
  220. teleport player to {tp.blue}
  221. set {point.blue} to {point.blue} + 1
  222. broadcast "&b青&6チームの%player%さんがゴールしました!"
  223. execute command "/fill 44 84 69 -5 65 68 minecraft:air 0 replace minecraft:wool 11"
  224.  
  225. on walking on blue concrete:
  226. if {state} is 1:
  227. if {shot.%player%} is "red":
  228. teleport player to {tp.red}
  229. set {point.red} to {point.red} + 1
  230. broadcast "&c赤&6チームの%player%さんがゴールしました!"
  231. execute command "/fill 44 84 69 -5 65 68 minecraft:air 0 replace minecraft:wool 14"
  232.  
  233. on walking on light blue glass:
  234. if {game} is "eiko":
  235. if {shot.%player%} is "red":
  236. execute command "/tp %player% 48 80 67"
  237. else if {game} is "paint":
  238. execute command "/tp %player% 47 69 38"
  239.  
  240. on walking on blue stained glass:
  241. if {shot.%player%} is "red":
  242. execute command "/tp %player% 50 80 37"
  243.  
  244. on walking on pink stained glass:
  245. if {game} is "eiko":
  246. if {shot.%player%} is "blue":
  247. execute command "/tp %player% -8 79 67"
  248. else if {game} is "paint":
  249. execute command "/tp %player% -8 69 38"
  250.  
  251. on walking on red glass block:
  252. if {shot.%player%} is "blue":
  253. execute command "/tp %player% -11 80 37"
  254.  
  255. on walking on orange glass:
  256. if {shot.%player%} is "blue":
  257. execute command "/tp %player% -11 70 37"
  258.  
  259. on walking on yellow glass:
  260. if {game} is "eiko":
  261. if {shot.%player%} is "blue":
  262. execute command "/tp %player% -9 68 68"
  263. else if {game} is "paint":
  264. execute command "/tp %player% -9 79 38"
  265.  
  266. on walking on dark green glass:
  267. if {shot.%player%} is "red":
  268. execute command "/tp %player% 50 70 37"
  269.  
  270. on walking on light green stained glass block:
  271. if {game} is "eiko":
  272. if {shot.%player%} is "red":
  273. execute command "/tp %player% 48 68 67"
  274. else if {game} is "paint":
  275. execute command "/tp %player% 47 79 38"
  276.  
  277. on walking on light blue wool:
  278. if {state} is 0:
  279. if {shot.%player%} is not set:
  280. broadcast "&6%player%さんがゲームに参加しました"
  281. if {shot.%player%} is not "blue":
  282. execute command "/pteam %player% blue"
  283. send "&6あなたは&b青&6チームです!" to player
  284.  
  285. on walking on pink wool block:
  286. if {state} is 0:
  287. if {shot.%player%} is not set:
  288. broadcast "&6%player%さんがゲームに参加しました"
  289. if {shot.%player%} is not "red":
  290. execute command "/pteam %player% red"
  291. send "&6あなたは&c赤&6チームです!" to player
  292.  
  293. on walking on emerald block:
  294. if {shot.%player%} is "red":
  295. set {tp.%player%} to location of player
  296. message "&e&lスポーンポイントを設定しました"
  297.  
  298. on walking on diamond block:
  299. if {shot.%player%} is "blue":
  300. set {tp.%player%} to location of player
  301. message "&e&lスポーンポイントを設定しました"
  302.  
  303. command /cc:
  304. permission: op
  305. trigger:
  306. execute command "/fill 44 84 69 -5 65 68 air"
  307.  
  308. command /cc2:
  309. permission: op
  310. trigger:
  311. execute command "/fill 82 100 -4 -71 94 -4 air"
  312.  
  313. command /cc3:
  314. permission: op
  315. trigger:
  316. execute command "/fill 44 84 67 -5 65 68 air"
  317.  
  318.  
  319. options:
  320. red: red wool
  321. blue: blue wool
  322.  
  323. on projectile hit:
  324. wait 1 tick
  325. kill event-entity
  326. set {_hitx} to floor(x-coordinate of location of projectile)
  327. set {_hity} to floor(y-coordinate of location of projectile)
  328. set {_hitz} to floor(z-coordinate of location of projectile)
  329. set {_hitpoint} to location of projectile
  330. set {_block} to the block at location 1 in front of the projectile
  331. if {state} is 1:
  332. {_hitx} is more than -5
  333. {_hitx} is less than 44
  334. {_hity} is more than 65
  335. {_hity} is less than 84
  336. {_hitz} is more than 67
  337. {_hitz} is less than 70
  338. if {shot.%shooter%} is "red":
  339. if {radi.%shooter%} is 1:
  340. loop blocks in radius 1 around projectile:
  341. if loop-block is blue wool:
  342. set loop-block to air
  343. stop
  344. else if {_block} is air:
  345. set the block at {_block} to {@red}
  346. else:
  347. set block at {_hitpoint} to {@red}
  348. else:
  349. loop blocks in radius {radi.%shooter%} around projectile:
  350. if loop-block is blue wool:
  351. set loop-block to air
  352. set {radi.%shooter%} to 1
  353.  
  354. else if {shot.%shooter%} is "blue":
  355. if {radi.%shooter%} is 1:
  356. loop blocks in radius 1 around projectile:
  357. if loop-block is red wool block:
  358. set loop-block to air
  359. stop
  360. else if {_block} is air:
  361. set the block at {_block} to {@blue}
  362. else:
  363. set block at {_hitpoint} to {@blue}
  364. else:
  365. loop blocks in radius {radi.%shooter%} around projectile:
  366. if loop-block is red wool:
  367. set loop-block to air
  368. set {radi.%shooter%} to 1
  369.  
  370. #command /team:
  371. # trigger:
  372. # set {_rate::*} to "red" and "blue"
  373. # loop all players:
  374. # set {shot.%loop-player%} to random element out of {_rate::*}
  375. # if {shot.%loop-player%} is red:
  376. # send "&6あなたは&c赤&6チームです!" to loop-player
  377. # execute command "/tabsetting %loop-player% 1"
  378. # else if {shot.%loop-player%} is red:
  379. # send "&6あなたは&b青&6チームです!" to loop-player
  380. # execute command "/tabsetting %loop-player% 2"
  381.  
  382.  
  383. command /team:
  384. permission: op
  385. trigger:
  386. set {red} and {blue} to 0
  387. loop all players:
  388. if {red} is more than {blue}:
  389. add 1 to {blue}
  390. set {shot.%loop-player%} to "blue"
  391. send "&6あなたは&b青&6チームです!" to loop-player
  392. execute command "/tabsetting %loop-player% 2"
  393. else:
  394. add 1 to {red}
  395. set {shot.%loop-player%} to "red"
  396. send "&6あなたは&c赤&6チームです!" to loop-player
  397. execute command "/tabsetting %loop-player% 1"
  398. wait a tick
  399.  
  400. command /rteam:
  401. permission: op
  402. trigger:
  403. set {_rate::*} to "red" and "blue"
  404. loop 10 times:
  405. set {_team.red} to 0
  406. set {_team.blue} to 0
  407. loop all players:
  408. set {_itiji} to random element out of {_rate::*}
  409. set {shot.%loop-player%} to {_itiji}
  410. add 1 to {_team.%{_itiji}%}
  411. send "%loop-number%" to player
  412. if {_team.blue} - {_team.red} is 0 or 1 or -1:
  413. stop loop
  414. loop all players:
  415. if {shot.%loop-player%} is "red":
  416. send "&6あなたは&c赤&6チームです!" to loop-player
  417. execute command "/tabsetting %loop-player% 1"
  418. else if {shot.%loop-player%} is "blue":
  419. send "&6あなたは&b青&6チームです!" to loop-player
  420. execute command "/tabsetting %loop-player% 2"
  421.  
  422.  
  423. every 10 ticks:
  424. loop all players:
  425. set loop-player's food level to 10
  426. set the loop-player's level to {pt.%loop-player%}
  427. # if {state} is 0:
  428. # execute command "/title @a actionbar {""text"":""&5&lあなたのポイント&7: %{pt.%loop-player%}%""}"
  429.  
  430. if {tab.%loop-player%} is 0:
  431. if {vip.%loop-player%} is 1:
  432. set loop-player's tab list name to "<light green>[VIP]<white>%loop-player%"
  433. else:
  434. set loop-player's tab list name to "<white>%loop-player%"
  435.  
  436. else if {tab.%loop-player%} is 1:
  437. if {vip.%loop-player%} is 1:
  438. set loop-player's tab list name to "<light green>[VIP]<red>%loop-player%"
  439. else:
  440. set loop-player's tab list name to "<red>%loop-player%"
  441.  
  442. else if {tab.%loop-player%} is 2:
  443. if {vip.%loop-player%} is 1:
  444. set loop-player's tab list name to "<light green>[VIP]<blue>%loop-player%"
  445. else:
  446. set loop-player's tab list name to "<blue>%loop-player%"
  447.  
  448.  
  449. every 2 seconds:
  450. loop all players:
  451. if {state} is 1:
  452. if {game} is "eiko":
  453. if {shot.%loop-player%} is "red" or "blue":
  454. if {vip.%loop-player%} is 1:
  455. add 1 to {yukidama.%loop-player%}
  456. # execute command "/give %loop-player% minecraft:snowball 1 0"
  457.  
  458. every 180 seconds:
  459. broadcast "<gold><bold>[定期]<light green><bold>VIP<gold><bold>になると、試合中に雪玉が支給されます。"
  460. wait 90 seconds
  461. broadcast "<gold><bold>[定期]<light green><bold>/kansen<gold><bold>で観戦に切り替えられます"
  462.  
  463. on death:
  464. set player's health to player's max health
  465.  
  466. command /eikostop:
  467. permission: op
  468. trigger:
  469. broadcast "&6&lゲームを終了します"
  470. set {state} to 0
  471. loop all players:
  472. teleport loop-player to {tp.lobby}
  473. execute command "/gamemode 2 %loop-player%"
  474. remove all items from loop-player's inventory
  475. delete {tp.%loop-player%}
  476. execute command "/tabsetting %loop-player% 0"
  477. execute command "/title %loop-player% reset"
  478. play "ENTITY_FIREWORK_TWINKLE" to loop-player
  479. execute command "/opend"
  480. if {game} is "eiko":
  481. broadcast "&c赤&6チームの得点は、&c%{point.red}%点です!"
  482. broadcast "&b青&6チームの得点は、&b%{point.blue}%点です!"
  483. if {point.red} is more than {point.blue}:
  484. broadcast "&c赤&6チームの方が得点が多かったため、&c赤&6チームの勝利!"
  485. loop all players:
  486. if {shot.%loop-player%} is "red":
  487. set {_tokuten.%player%} to {point.red} + 1
  488. add {_tokuten.%player%} to {pt.%loop-player%}
  489. send "&5%{_tokuten.%player%}%ポイントを手に入れました。" to loop-player
  490.  
  491. else if {shot.%loop-player%} is "blue":
  492. add {point.blue} to {pt.%loop-player%}
  493. send "&5%{point.blue}%ポイントを手に入れました。" to loop-player
  494. send "&5&l現在のあなたのポイント&7: %{pt.%loop-player%}%" to loop-player
  495. delete {shot.%loop-player%}
  496.  
  497. else if {point.red} is less than {point.blue}:
  498. broadcast "&b青&6チームの方が得点が多かったため、&b青&6チームの勝利!"
  499. loop all players:
  500. if {shot.%loop-player%} is "blue":
  501. set {_tokuten.%player%} to {point.blue} + 1
  502. add {_tokuten.%player%} to {pt.%loop-player%}
  503. send "&5%{_tokuten.%player%}%ポイントを手に入れました。" to loop-player
  504.  
  505. else if {shot.%loop-player%} is "red":
  506. add {point.red} to {pt.%loop-player%}
  507. send "&5%{point.red}%ポイントを手に入れました。" to loop-player
  508. send "&5&l現在のあなたのポイント&7: %{pt.%loop-player%}%" to loop-player
  509. delete {shot.%loop-player%}
  510.  
  511. else:
  512. broadcast "&6両チームとも同じ点数だったため、引き分け!"
  513. loop all players:
  514. add {point.red} to {pt.%loop-player%}
  515. send "&5%{point.red}%ポイントを手に入れました。" to loop-player
  516. send "&5&l現在のあなたのポイント&7: %{pt.%loop-player%}%" to loop-player
  517. delete {shot.%loop-player%}
  518.  
  519. else if {game} is "paint":
  520. loop blocks within {area1} to {area2}:
  521. if loop-block is red wool block:
  522. set {point.red} to {point.red} + 1
  523. else if loop-block is blue wool:
  524. set {point.blue} to {point.blue} + 1
  525. broadcast "&c赤&6チームのブロック数は、&c%{point.red}%個です!"
  526. broadcast "&b青&6チームのブロック数は、&b%{point.blue}%個です!"
  527. if {point.red} is more than {point.blue}:
  528. broadcast "&c赤&6チームの方がブロック数が多かったため、&c赤&6チームの勝利!"
  529. else if {point.red} is less than {point.blue}:
  530. broadcast "&b青&6チームの方がブロック数が多かったため、&b青&6チームの勝利!"
  531. else:
  532. broadcast "&6両チームとも同じブロック数だったため、引き分け!"
  533. delete {point.red}
  534. delete {point.blue}
  535. delete {game}
  536.  
  537.  
  538.  
  539. command /eiko [<text>] [<int>]:
  540. permission: op
  541. trigger:
  542. broadcast "&6&lゲームを始めます!"
  543. broadcast "&6&l制限時間: %arg 2%秒"
  544. delete {point.red}
  545. delete {point.blue}
  546. set {point.red} to 0
  547. set {point.blue} to 0
  548. set {state} to 1
  549. execute command "/count %arg 2%"
  550. if arg 1 is "eiko":
  551. broadcast "&6&lゲームモード: &c&l栄&b&l光&c&lの&b&l架&c&l橋"
  552. set {game} to "eiko"
  553. loop all players:
  554. remove all items from loop-player's inventory
  555. set {radi.%loop-players%} to 1
  556. set {yukidama.%loop-player%} to 0
  557. if {shot.%loop-player%} is "red" or "blue":
  558. execute command "/gamemode 2 %loop-player%"
  559. execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
  560. execute command "/clear %loop-player% minecraft:bow 0 1"
  561.  
  562. execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
  563. execute command "/clear %loop-player% minecraft:shears 0 1"
  564. give 1 arrow to loop-player
  565. give 1 stick named "<red><bold>レーザーポインター" to loop-player
  566. give 1 paper named "&6&lスキルガチャ&3: 右クリック" to loop-player
  567. if {vip.%loop-player%} is 1:
  568. give 1 snowball to loop-player
  569. # execute command "/give %loop-player% minecraft:snowball 1 0"
  570. # execute command "/clear %loop-player% minecraft:snowball 0 1"
  571.  
  572. if {shot.%loop-player%} is "red":
  573. teleport loop-player to {tp.red}
  574. else if {shot.%loop-player%} is "blue":
  575. teleport loop-player to {tp.blue}
  576.  
  577. else if arg 1 is "paint":
  578. broadcast "&6&lゲームモード: &c&lP&b&lA&c&lI&b&lN&c&lT&b&lI&c&lA"
  579. set {game} to "paint"
  580. loop all players:
  581. if {shot.%loop-player%} is "red" or "blue":
  582. teleport loop-player to {tp.shot}
  583. remove all items from loop-player's inventory
  584. if {shot.%loop-player%} is "red":
  585. execute command "/gamemode 2 %loop-player%"
  586. execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
  587. give 1 arrow to loop-player
  588. else if {shot.%loop-player%} is "blue":
  589. execute command "/gamemode 2 %loop-player%"
  590. execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
  591. give 1 arrow to loop-player
  592.  
  593. on chat:
  594. if {state} is 1:
  595. if {shot.%player%} is "red":
  596. cancel event
  597. broadcast "&c%player%: %message%"
  598. else if {shot.%player%} is "blue":
  599. cancel event
  600. broadcast "&b%player%: %message%"
  601.  
  602. command /tt <player>:
  603. permission: op
  604. trigger:
  605. send "%arg%の値は%{shot.%arg%}%です"
  606.  
  607. command /chen <text>:
  608. permission: op
  609. trigger:
  610. send "%arg%の値は%{%arg%}%です"
  611.  
  612. command /chan <text> <int>:
  613. permission: op
  614. trigger:
  615. set {%arg-1%} to arg-2
  616.  
  617. command /count <int>:
  618. permission: op
  619. trigger:
  620. set {_countdown} to arg
  621. loop arg times:
  622. wait 1 seconds
  623. set {_countdown} to {_countdown} - 1
  624. set {time} to {_countdown}
  625. if {game} is "eiko":
  626. execute command "/title @a actionbar {""text"":""&e&lゲームモード: 栄光の架橋 残り時間:%{time}% &c&l%{point.red}% &7&l- &b&l%{point.blue}%""}"
  627. else if {game} is "paint":
  628. execute command "/title @a actionbar {""text"":""&e&lゲームモード: PAINTIA 残り時間:%{time}%""}"
  629. execute command "/title @a actionbar {""text"":""&6&l終了!""}"
  630. execute command "/eikostop"
  631.  
  632. command /kansen:
  633. trigger:
  634. if {state} is 0:
  635. if player's gamemode is spectator:
  636. set player's gamemode to adventure
  637. teleport player to {tp.lobby}
  638. else if player's gamemode is adventure:
  639. set player's gamemode to spectator
  640. if {state} is 1:
  641. {shot.%player%} is not "red" or "blue"
  642. if player's gamemode is spectator:
  643. set player's gamemode to adventure
  644. teleport player to {tp.lobby}
  645. else if player's gamemode is adventure:
  646. set player's gamemode to spectator
  647.  
  648. #give 1 bow of unbreaking 100 and infinity 1 to the player
  649.  
  650. on rightclick with paper:
  651. if name of player's tool contains "&6&lスキルガチャ&3: 右クリック":
  652. if {state} is 1:
  653. play "ENTITY_PLAYER_LEVELUP" to player
  654. set {_gacha::*} to "&6&l局所消去&7: 2x2" and "&6&l局所消去&7: 2x2 " and "&6&l局所消去&7: 2x2 " and "&6&l局所消去&9: 3x3" and "&6&l局所消去&9: 3x3 " and "&6&l局所消去&2&l: 4x4"
  655. set {_gg.%player%} to random element out of {_gacha::*}
  656. send "%{_gg.%player%}%&6&lを引きました!" to player
  657. execute command "/clear %player% paper"
  658. give 1 paper named "%{_gg.%player%}%" to player
  659.  
  660. else if name of player's tool contains "2x2":
  661. execute command "/clear %player% paper"
  662. # send "&a&l[スキル]&6&l局所消去&7: 2x2&6&lを使いました" to player
  663. send "&a&l[スキル]&6&l次に打つ矢が着弾点の周囲2ブロックの敵ブロックを消去します" to player
  664. set {radi.%player%} to 2
  665. play "ENTITY_ENDERDRAGON_GROWL" to player
  666. broadcast "&7&l%player%さんが&a&l[スキル]&6&l局所消去&7: 2x2&7&lを使いました"
  667.  
  668. else if name of player's tool contains "3x3":
  669. execute command "/clear %player% paper"
  670. # send "&a&l[スキル]&6&l局所消去&9: 3x3&6&lを使いました" to player
  671. send "&a&l[スキル]&6&l次に打つ矢が着弾点の周囲3ブロックの敵ブロックを消去します" to player
  672. set {radi.%player%} to 3
  673. play "ENTITY_ENDERDRAGON_GROWL" to player
  674. broadcast "&7&l%player%さんが&a&l[スキル]&6&l局所消去&9: 3x3&7&lを使いました"
  675.  
  676. else if name of player's tool contains "4x4":
  677. execute command "/clear %player% paper"
  678. # send "&a&l[スキル]&6&l局所消去&2&l: 4x4&6&lを使いました" to player
  679. send "&a&l[スキル]&6&l次に打つ矢が着弾点の周囲4ブロックの敵ブロックを消去します" to player
  680. set {radi.%player%} to 4
  681. play "ENTITY_ENDERDRAGON_GROWL" to player
  682. broadcast "&7&l%player%さんが&a&l[スキル]&6&l局所消去&2&l: 4x4&7&lを使いました"
  683.  
  684.  
  685.  
  686. # if {shot.%player%} is "blue":
  687. # broadcast "&6&l%player%さんが敵チームの羊毛を全消去しました"
  688. # execute command "/fill 44 84 69 -5 65 68 minecraft:air 0 replace minecraft:wool 14"
  689. # if {shot.%player%} is "red":
  690. # broadcast "&6&l%player%さんが敵チームの羊毛を全消去しました"
  691. # execute command "/fill 44 84 69 -5 65 68 minecraft:air 0 replace minecraft:wool 11"
  692. # execute command "/clear %player% paper"
  693.  
  694. #雪玉...変数
  695. #局所的消去
  696. #自動チーム分け
Add Comment
Please, Sign In to add comment