kjfalkeiae

栄光の架橋-clone

Aug 29th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 break of red wool:
  15. if {shot.%player%} is "blue":
  16. cancel event
  17.  
  18. on break of blue wool:
  19. if {shot.%player%} is "red":
  20. cancel event
  21.  
  22. on shoot:
  23. set {plx} to floor(x-coordinate of location of shooter)
  24. set {ply} to floor(y-coordinate of location of shooter)
  25. set {plz} to floor(z-coordinate of location of shooter)
  26. {plx} is more than -23
  27. {plx} is less than 35
  28. {ply} is more than 68
  29. {ply} is less than 92
  30. {plz} is more than -30
  31. {plz} is less than -24
  32. cancel event
  33.  
  34. command /close:
  35. permission: op
  36. trigger:
  37. execute command "/fill 85 93 -27 85 91 -26 minecraft:glass"
  38. execute command "/fill 85 93 -23 85 91 -22 minecraft:glass"
  39.  
  40. command /opend:
  41. permission: op
  42. trigger:
  43. execute command "/fill 85 93 -27 85 91 -26 minecraft:air"
  44. execute command "/fill 85 93 -23 85 91 -22 minecraft:air"
  45.  
  46. command /settuto:
  47. permission: op
  48. trigger:
  49. set {tp.lobby} to location of player
  50. message "チュートリアルの場所を%{tp.lobby}%に設定しました"
  51.  
  52. command /setlob:
  53. permission: op
  54. trigger:
  55. set {tp.lobby} to location of player
  56. message "ロビーの場所を%{tp.lobby}%に設定しました"
  57.  
  58. command /setred:
  59. permission: op
  60. trigger:
  61. set {tp.red} to location of player
  62. message "赤チームの場所を%{tp.red}%に設定しました"
  63.  
  64. command /setblue:
  65. permission: op
  66. trigger:
  67. set {tp.blue} to location of player
  68. message "青チームの場所を%{tp.blue}%に設定しました"
  69.  
  70. command /setshot:
  71. permission: op
  72. trigger:
  73. set {tp.shot} to location of player
  74. message "射撃主の場所を%{tp.shot}%に設定しました"
  75.  
  76. command /tabsetting <player> <int>:
  77. permission: owner.sk
  78. trigger:
  79. set {tab.%arg 1%} to arg 2
  80.  
  81. command /pteam <player> [<text>]:
  82. permission: op
  83. trigger:
  84. if arg 2 is "red":
  85. set {shot.%arg 1%} to arg 2
  86. execute command "/tabsetting %arg 1% 1"
  87. else if arg 2 is "blue":
  88. set {shot.%arg 1%} to arg 2
  89. execute command "/tabsetting %arg 1% 2"
  90.  
  91. on walking on red wool:
  92. if {shot.%player%} is "blue":
  93. teleport player to {tp.blue}
  94.  
  95. on walking on blue wool:
  96. if {shot.%player%} is "red":
  97. teleport player to {tp.red}
  98.  
  99. on walking on magenta concrete:
  100. if {shot.%player%} is "red":
  101. teleport player to {tp.red}
  102. else if {shot.%player%} is "blue":
  103. teleport player to {tp.blue}
  104.  
  105. on walking on red concrete:
  106. if {state} is 1:
  107. if {shot.%player%} is "blue":
  108. teleport player to {tp.blue}
  109. set {point.blue} to {point.blue} + 1
  110. broadcast "&b青&6チームの%player%さんがゴールしました!"
  111. execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 11"
  112.  
  113. on walking on blue concrete:
  114. if {state} is 1:
  115. if {shot.%player%} is "red":
  116. teleport player to {tp.red}
  117. set {point.red} to {point.red} + 1
  118. broadcast "&c赤&6チームの%player%さんがゴールしました!"
  119. execute command "/fill -17 90 -28 29 70 -28 minecraft:air 0 replace minecraft:wool 14"
  120.  
  121. on walking on light blue glass:
  122. if {shot.%player%} is "red":
  123. execute command "/tp %player% -19 85 -27"
  124.  
  125. on walking on blue stained glass:
  126. if {shot.%player%} is "red":
  127. execute command "/tp %player% -16 86 -13"
  128.  
  129. on walking on pink stained glass:
  130. if {shot.%player%} is "blue":
  131. execute command "/tp %player% 31 85 -27"
  132.  
  133. on walking on red glass block:
  134. if {shot.%player%} is "blue":
  135. execute command "/tp %player% 28 86 -13"
  136.  
  137. on walking on orange glass:
  138. if {shot.%player%} is "blue":
  139. execute command "/tp %player% 28 75 -13"
  140.  
  141. on walking on yellow glass:
  142. if {shot.%player%} is "blue":
  143. execute command "/tp %player% 30 75 -27"
  144.  
  145. on walking on dark green glass:
  146. if {shot.%player%} is "red":
  147. execute command "/tp %player% -16 75 -13"
  148.  
  149. on walking on light green stained glass block:
  150. if {shot.%player%} is "red":
  151. execute command "/tp %player% -19 75 -27"
  152.  
  153. on walking on light blue wool:
  154. if {state} is 0:
  155. if {shot.%player%} is not "blue":
  156. execute command "/pteam %player% blue"
  157. send "&6あなたは&b青&6チームです!" to player
  158.  
  159. on walking on pink wool block:
  160. if {state} is 0:
  161. if {shot.%player%} is not "red":
  162. execute command "/pteam %player% red"
  163. send "&6あなたは&c赤&6チームです!" to player
  164.  
  165. command /cc:
  166. permission: op
  167. trigger:
  168. execute command "/fill 28 70 -26 -16 89 -28 air"
  169.  
  170. options:
  171. red: red wool
  172. blue: blue wool
  173. air: air
  174.  
  175. on projectile hit:
  176. kill event-entity
  177. set {_hitx} to floor(x-coordinate of location of projectile)
  178. set {_hity} to floor(y-coordinate of location of projectile)
  179. set {_hitz} to floor(z-coordinate of location of projectile)
  180. set {_hitpoint} to location of projectile
  181. set {_block} to the block at location 1 in front of the projectile
  182. {_hitx} is more than -17
  183. {_hitx} is less than 29
  184. {_hity} is more than 69
  185. {_hity} is less than 90
  186. {_hitz} is more than -29
  187. {_hitz} is less than -25
  188. if {shot.%shooter%} is "red":
  189. if {_block} is blue wool:
  190. set the block at {_block} to {@air}
  191. else if {_block} is air:
  192. set the block at {_block} to {@red}
  193. else:
  194. set block at {_hitpoint} to {@red}
  195.  
  196. else if {shot.%shooter%} is "blue":
  197. if {_block} is red wool block:
  198. set the block at {_block} to {@air}
  199. else if {_block} is air:
  200. set the block at {_block} to {@blue}
  201. else:
  202. set block at {_hitpoint} to {@blue}
  203.  
  204. command /team:
  205. trigger:
  206. set {red} and {blue} to 0
  207. loop all players:
  208. if {red} is more than {blue}:
  209. add 1 to {blue}
  210. set {shot.%loop-player%} to "blue"
  211. send "&6あなたは&b青&6チームです!" to loop-player
  212. execute command "/tabsetting %loop-player% 2"
  213. else:
  214. add 1 to {red}
  215. set {shot.%loop-player%} to "red"
  216. send "&6あなたは&c赤&6チームです!" to loop-player
  217. execute command "/tabsetting %loop-player% 1"
  218. wait a tick
  219.  
  220. every 2 seconds:
  221. loop all players:
  222. set loop-player's food level to 10
  223. if {tab.%loop-player%} is 0:
  224. set loop-player's tab list name to "<white>%loop-player%"
  225. else if {tab.%loop-player%} is 1:
  226. set loop-player's tab list name to "<red>%loop-player%"
  227. else if {tab.%loop-player%} is 2:
  228. set loop-player's tab list name to "<blue>%loop-player%"
  229. if {state} is 1:
  230. if {shot.%loop-player%} is "red" or "blue":
  231. execute command "/give %loop-player% minecraft:arrow 1 0"
  232.  
  233. on death:
  234. set player's health to player's max health
  235.  
  236. command /eiko [<text>] [<int>]:
  237. permission: op
  238. trigger:
  239. if arg 1 is "start":
  240. broadcast "&6&lゲームを始めます!"
  241. set {state} to 1
  242. execute command "/count %arg 2%"
  243. delete {point.red}
  244. delete {point.blue}
  245. set {point.red} to 0
  246. set {point.blue} to 0
  247. loop all players:
  248. if {shot.%loop-player%} is "red":
  249. teleport loop-player to {tp.red}
  250. execute command "/gamemode 2 %loop-player%"
  251. execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1}"
  252. execute command "/give %loop-player% minecraft:arrow 5 0"
  253. execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
  254. else if {shot.%loop-player%} is "blue":
  255. teleport loop-player to {tp.blue}
  256. execute command "/gamemode 2 %loop-player%"
  257. execute command "/give %loop-player% minecraft:bow 1 0 {Unbreakable:1}"
  258. execute command "/give %loop-player% minecraft:arrow 5 0"
  259. execute command "/give %loop-player% minecraft:shears 1 0 {CanDestroy:[""minecraft:wool""],Unbreakable:1}"
  260.  
  261. if arg 1 is "stop":
  262. broadcast "&6&lゲームを終了します"
  263. set {state} to 0
  264. loop all players:
  265. teleport loop-player to {tp.lobby}
  266. execute command "/gamemode 2 %loop-player%"
  267. remove all items from loop-player's inventory
  268. delete {shot.%loop-player%}
  269. execute command "/tabsetting %loop-player% 0"
  270. execute command "/opend"
  271. broadcast "&c赤&6チームの得点は、&c%{point.red}%点です!"
  272. broadcast "&b青&6チームの得点は、&b%{point.blue}%点です!"
  273. if {point.red} is more than {point.blue}:
  274. broadcast "&c赤&6チームの方が得点が多かったため、&c赤&6チームの勝利!"
  275. else if {point.red} is less than {point.blue}:
  276. broadcast "&b青&6チームの方が得点が多かったため、&b青&6チームの勝利!"
  277. else:
  278. broadcast "&6両チームとも同じ点数だったため、引き分け!"
  279. delete {point.red}
  280. delete {point.blue}
  281.  
  282. on chat:
  283. if {state} is 1:
  284. if message contains "$":
  285. if {shot.%player%} is "red":
  286. cancel event
  287. broadcast "&c%player%: %message%"
  288. else if {shot.%player%} is "blue":
  289. cancel event
  290. broadcast "&b%player%: %message%"
  291. else:
  292. loop all players:
  293. if {shot.%player%} is "red":
  294. if {shot.%loop-player%} is "red":
  295. cancel event
  296. send "&c%player%: %message%" to loop-player
  297. else if {shot.%player%} is "blue":
  298. if {shot.%loop-player%} is "blue":
  299. cancel event
  300. send "&b%player%: %message%" to loop-player
  301.  
  302. command /tt <player>:
  303. permission: op
  304. trigger:
  305. send "%arg%の値は%{shot.%arg%}%です"
  306.  
  307. command /count <int>:
  308. permission: op
  309. trigger:
  310. set {_countdown} to arg
  311. loop arg times:
  312. wait 1 seconds
  313. set {_countdown} to {_countdown} - 1
  314. set {time} to {_countdown}
  315. execute command "/title @a actionbar {""text"":""&e&l残り時間:%{time}%""}"
  316. execute command "/title @a actionbar {""text"":""&6&l終了!""}"
  317. execute command "/eiko stop"
Add Comment
Please, Sign In to add comment