dai_pon

Untitled

Mar 11th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.62 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. set {_loop1} to 0
  14. loop 10 times:
  15. format slot {_loop1} {@none}
  16. add 1 to {_loop1}
  17. set {_loop2} to 36
  18. loop 10 times:
  19. format slot {_loop2} {@none}
  20. add 1 to {_loop2}
  21. if player has permission "sk.ak47":
  22. format slot 10 of player with gold shovel named "&8AK-47" to close then run [execute player command "/ak"]
  23. else:
  24. format slot 10 {@locked}
  25. stop
  26. if player has permission "sk.m16":
  27. format slot 11 of player with wood axe named "&8M16" to close then run [execute player command "/m16"]
  28. else:
  29. format slot 11 {@locked}
  30. stop
  31. if player has permission "sk.ots":
  32. format slot 12 of player with gold shovel named "&8Ots-14" to close then run [execute player command "/ots"]
  33. else:
  34. format slot 12 {@locked}
  35. stop
  36. if player has permission "sk.galil":
  37. format slot 13 of player with prismarine shard named "&8Galil" to close then run [execute player command "/galil"]
  38. else:
  39. format slot 13 {@locked}
  40. stop
  41. if player has permission "sk.aug":
  42. format slot 14 of player with rabbit hide named "&8Aug" to close then run [execute player command "/aug"]
  43. else:
  44. format slot 14 {@locked}
  45. stop
  46. if player has permission "sk.aks":
  47. format slot 15 of player with prismarine shard named "&8AKS-74U" to close then run [execute player command "/aks"]
  48. else:
  49. format slot 15 {@locked}
  50. stop
  51. if player has permission "sk.m1":
  52. format slot 16 of player with prismarine shard named "&8M1-Garand" to close then run [execute player command "/m1"]
  53. else:
  54. format slot 16 {@locked}
  55. stop
  56. if player has permission "sk.camrs":
  57. format slot 19 of player with prismarine shard named "&8CAMRS" to close then run [execute player command "/camrs"]
  58. else:
  59. format slot 19 {@locked}
  60. stop
  61. if player has permission "sk.scar":
  62. format slot 20 of player with prismarine shard named "&8SCAR-L" to close then run [execute player command "/scar"]
  63. else:
  64. format slot 20 {@locked}
  65. stop
  66. if player has permission "sk.galil":
  67. format slot 21 of player with prismarine shard named "&8Bumblebee" to close then run [execute player command "/bum"]
  68. else:
  69. format slot 21 {@locked}
  70. stop
  71. if player has permission "sk.sfw":
  72. format slot 22 of player with prismarine shard named "&8C8-SFW" to close then run [execute player command "/sfw"]
  73. else:
  74. format slot 22 {@locked}
  75. stop
  76. if player has permission "sk.x95":
  77. format slot 23 of player with prismarine shard named "&8X95" to close then run [execute player command "/x95"]
  78. else:
  79. format slot 23 {@locked}
  80. stop
  81. on right click holding book:
  82. name of held item contains "&e解放の書1"
  83. execute console command "pex user %player% add sk.ak47"
  84. set {_location} to location of player
  85. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  86. send "&9>>> &e武器を開放しました!"
  87. on right click holding book:
  88. name of held item contains "&e解放の書2"
  89. execute console command "pex user %player% add sk.m16"
  90. set {_location} to location of player
  91. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 0.7 at {_location}
  92. send "&9>>> &e武器を開放しました!"
  93. command /ak:
  94. permission: sk.ak47
  95. trigger:
  96. set {_location} to location of player
  97. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  98. send "&9>>> &a武器を選択しました!"
  99. make console execute command "/scoreboard players set %player% main 7"
  100. make player execute command "/custom"
  101. command /m16:
  102. permission: sk.m16
  103. trigger:
  104. set {_location} to location of player
  105. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  106. send "&9>>> &a武器を選択しました!"
  107. make console execute command "/scoreboard players set %player% main 9"
  108. make player execute command "/custom"
  109. command /ots:
  110. permission: sk.ots
  111. trigger:
  112. set {_location} to location of player
  113. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  114. send "&9>>> &a武器を選択しました!"
  115. make console execute command "/scoreboard players set %player% main 8"
  116. make player execute command "/custom"
  117. command /galil:
  118. permission: sk.galil
  119. trigger:
  120. set {_location} to location of player
  121. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  122. send "&9>>> &a武器を選択しました!"
  123. make console execute command "/scoreboard players set %player% main 10"
  124. make player execute command "/custom"
  125. command /aug:
  126. permission: sk.aug
  127. trigger:
  128. set {_location} to location of player
  129. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  130. send "&9>>> &a武器を選択しました!"
  131. make console execute command "/scoreboard players set %player% main 11"
  132. make player execute command "/custom"
  133. command /aks:
  134. permission: sk.aks
  135. trigger:
  136. set {_location} to location of player
  137. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  138. send "&9>>> &a武器を選択しました!"
  139. make console execute command "/scoreboard players set %player% main 12"
  140. make player execute command "/custom"
  141. command /m1:
  142. permission: sk.m1
  143. trigger:
  144. set {_location} to location of player
  145. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  146. send "&9>>> &a武器を選択しました!"
  147. make console execute command "/scoreboard players set %player% main 27"
  148. make player execute command "/custom"
  149. command /camrs:
  150. permission: sk.camrs
  151. trigger:
  152. set {_location} to location of player
  153. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  154. send "&9>>> &a武器を選択しました!"
  155. make console execute command "/scoreboard players set %player% main 29"
  156. make player execute command "/custom"
  157. command /scar:
  158. permission: sk.scar
  159. trigger:
  160. set {_location} to location of player
  161. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  162. send "&9>>> &a武器を選択しました!"
  163. make console execute command "/scoreboard players set %player% main 30"
  164. make player execute command "/custom"
  165. command /bum:
  166. permission: sk.bum
  167. trigger:
  168. set {_location} to location of player
  169. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  170. send "&9>>> &a武器を選択しました!"
  171. make console execute command "/scoreboard players set %player% main 39"
  172. make player execute command "/custom"
  173. command /sfw:
  174. permission: sk.sfw
  175. trigger:
  176. set {_location} to location of player
  177. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  178. send "&9>>> &a武器を選択しました!"
  179. make console execute command "/scoreboard players set %player% main 41"
  180. make player execute command "/custom"
  181. command /x95:
  182. permission: sk.x95
  183. trigger:
  184. set {_location} to location of player
  185. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  186. send "&9>>> &a武器を選択しました!"
  187. make console execute command "/scoreboard players set %player% main 42"
  188. make player execute command "/custom"
Add Comment
Please, Sign In to add comment