taktie0304

Untitled

Dec 25th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.05 KB | None | 0 0
  1. command /set [<number>]:
  2. permission: skript.admin
  3. trigger:
  4. if arg-1 >= 1:
  5. if arg-1 <= 25:
  6. set {%arg-1%.location} to location of target block
  7. send "&a%{%arg-1%.location}% のチェストを %arg-1% 番に設定しました"
  8. else:
  9. send "&c1~25にしてください"
  10. else:
  11. send "&c1~25にしてください"
  12.  
  13.  
  14. command /reset [<offline player>]:
  15. permission: skript.admin
  16. trigger:
  17. if arg-1 is set:
  18. delete {1.%arg-1%}
  19. delete {2.%arg-1%}
  20. delete {3.%arg-1%}
  21. delete {4.%arg-1%}
  22. delete {5.%arg-1%}
  23. delete {6.%arg-1%}
  24. delete {7.%arg-1%}
  25. delete {8.%arg-1%}
  26. delete {9.%arg-1%}
  27. delete {10.%arg-1%}
  28. delete {11.%arg-1%}
  29. delete {12.%arg-1%}
  30. delete {13.%arg-1%}
  31. delete {14.%arg-1%}
  32. delete {15.%arg-1%}
  33. delete {16.%arg-1%}
  34. delete {17.%arg-1%}
  35. delete {18.%arg-1%}
  36. delete {19.%arg-1%}
  37. delete {20.%arg-1%}
  38. delete {21.%arg-1%}
  39. delete {22.%arg-1%}
  40. delete {23.%arg-1%}
  41. delete {24.%arg-1%}
  42. delete {25.%arg-1%}
  43. set {brokeamount.%arg-1%} to 0
  44. send "&a%arg-1% の壊した記録を削除しました" to player
  45. if arg-1 is not set:
  46. set block at {1.location} to chest
  47. set block at {2.location} to chest
  48. set block at {3.location} to chest
  49. set block at {4.location} to chest
  50. set block at {5.location} to chest
  51. set block at {6.location} to chest
  52. set block at {7.location} to chest
  53. set block at {8.location} to chest
  54. set block at {9.location} to chest
  55. set block at {10.location} to chest
  56. set block at {11.location} to chest
  57. set block at {12.location} to chest
  58. set block at {13.location} to chest
  59. set block at {14.location} to chest
  60. set block at {15.location} to chest
  61. set block at {16.location} to chest
  62. set block at {17.location} to chest
  63. set block at {18.location} to chest
  64. set block at {19.location} to chest
  65. set block at {20.location} to chest
  66. set block at {21.location} to chest
  67. set block at {22.location} to chest
  68. set block at {23.location} to chest
  69. set block at {24.location} to chest
  70. set block at {25.location} to chest
  71. send "&aチェストを復元しました" to player
  72.  
  73.  
  74. on first join:
  75. set {brokeamount.%player%} to 0
  76.  
  77.  
  78. command /present:
  79. trigger:
  80. send "&eプレゼントの入手数 &6%{brokeamount.%player%}%&e/25"
  81.  
  82.  
  83. on break of chest:
  84. if event-location == {1.location}:
  85. if {1.%player%} is not set:
  86. add 1 to {brokeamount.%player%}
  87. set {1.%player%} to true
  88. else if {1.%player%} is true:
  89. cancel event
  90. send "&cすでに破壊済みです。"
  91. if event-location == {2.location}:
  92. if {2.%player%} is not set:
  93. add 1 to {brokeamount.%player%}
  94. set {2.%player%} to true
  95. else if {2.%player%} is true:
  96. cancel event
  97. send "&cすでに破壊済みです。"
  98. if event-location == {3.location}:
  99. if {3.%player%} is not set:
  100. add 1 to {brokeamount.%player%}
  101. set {3.%player%} to true
  102. else if {3.%player%} is true:
  103. cancel event
  104. send "&cすでに破壊済みです。"
  105. if event-location == {4.location}:
  106. if {4.%player%} is not set:
  107. add 1 to {brokeamount.%player%}
  108. set {4.%player%} to true
  109. else if {4.%player%} is true:
  110. cancel event
  111. send "&cすでに破壊済みです。"
  112. if event-location == {5.location}:
  113. if {5.%player%} is not set:
  114. add 1 to {brokeamount.%player%}
  115. set {5.%player%} to true
  116. else if {5.%player%} is true:
  117. cancel event
  118. send "&cすでに破壊済みです。"
  119. if event-location == {6.location}:
  120. if {6.%player%} is not set:
  121. add 1 to {brokeamount.%player%}
  122. set {6.%player%} to true
  123. else if {6.%player%} is true:
  124. cancel event
  125. send "&cすでに破壊済みです。"
  126. if event-location == {7.location}:
  127. if {7.%player%} is not set:
  128. add 1 to {brokeamount.%player%}
  129. set {7.%player%} to true
  130. else if {7.%player%} is true:
  131. cancel event
  132. send "&cすでに破壊済みです。"
  133. if event-location == {8.location}:
  134. if {8.%player%} is not set:
  135. add 1 to {brokeamount.%player%}
  136. set {8.%player%} to true
  137. else if {8.%player%} is true:
  138. cancel event
  139. send "&cすでに破壊済みです。"
  140. if event-location == {9.location}:
  141. if {9.%player%} is not set:
  142. add 1 to {brokeamount.%player%}
  143. set {9.%player%} to true
  144. else if {9.%player%} is true:
  145. cancel event
  146. send "&cすでに破壊済みです。"
  147. if event-location == {10.location}:
  148. if {10.%player%} is not set:
  149. add 1 to {brokeamount.%player%}
  150. set {10.%player%} to true
  151. else if {10.%player%} is true:
  152. cancel event
  153. send "&cすでに破壊済みです。"
  154. if event-location == {11.location}:
  155. if {11.%player%} is not set:
  156. add 1 to {brokeamount.%player%}
  157. set {11.%player%} to true
  158. else if {11.%player%} is true:
  159. cancel event
  160. send "&cすでに破壊済みです。"
  161. if event-location == {12.location}:
  162. if {12.%player%} is not set:
  163. add 1 to {brokeamount.%player%}
  164. set {12.%player%} to true
  165. else if {12.%player%} is true:
  166. cancel event
  167. send "&cすでに破壊済みです。"
  168. if event-location == {13.location}:
  169. if {13.%player%} is not set:
  170. add 1 to {brokeamount.%player%}
  171. set {13.%player%} to true
  172. else if {13.%player%} is true:
  173. cancel event
  174. send "&cすでに破壊済みです。"
  175. if event-location == {14.location}:
  176. if {14.%player%} is not set:
  177. add 1 to {brokeamount.%player%}
  178. set {14.%player%} to true
  179. else if {14.%player%} is true:
  180. cancel event
  181. send "&cすでに破壊済みです。"
  182. if event-location == {15.location}:
  183. if {15.%player%} is not set:
  184. add 1 to {brokeamount.%player%}
  185. set {15.%player%} to true
  186. else if {15.%player%} is true:
  187. cancel event
  188. send "&cすでに破壊済みです。"
  189. if event-location == {16.location}:
  190. if {16.%player%} is not set:
  191. add 1 to {brokeamount.%player%}
  192. set {16.%player%} to true
  193. else if {16.%player%} is true:
  194. cancel event
  195. send "&cすでに破壊済みです。"
  196. if event-location == {17.location}:
  197. if {17.%player%} is not set:
  198. add 1 to {brokeamount.%player%}
  199. set {17.%player%} to true
  200. else if {17.%player%} is true:
  201. cancel event
  202. send "&cすでに破壊済みです。"
  203. if event-location == {18.location}:
  204. if {18.%player%} is not set:
  205. add 1 to {brokeamount.%player%}
  206. set {18.%player%} to true
  207. else if {18.%player%} is true:
  208. cancel event
  209. send "&cすでに破壊済みです。"
  210. if event-location == {19.location}:
  211. if {19.%player%} is not set:
  212. add 1 to {brokeamount.%player%}
  213. set {19.%player%} to true
  214. else if {19.%player%} is true:
  215. cancel event
  216. send "&cすでに破壊済みです。"
  217. if event-location == {20.location}:
  218. if {20.%player%} is not set:
  219. add 1 to {brokeamount.%player%}
  220. set {20.%player%} to true
  221. else if {20.%player%} is true:
  222. cancel event
  223. send "&cすでに破壊済みです。"
  224. if event-location == {21.location}:
  225. if {21.%player%} is not set:
  226. add 1 to {brokeamount.%player%}
  227. set {21.%player%} to true
  228. else if {21.%player%} is true:
  229. cancel event
  230. send "&cすでに破壊済みです。"
  231. if event-location == {22.location}:
  232. if {22.%player%} is not set:
  233. add 1 to {brokeamount.%player%}
  234. set {22.%player%} to true
  235. else if {22.%player%} is true:
  236. cancel event
  237. send "&cすでに破壊済みです。"
  238. if event-location == {23.location}:
  239. if {23.%player%} is not set:
  240. add 1 to {brokeamount.%player%}
  241. set {23.%player%} to true
  242. else if {23.%player%} is true:
  243. cancel event
  244. send "&cすでに破壊済みです。"
  245. if event-location == {24.location}:
  246. if {24.%player%} is not set:
  247. add 1 to {brokeamount.%player%}
  248. set {24.%player%} to true
  249. else if {24.%player%} is true:
  250. cancel event
  251. send "&cすでに破壊済みです。"
  252. if event-location == {25.location}:
  253. if {25.%player%} is not set:
  254. add 1 to {brokeamount.%player%}
  255. set {25.%player%} to true
  256. else if {25.%player%} is true:
  257. cancel event
  258. send "&cすでに破壊済みです。"
  259. if {brokeamount.%player%} == 25:
  260. give paper named "&aプレゼントを25集めきりました!" to player
Advertisement
Add Comment
Please, Sign In to add comment