Advertisement
dai_pon

worldguard

Mar 12th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.80 KB | None | 0 0
  1. Options:
  2. none: of player with black stained glass pane named "&7." to close
  3. locked: of player with red concrete named "&c未開放" to close
  4. command /custom:
  5. trigger:
  6. open chest with 6 row named "武器の選択" to player
  7. wait 1 ticks
  8. format slot 17 of player with black stained glass pane named "&7." to close
  9. format slot 26 of player with black stained glass pane named "&7." to close
  10. format slot 35 of player with black stained glass pane named "&7." to close
  11. format slot 18 of player with black stained glass pane named "&7." to close
  12. format slot 27 of player with black stained glass pane named "&7." to close
  13. format slot 24 of player with red concrete named "&7未開放" to close
  14. format slot 25 of player with red concrete named "&7未開放" to close
  15. format slot 34 of player with red concrete named "&7未開放" to close
  16. set {_loop1} to 0
  17. loop 10 times:
  18. format slot {_loop1} {@none}
  19. add 1 to {_loop1}
  20. set {_loop2} to 36
  21. loop 10 times:
  22. format slot {_loop2} {@none}
  23. add 1 to {_loop2}
  24. set {_loop3} to 28
  25. loop 6 times:
  26. format slot {_loop3} {@locked}
  27. add 1 to {_loop3}
  28. if player has permission "sk.ak47":
  29. format slot 10 of player with gold shovel named "&8AK-47" to close then run [execute player command "/ak"]
  30. else:
  31. format slot 10 {@locked}
  32. stop
  33. if player has permission "sk.m16":
  34. format slot 11 of player with wood axe named "&8M16" to close then run [execute player command "/m16"]
  35. else:
  36. format slot 11 {@locked}
  37. stop
  38. if player has permission "sk.ots":
  39. format slot 12 of player with gold shovel named "&8Ots-14" to close then run [execute player command "/ots"]
  40. else:
  41. format slot 12 {@locked}
  42. stop
  43. if player has permission "sk.galil":
  44. format slot 13 of player with prismarine shard named "&8Galil" to close then run [execute player command "/galil"]
  45. else:
  46. format slot 13 {@locked}
  47. stop
  48. if player has permission "sk.aug":
  49. format slot 14 of player with rabbit hide named "&8Aug" to close then run [execute player command "/aug"]
  50. else:
  51. format slot 14 {@locked}
  52. stop
  53. if player has permission "sk.aks":
  54. format slot 15 of player with record wait named "&8AKS-74U" to close then run [execute player command "/aks"]
  55. else:
  56. format slot 15 {@locked}
  57. stop
  58. if player has permission "sk.m1":
  59. format slot 16 of player with record mellohi named "&8M1-Garand" to close then run [execute player command "/m1"]
  60. else:
  61. format slot 16 {@locked}
  62. stop
  63. if player has permission "sk.camrs":
  64. format slot 19 of player with stone axe named "&8CAMRS" to close then run [execute player command "/camrs"]
  65. else:
  66. format slot 19 {@locked}
  67. stop
  68. if player has permission "sk.scar":
  69. format slot 20 of player with wheat named "&8SCAR-L" to close then run [execute player command "/scar"]
  70. else:
  71. format slot 20 {@locked}
  72. stop
  73. if player has permission "sk.galil":
  74. format slot 21 of player with record mall named "&8Bumblebee" to close then run [execute player command "/bum"]
  75. else:
  76. format slot 21 {@locked}
  77. stop
  78. if player has permission "sk.sfw":
  79. format slot 22 of player with wood pickaxe named "&8C8-SFW" to close then run [execute player command "/sfw"]
  80. else:
  81. format slot 22 {@locked}
  82. stop
  83. if player has permission "sk.x95":
  84. format slot 23 of player with string named "&8X95" to close then run [execute player command "/x95"]
  85. else:
  86. format slot 23 {@locked}
  87. stop
  88. on right click holding book:
  89. name of held item contains "&e解放の書1"
  90. execute console command "pex user %player% add sk.ak47"
  91. set {_location} to location of player
  92. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  93. send "&9>>> &e武器を開放しました!"
  94. remove 1 of player's held item from the player's inventory
  95. on right click holding book:
  96. name of held item contains "&e解放の書2"
  97. execute console command "pex user %player% add sk.m16"
  98. set {_location} to location of player
  99. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  100. send "&9>>> &e武器を開放しました!"
  101. remove 1 of player's held item from the player's inventory
  102. on right click holding book:
  103. name of held item contains "&e解放の書3"
  104. execute console command "pex user %player% add sk.m16"
  105. set {_location} to location of player
  106. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  107. send "&9>>> &e武器を開放しました!"
  108. remove 1 of player's held item from the player's inventory
  109. on right click holding book:
  110. name of held item contains "&e解放の書4"
  111. execute console command "pex user %player% add sk.galil"
  112. set {_location} to location of player
  113. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  114. send "&9>>> &e武器を開放しました!"
  115. remove 1 of player's held item from the player's inventory
  116. on right click holding book:
  117. name of held item contains "&e解放の書5"
  118. execute console command "pex user %player% add sk.aug"
  119. set {_location} to location of player
  120. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  121. send "&9>>> &e武器を開放しました!"
  122. remove 1 of player's held item from the player's inventory
  123. on right click holding book:
  124. name of held item contains "&e解放の書6"
  125. execute console command "pex user %player% add sk.aks"
  126. set {_location} to location of player
  127. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  128. send "&9>>> &e武器を開放しました!"
  129. remove 1 of player's held item from the player's inventory
  130. on right click holding book:
  131. name of held item contains "&e解放の書7"
  132. execute console command "pex user %player% add sk.m1"
  133. set {_location} to location of player
  134. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  135. send "&9>>> &e武器を開放しました!"
  136. remove 1 of player's held item from the player's inventory
  137. on right click holding book:
  138. name of held item contains "&e解放の書8"
  139. execute console command "pex user %player% add sk.camrs"
  140. set {_location} to location of player
  141. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  142. send "&9>>> &e武器を開放しました!"
  143. remove 1 of player's held item from the player's inventory
  144. on right click holding book:
  145. name of held item contains "&e解放の書9"
  146. execute console command "pex user %player% add sk.scar"
  147. set {_location} to location of player
  148. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  149. send "&9>>> &e武器を開放しました!"
  150. remove 1 of player's held item from the player's inventory
  151. on right click holding book:
  152. name of held item contains "&e解放の書10"
  153. execute console command "pex user %player% add sk.bum"
  154. set {_location} to location of player
  155. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  156. send "&9>>> &e武器を開放しました!"
  157. remove 1 of player's held item from the player's inventory
  158. on right click holding book:
  159. name of held item contains "&e解放の書11"
  160. execute console command "pex user %player% add sk.sfw"
  161. set {_location} to location of player
  162. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  163. send "&9>>> &e武器を開放しました!"
  164. remove 1 of player's held item from the player's inventory
  165. on right click holding book:
  166. name of held item contains "&e解放の書12"
  167. execute console command "pex user %player% add sk.x95"
  168. set {_location} to location of player
  169. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  170. send "&9>>> &e武器を開放しました!"
  171. remove 1 of player's held item from the player's inventory
  172. command /ak:
  173. permission: sk.ak47
  174. trigger:
  175. set {_location} to location of player
  176. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  177. send "&9>>> &a武器を選択しました!"
  178. make console execute command "/scoreboard players set %player% main 7"
  179. make player execute command "/custom"
  180. command /m16:
  181. permission: sk.m16
  182. trigger:
  183. set {_location} to location of player
  184. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  185. send "&9>>> &a武器を選択しました!"
  186. make console execute command "/scoreboard players set %player% main 9"
  187. make player execute command "/custom"
  188. command /ots:
  189. permission: sk.ots
  190. trigger:
  191. set {_location} to location of player
  192. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  193. send "&9>>> &a武器を選択しました!"
  194. make console execute command "/scoreboard players set %player% main 8"
  195. make player execute command "/custom"
  196. command /galil:
  197. permission: sk.galil
  198. trigger:
  199. set {_location} to location of player
  200. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  201. send "&9>>> &a武器を選択しました!"
  202. make console execute command "/scoreboard players set %player% main 10"
  203. make player execute command "/custom"
  204. command /aug:
  205. permission: sk.aug
  206. trigger:
  207. set {_location} to location of player
  208. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  209. send "&9>>> &a武器を選択しました!"
  210. make console execute command "/scoreboard players set %player% main 11"
  211. make player execute command "/custom"
  212. command /aks:
  213. permission: sk.aks
  214. trigger:
  215. set {_location} to location of player
  216. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  217. send "&9>>> &a武器を選択しました!"
  218. make console execute command "/scoreboard players set %player% main 12"
  219. make player execute command "/custom"
  220. command /m1:
  221. permission: sk.m1
  222. trigger:
  223. set {_location} to location of player
  224. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  225. send "&9>>> &a武器を選択しました!"
  226. make console execute command "/scoreboard players set %player% main 27"
  227. make player execute command "/custom"
  228. command /camrs:
  229. permission: sk.camrs
  230. trigger:
  231. set {_location} to location of player
  232. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  233. send "&9>>> &a武器を選択しました!"
  234. make console execute command "/scoreboard players set %player% main 29"
  235. make player execute command "/custom"
  236. command /scar:
  237. permission: sk.scar
  238. trigger:
  239. set {_location} to location of player
  240. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  241. send "&9>>> &a武器を選択しました!"
  242. make console execute command "/scoreboard players set %player% main 30"
  243. make player execute command "/custom"
  244. command /bum:
  245. permission: sk.bum
  246. trigger:
  247. set {_location} to location of player
  248. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  249. send "&9>>> &a武器を選択しました!"
  250. make console execute command "/scoreboard players set %player% main 39"
  251. make player execute command "/custom"
  252. command /sfw:
  253. permission: sk.sfw
  254. trigger:
  255. set {_location} to location of player
  256. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  257. send "&9>>> &a武器を選択しました!"
  258. make console execute command "/scoreboard players set %player% main 41"
  259. make player execute command "/custom"
  260. command /x95:
  261. permission: sk.x95
  262. trigger:
  263. set {_location} to location of player
  264. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  265. send "&9>>> &a武器を選択しました!"
  266. make console execute command "/scoreboard players set %player% main 42"
  267. make player execute command "/custom"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement