Advertisement
sniperwolf1130

栄光の架橋

Aug 22nd, 2019
710
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.93 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.  
  8. on quit:
  9. set the quit message to "<gold><bold>[栄光の架橋]%player%さんがサーバーから退出しました"
  10.  
  11. on first join:
  12. teleport player to {tp.tuto}
  13.  
  14. on rightclick with stick:
  15. name of player's tool contains "<red><bold>レーザーポインター":
  16. cancel event
  17. set {_num} to 0.5
  18. set {_Particle} to location of the block {_num} meter in front of player's head
  19. loop 500 times:
  20. show 1 redstone particles at {_Particle} with color 200, 0, 0 offset by 0, 0, 0
  21. set {_num} to {_num} + 0.3
  22. set {_Particle} to location of the block {_num} meter infront of player's head
  23. if the block {_num} meter infront of player's head is not air:
  24. stop loop
  25.  
  26. on break of red wool:
  27. if {shot.%player%} is "blue":
  28. cancel event
  29.  
  30. on break of blue wool:
  31. if {shot.%player%} is "red":
  32. cancel event
  33.  
  34. on shoot:
  35. set {plx} to floor(x-coordinate of location of shooter)
  36. set {ply} to floor(y-coordinate of location of shooter)
  37. set {plz} to floor(z-coordinate of location of shooter)
  38. {plx} is more than -23
  39. {plx} is less than 35
  40. {ply} is more than 68
  41. {ply} is less than 92
  42. {plz} is more than -30
  43. {plz} is less than -24
  44. cancel event
  45.  
  46. command /vip <player>:
  47. permission: op
  48. trigger:
  49. set {vip.%arg%} to 1
  50.  
  51. command /nonvip <player>:
  52. permission: op
  53. trigger:
  54. delete {vip.%arg%}
  55.  
  56. command /close:
  57. permission: op
  58. trigger:
  59. execute command "/fill 85 93 -27 85 91 -26 minecraft:glass"
  60. execute command "/fill 85 93 -23 85 91 -22 minecraft:glass"
  61.  
  62. command /opend:
  63. permission: op
  64. trigger:
  65. execute command "/fill 85 93 -27 85 91 -26 minecraft:air"
  66. execute command "/fill 85 93 -23 85 91 -22 minecraft:air"
  67.  
  68. command /settuto:
  69. permission: op
  70. trigger:
  71. set {tp.lobby} to location of player
  72. message "チュートリアルの場所を%{tp.lobby}%に設定しました"
  73.  
  74. command /setlob:
  75. permission: op
  76. trigger:
  77. set {tp.lobby} to location of player
  78. message "ロビーの場所を%{tp.lobby}%に設定しました"
  79.  
  80. command /setred:
  81. permission: op
  82. trigger:
  83. set {tp.red} to location of player
  84. message "赤チームの場所を%{tp.red}%に設定しました"
  85.  
  86. command /setblue:
  87. permission: op
  88. trigger:
  89. set {tp.blue} to location of player
  90. message "青チームの場所を%{tp.blue}%に設定しました"
  91.  
  92. command /setshot:
  93. permission: op
  94. trigger:
  95. set {tp.shot} to location of player
  96. message "射撃主の場所を%{tp.shot}%に設定しました"
  97.  
  98. command /setarea1:
  99. permission: op
  100. trigger:
  101. set {area1} to location of player
  102. message "エリア1の場所を%{area1}%に設定しました"
  103.  
  104. command /setarea2:
  105. permission: op
  106. trigger:
  107. set {area2} to location of player
  108. message "エリア2の場所を%{area2}%に設定しました"
  109.  
  110. command /tabsetting <player> <int>:
  111. permission: owner.sk
  112. trigger:
  113. set {tab.%arg 1%} to arg 2
  114.  
  115. command /pteam <player> [<text>]:
  116. permission: op
  117. trigger:
  118. if arg 2 is "red":
  119. set {shot.%arg 1%} to arg 2
  120. execute command "/tabsetting %arg 1% 1"
  121. else if arg 2 is "blue":
  122. set {shot.%arg 1%} to arg 2
  123. execute command "/tabsetting %arg 1% 2"
  124.  
  125. on walking on red wool:
  126. if {shot.%player%} is "blue":
  127. if {tp.%player%} is set:
  128. teleport player to {tp.%player%}
  129. else:
  130. teleport player to {tp.blue}
  131.  
  132. on walking on blue wool:
  133. if {shot.%player%} is "red":
  134. if {tp.%player%} is set:
  135. teleport player to {tp.%player%}
  136. else:
  137. teleport player to {tp.red}
  138.  
  139. on walking on magenta concrete:
  140. if {shot.%player%} is "red":
  141. if {tp.%player%} is set:
  142. teleport player to {tp.%player%}
  143. else:
  144. teleport player to {tp.red}
  145. else if {shot.%player%} is "blue":
  146. if {tp.%player%} is set:
  147. teleport player to {tp.%player%}
  148. else:
  149. teleport player to {tp.blue}
  150.  
  151. on walking on red concrete:
  152. if {state} is 1:
  153. if {shot.%player%} is "blue":
  154. teleport player to {tp.blue}
  155. set {point.blue} to {point.blue} + 1
  156. broadcast "&b青&6チームの%player%さんがゴールしました!"
  157. execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 11"
  158.  
  159. on walking on blue concrete:
  160. if {state} is 1:
  161. if {shot.%player%} is "red":
  162. teleport player to {tp.red}
  163. set {point.red} to {point.red} + 1
  164. broadcast "&c赤&6チームの%player%さんがゴールしました!"
  165. execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 14"
  166.  
  167. on walking on light blue glass:
  168. if {game} is "eiko":
  169. if {shot.%player%} is "red":
  170. execute command "/tp %player% -19 85 -27"
  171. else if {game} is "paint":
  172. execute command "/tp %player% -16 75 -13"
  173.  
  174. on walking on blue stained glass:
  175. if {shot.%player%} is "red":
  176. execute command "/tp %player% -16 86 -13"
  177.  
  178. on walking on pink stained glass:
  179. if {game} is "eiko":
  180. if {shot.%player%} is "blue":
  181. execute command "/tp %player% 31 85 -27"
  182. else if {game} is "paint":
  183. execute command "/tp %player% 28 75 -13"
  184.  
  185. on walking on red glass block:
  186. if {shot.%player%} is "blue":
  187. execute command "/tp %player% 28 86 -13"
  188.  
  189. on walking on orange glass:
  190. if {shot.%player%} is "blue":
  191. execute command "/tp %player% 28 75 -13"
  192.  
  193. on walking on yellow glass:
  194. if {game} is "eiko":
  195. if {shot.%player%} is "blue":
  196. execute command "/tp %player% 30 75 -27"
  197. else if {game} is "paint":
  198. execute command "/tp %player% 28 86 -13"
  199.  
  200. on walking on dark green glass:
  201. if {shot.%player%} is "red":
  202. execute command "/tp %player% -16 75 -13"
  203.  
  204. on walking on light green stained glass block:
  205. if {game} is "eiko":
  206. if {shot.%player%} is "red":
  207. execute command "/tp %player% -19 75 -27"
  208. else if {game} is "paint":
  209. execute command "/tp %player% -16 86 -13"
  210.  
  211. on walking on light blue wool:
  212. if {state} is 0:
  213. if {shot.%player%} is not "blue":
  214. execute command "/pteam %player% blue"
  215. send "&6あなたは&b青&6チームです!" to player
  216.  
  217. on walking on pink wool block:
  218. if {state} is 0:
  219. if {shot.%player%} is not "red":
  220. execute command "/pteam %player% red"
  221. send "&6あなたは&c赤&6チームです!" to player
  222.  
  223. on walking on emerald block:
  224. if {shot.%player%} is "red":
  225. set {tp.%player%} to location of player
  226. message "&e&lスポーンポイントを設定しました"
  227.  
  228. on walking on diamond block:
  229. if {shot.%player%} is "blue":
  230. set {tp.%player%} to location of player
  231. message "&e&lスポーンポイントを設定しました"
  232.  
  233. command /cc:
  234. permission: op
  235. trigger:
  236. execute command "/fill 28 70 -26 -16 89 -28 air"
  237.  
  238. command /cc2:
  239. permission: op
  240. trigger:
  241. execute command "/fill 82 100 -4 -71 94 -4 air"
  242.  
  243. options:
  244. red: red wool
  245. blue: blue wool
  246.  
  247. on projectile hit:
  248. wait 1 tick
  249. kill event-entity
  250. set {_hitx} to floor(x-coordinate of location of projectile)
  251. set {_hity} to floor(y-coordinate of location of projectile)
  252. set {_hitz} to floor(z-coordinate of location of projectile)
  253. set {_hitpoint} to location of projectile
  254. set {_block} to the block at location 1 in front of the projectile
  255. if {state} is 0:
  256. {_hitx} is more than 71
  257. {_hitx} is less than 82
  258. {_hity} is more than 90
  259. {_hity} is less than 100
  260. {_hitz} is more than -7
  261. {_hitz} is less than -3
  262. if {shot.%shooter%} is "red":
  263. loop blocks in radius 1 around projectile:
  264. if loop-block is blue wool:
  265. set loop-block to air
  266. stop
  267. else if {_block} is air:
  268. set the block at {_block} to {@red}
  269. else:
  270. set block at {_hitpoint} to {@red}
  271.  
  272. else if {shot.%shooter%} is "blue":
  273. loop blocks in radius 1 around projectile:
  274. if loop-block is red wool block:
  275. set loop-block to air
  276. stop
  277. else if {_block} is air:
  278. set the block at {_block} to {@blue}
  279. else:
  280. set block at {_hitpoint} to {@blue}
  281.  
  282. else if {state} is 1:
  283. {_hitx} is more than -17
  284. {_hitx} is less than 29
  285. {_hity} is more than 69
  286. {_hity} is less than 90
  287. {_hitz} is more than -29
  288. {_hitz} is less than -25
  289. if {shot.%shooter%} is "red":
  290. loop blocks in radius 1 around projectile:
  291. if loop-block is blue wool:
  292. set loop-block to air
  293. stop
  294. if {_block} is air:
  295. set the block at {_block} to {@red}
  296. else:
  297. set block at {_hitpoint} to {@red}
  298.  
  299. else if {shot.%shooter%} is "blue":
  300. loop blocks in radius 1 around projectile:
  301. if loop-block is red wool block:
  302. set loop-block to air
  303. stop
  304. if {_block} is air:
  305. set the block at {_block} to {@blue}
  306. else:
  307. set block at {_hitpoint} to {@blue}
  308.  
  309. command /team:
  310. trigger:
  311. set {red} and {blue} to 0
  312. loop all players:
  313. if {red} is more than {blue}:
  314. add 1 to {blue}
  315. set {shot.%loop-player%} to "blue"
  316. send "&6あなたは&b青&6チームです!" to loop-player
  317. execute command "/tabsetting %loop-player% 2"
  318. else:
  319. add 1 to {red}
  320. set {shot.%loop-player%} to "red"
  321. send "&6あなたは&c赤&6チームです!" to loop-player
  322. execute command "/tabsetting %loop-player% 1"
  323. wait a tick
  324.  
  325. every 2 seconds:
  326. loop all players:
  327. set loop-player's food level to 10
  328.  
  329. if {tab.%loop-player%} is 0:
  330. if {vip.%loop-player%} is 1:
  331. set loop-player's tab list name to "<light green>[VIP]<white>%loop-player%"
  332. else:
  333. set loop-player's tab list name to "<white>%loop-player%"
  334.  
  335. else if {tab.%loop-player%} is 1:
  336. if {vip.%loop-player%} is 1:
  337. set loop-player's tab list name to "<light green>[VIP]<red>%loop-player%"
  338. else:
  339. set loop-player's tab list name to "<red>%loop-player%"
  340.  
  341. else if {tab.%loop-player%} is 2:
  342. if {vip.%loop-player%} is 1:
  343. set loop-player's tab list name to "<light green>[VIP]<blue>%loop-player%"
  344. else:
  345. set loop-player's tab list name to "<blue>%loop-player%"
  346.  
  347. if {state} is 1:
  348. if {game} is "eiko":
  349. if {shot.%loop-player%} is "red" or "blue":
  350. if {vip.%loop-player%} is 1:
  351. execute command "/give %loop-player% minecraft:snowball 1 0"
  352.  
  353. every 180 seconds:
  354. broadcast "<gold><bold>[定期]<light green><bold>VIP<gold><bold>になると、試合中に雪玉が支給されます。"
  355.  
  356. on death:
  357. set player's health to player's max health
  358.  
  359. command /eikostop:
  360. permission: op
  361. trigger:
  362. broadcast "&6&lゲームを終了します"
  363. set {state} to 0
  364. loop all players:
  365. teleport loop-player to {tp.lobby}
  366. execute command "/gamemode 2 %loop-player%"
  367. remove all items from loop-player's inventory
  368. delete {shot.%loop-player%}
  369. delete {tp.%loop-player%}
  370. execute command "/tabsetting %loop-player% 0"
  371. execute command "/opend"
  372. if {game} is "eiko":
  373. broadcast "&c赤&6チームの得点は、&c%{point.red}%点です!"
  374. broadcast "&b青&6チームの得点は、&b%{point.blue}%点です!"
  375. if {point.red} is more than {point.blue}:
  376. broadcast "&c赤&6チームの方が得点が多かったため、&c赤&6チームの勝利!"
  377. else if {point.red} is less than {point.blue}:
  378. broadcast "&b青&6チームの方が得点が多かったため、&b青&6チームの勝利!"
  379. else:
  380. broadcast "&6両チームとも同じ点数だったため、引き分け!"
  381. else if {game} is "paint":
  382. loop blocks within {area1} to {area2}:
  383. if loop-block is red wool block:
  384. set {point.red} to {point.red} + 1
  385. else if loop-block is blue wool:
  386. set {point.blue} to {point.blue} + 1
  387. broadcast "&c赤&6チームのブロック数は、&c%{point.red}%個です!"
  388. broadcast "&b青&6チームのブロック数は、&b%{point.blue}%個です!"
  389. if {point.red} is more than {point.blue}:
  390. broadcast "&c赤&6チームの方がブロック数が多かったため、&c赤&6チームの勝利!"
  391. else if {point.red} is less than {point.blue}:
  392. broadcast "&b青&6チームの方がブロック数が多かったため、&b青&6チームの勝利!"
  393. else:
  394. broadcast "&6両チームとも同じブロック数だったため、引き分け!"
  395. delete {point.red}
  396. delete {point.blue}
  397. delete {game}
  398.  
  399.  
  400.  
  401. command /eiko [<text>] [<int>]:
  402. permission: op
  403. trigger:
  404. broadcast "&6&lゲームを始めます!"
  405. broadcast "&6&l制限時間: %arg 2%秒"
  406. delete {point.red}
  407. delete {point.blue}
  408. set {point.red} to 0
  409. set {point.blue} to 0
  410. set {state} to 1
  411. execute command "/count %arg 2%"
  412. if arg 1 is "eiko":
  413. broadcast "&6&lゲームモード: &c&l栄&b&l光&c&lの&b&l架&c&l橋"
  414. set {game} to "eiko"
  415. loop all players:
  416. remove all items from loop-player's inventory
  417. if {shot.%loop-player%} is "red":
  418. teleport loop-player to {tp.red}
  419. execute command "/gamemode 2 %loop-player%"
  420. execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
  421. execute command "/give %loop-player% minecraft:arrow 1 0"
  422. execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
  423. execute command "/give %loop-player% minecraft:stick 1 0 {display:{Name:""&4&lレーザーポインター""}}"
  424. if {vip.%player%} is 1:
  425. execute command "/give %loop-player% minecraft:snowball 16 0"
  426. else if {shot.%loop-player%} is "blue":
  427. teleport loop-player to {tp.blue}
  428. execute command "/gamemode 2 %loop-player%"
  429. execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
  430. execute command "/give %loop-player% minecraft:arrow 1 0"
  431. execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
  432. execute command "/give %loop-player% minecraft:stick 1 0 {display:{Name:""&4&lレーザーポインター""}}"
  433. if {vip.%player%} is 1:
  434. execute command "/give %loop-player% minecraft:snowball 16 0"
  435. else if arg 1 is "paint":
  436. broadcast "&6&lゲームモード: &c&lP&b&lA&c&lI&b&lN&c&lT&b&lI&c&lA"
  437. set {game} to "paint"
  438. loop all players:
  439. if {shot.%loop-player%} is "red" or "blue":
  440. teleport loop-player to {tp.shot}
  441. remove all items from loop-player's inventory
  442. if {shot.%loop-player%} is "red":
  443. execute command "/gamemode 2 %loop-player%"
  444. execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
  445. execute command "/give %loop-player% minecraft:arrow 1 0"
  446. else if {shot.%loop-player%} is "blue":
  447. execute command "/gamemode 2 %loop-player%"
  448. execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1,ench:[{id:51,lvl:1}]}"
  449. execute command "/give %loop-player% minecraft:arrow 1 0"
  450.  
  451. on chat:
  452. if {state} is 1:
  453. if message contains "$":
  454. if {shot.%player%} is "red":
  455. cancel event
  456. broadcast "&c%player%: %message%"
  457. else if {shot.%player%} is "blue":
  458. cancel event
  459. broadcast "&b%player%: %message%"
  460. else:
  461. loop all players:
  462. if {shot.%player%} is "red":
  463. if {shot.%loop-player%} is "red":
  464. cancel event
  465. send "&c%player%: %message%" to loop-player
  466. else if {shot.%player%} is "blue":
  467. if {shot.%loop-player%} is "blue":
  468. cancel event
  469. send "&b%player%: %message%" to loop-player
  470.  
  471. command /tt <player>:
  472. permission: op
  473. trigger:
  474. send "%arg%の値は%{shot.%arg%}%です"
  475.  
  476. command /count <int>:
  477. permission: op
  478. trigger:
  479. set {_countdown} to arg
  480. loop arg times:
  481. wait 1 seconds
  482. set {_countdown} to {_countdown} - 1
  483. set {time} to {_countdown}
  484. if {game} is "eiko":
  485. execute command "/title @a actionbar {""text"":""&e&lゲームモード: 栄光の架橋 残り時間:%{time}% &c&l%{point.red}% &7&l- &b&l%{point.blue}%""}"
  486. else if {game} is "paint":
  487. execute command "/title @a actionbar {""text"":""&e&lゲームモード: PAINTIA 残り時間:%{time}%""}"
  488. execute command "/title @a actionbar {""text"":""&6&l終了!""}"
  489. execute command "/eikostop"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement