Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.76 KB | None | 0 0
  1. #KurumiKitPVPserver 専用Skript 作 Kurumi1011
  2.  
  3.  
  4. #kit追加時にすること
  5. # menuの設定 kit番号をidにする
  6. # 処罰コマンド /aplostのkitの設定
  7. # set {%arg 1%.1} to false の部分を増やす
  8. # 職業選択・職業購入の欄を増やす
  9.  
  10.  
  11. #やること
  12. #/pvp の設定 [PVPspawn]
  13.  
  14.  
  15.  
  16. #定義づけ point
  17. variables:
  18. {%player%.point} = 0
  19. {%player%.rank} = 1
  20. {%player%.1} = false
  21. {%player%.2} = false
  22. {%player%.3} = false
  23. {%player%.4} = false
  24. {%player%.5} = false
  25. {%player%.6} = false
  26. {%player%.7} = false
  27. {%player%.8} = false
  28. {%player%.9} = false
  29. {%player%.10} = false
  30. {%player%.11} = false
  31. {%player%.12} = false
  32. {%player%.13} = false
  33. {%player%.14} = false
  34. {%player%.15} = false
  35. {%player%.16} = false
  36. {%player%.17} = false
  37. {%player%.18} = false
  38. {%player%.19} = false
  39. {%player%.20} = false
  40.  
  41.  
  42. #初ログイン時のコマンド
  43.  
  44. on join:
  45. command "/lobby %player%"
  46. command "/tp %player% 1195 46 208"
  47.  
  48.  
  49. #killした時の処理
  50. on death of player:
  51. if attacker is a player:
  52. message "&a&l+&e&l%{killpoint}%&a&lpoint" to attacker
  53. add {killpoint} to {%attacker%.point}
  54.  
  55. #---運営用コマンド---
  56.  
  57.  
  58. #運営用のhelp
  59. command /aphelp:
  60. trigger:
  61. player has permission "pvp.admin"
  62. message "&d----------------------------"
  63. message "&b&lKurumiKitPvPserver 運営用help"
  64. message "&b&l必要permission → pvp.admin"
  65. message "&d----------------------------"
  66. message "&e/aphelp &a...このhelpが出ます"
  67. message "&e/broadcast <message> &a...お知らせをします"
  68. message "&e/apkillpoint <数値>"
  69. message "&a ... killごとの入手pointの変更"
  70. message "&e/appa <player> <数値>"
  71. message "&a ... pointを増加させる"
  72. message "&e/apps <player> <数値>"
  73. message "&a ... pointを設定する"
  74. message "&e/appaall <数値>"
  75. message "&a ... 全員のpointを増加させる"
  76. message "&e/apkit <player> <数値> <true/false>"
  77. message "&a... playerのkitの購入状況を操作"
  78. message "&e/appar <数値>"
  79. message "&a ... 抽選で一名のpointの増加"
  80. message "&e/aplost <player> <kit/point>"
  81. message "&a ... Playerのkitまたはpointの消滅"
  82. message "&e/ar <player> <number>"
  83. message "&a ... Playerのrankの操作"
  84. message "&d----------------------------"
  85. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  86.  
  87. #お知らせ
  88. command /broadcast <text>:
  89. trigger:
  90. broadcast "&1-----------&b&lお知らせ&1-----------"
  91. broadcast "&a&l%arg 1%"
  92. broadcast "&1------------------------------"
  93.  
  94. #killごとの入手pointの変更コマンド
  95. command /apkillpoint <number>:
  96. trigger:
  97. player has permission "pvp.admin"
  98. set {killpoint} to arg 1
  99. broadcast "&b---&d&lお知らせ&b-----------------"
  100. broadcast "&e運営の&b&l%player%&eによって"
  101. broadcast "&ekillごとの入手pointが"
  102. broadcast "&e通常の&b&l%{killpoint}/100%倍&eである"
  103. broadcast "&b&l%arg 1%&eになりました!"
  104. broadcast "&b----------------------------"
  105. command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53 1.0"
  106.  
  107. #point変動コマンド
  108. command /appa <player> <number>:
  109. trigger:
  110. player has permission "pvp.admin"
  111. add arg 2 to {%arg 1%.point}
  112. broadcast "--------------------------"
  113. broadcast "&a運営の&e%player%&aによって"
  114. broadcast "&e%arg 1%&aさんのpointが"
  115. broadcast "&e%arg 2% &a増加しました"
  116. broadcast "--------------------------"
  117. message "&e&l%arg 2%point&b&l入手しました" to arg 1
  118. command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
  119.  
  120. command /apps <player> <number>:
  121. trigger:
  122. player has permission "pvp.admin"
  123. set {%arg 1%.point} to arg 2
  124. broadcast "--------------------------"
  125. broadcast "&a運営の&e%player%&aによって"
  126. broadcast "&e%arg 1%&aさんのpointが"
  127. broadcast "&e%arg 2% &aになりました"
  128. broadcast "--------------------------"
  129. message "&e&l%arg 2%point&b&lになりました" to arg 1
  130. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  131. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  132.  
  133. command /appaall <number>:
  134. trigger:
  135. player has permission "pvp.admin"
  136. loop all players:
  137. add arg 1 to {%loop-player%.point}
  138. broadcast "&b---&d&lお知らせ&b-----------------"
  139. broadcast "&e運営の&b&l%player%&eによって"
  140. broadcast "&b&lOnlinePlayer全員&eのpointが"
  141. broadcast "&b&l%arg 1% &e増加しました!!"
  142. broadcast "&b----------------------------"
  143. broadcast "&e&l%arg 1%point&b&l入手しました"
  144. command "/playsound minecraft:entity.player.levelup ambient %player% ~ ~ ~ 1.0 0.53 1.0"
  145.  
  146. #抽選point
  147. command /appar <number>:
  148. trigger:
  149. player has permission "pvp.admin"
  150. command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
  151. broadcast "&b---&d&lお知らせ&b-----------------"
  152. broadcast "&e運営の&b&l%player%&eによって"
  153. broadcast "&e抽選が始まります!"
  154. broadcast "&e報酬は&b&l%arg 1% point&eです!"
  155. broadcast "&e抽選を開始します!"
  156. broadcast "&b----------------------------"
  157. wait 2 seconds
  158. broadcast "&a."
  159. wait 2 seconds
  160. broadcast "&b.."
  161. wait 2 seconds
  162. broadcast "&e...!"
  163. wait 3 seconds
  164. set {tag} to random player out of all players
  165. add arg 1 to {%{tag}%.point}
  166. broadcast "&b---&d&l抽選結果&b-----------------"
  167. broadcast "&b&l%player%&e主催の抽選で"
  168. broadcast "&b&l%{tag}%&eのpointが"
  169. broadcast "&b&l%arg 1% &e増加しました!!"
  170. broadcast "&b----------------------------"
  171. message "&e&l%arg 1%point&b&l入手しました" to {tag}
  172. command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53 1.0"
  173.  
  174. #処罰
  175. command /aplost <player> <text>:
  176. trigger:
  177. player has permission "pvp.admin"
  178. if arg 2 is "point":
  179. set {%arg 1%.point} to 0
  180. command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
  181. broadcast "&4---&c&l処罰情報&4-------------"
  182. broadcast "&a運営の&e&l%player%&aによって"
  183. broadcast "&c&l%arg 1%&aのpointが"
  184. broadcast "&c0&aになりました"
  185. broadcast "&4--------------------------"
  186. if arg 2 is "kit":
  187. set {%arg 1%.1} to false
  188. set {%arg 1%.2} to false
  189. set {%arg 1%.3} to false
  190. set {%arg 1%.4} to false
  191. set {%arg 1%.5} to false
  192. set {%arg 1%.6} to false
  193. set {%arg 1%.7} to false
  194. set {%arg 1%.8} to false
  195. set {%arg 1%.9} to false
  196. set {%arg 1%.10} to false
  197. set {%arg 1%.11} to false
  198. set {%arg 1%.12} to false
  199. set {%arg 1%.13} to false
  200. set {%arg 1%.14} to false
  201. set {%arg 1%.15} to false
  202. set {%arg 1%.16} to false
  203. set {%arg 1%.17} to false
  204. set {%arg 1%.18} to false
  205. set {%arg 1%.19} to false
  206. set {%arg 1%.20} to false
  207. command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
  208. broadcast "&4---&c&l処罰情報&4-------------"
  209. broadcast "&a運営の&e&l%player%&aによって"
  210. broadcast "&c&l%arg 1%&aのkitが"
  211. broadcast "&cなくなりました"
  212. broadcast "&4--------------------------"
  213.  
  214. #kit操作
  215. command /apkit <player=%player%> <number> <text=true>:
  216. trigger:
  217. player has permission "pvp.admin"
  218. set {%arg 1%.%arg 2%} to arg 3
  219. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  220. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  221. broadcast "&b&l運営&e&l%player%&b&lによって &e&l%arg 1% の"
  222. broadcast "&b&lkit番号 &e&l%arg 2% &b&lが &e&l%arg 3%&a&lになりました"
  223.  
  224. #rank操作
  225. command /ar <player=%player%> <number>:
  226. trigger:
  227. player has permission "pvp.admin"
  228. set {%arg 1%.rank} to arg 2
  229. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  230. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  231. broadcast "&b&l運営&e&l%player%&b&lによって &e&l%arg 1% の"
  232. broadcast "&b&lrankが &e&l%arg 2%&a&lになりました"
  233.  
  234.  
  235. #---一般用コマンド---
  236.  
  237. #一般用のhelp
  238. command /phelp <player=%player%>:
  239. trigger:
  240. message "&b----------------------------" to arg 1
  241. message "&dKurumiKitPvPserver 一般用help" to arg 1
  242. message "&b----------------------------" to arg 1
  243. message "&e/phelp &a...このhelpが出ます" to arg 1
  244. message "&e/lobby &a...lobbyモードに戻ります" to arg 1
  245. message "&e/pp <player> &a... そのプレイヤーのpointを観覧します" to arg 1
  246. message "&e/psend <player> <数値> &a...ポイント譲渡"
  247. message "&e/ppar <number> &a...ポイント抽選開催"
  248. message "&e/rhelp &a...rankについてのhelp" to arg 1
  249. message "&e/ghelp &a...ガチャについてのhelp" to arg 1
  250. message "&b----------------------------" to arg 1
  251. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  252.  
  253. #menuコマンド
  254. command /pmenu <player=%player%>:
  255. trigger:
  256. open chest with 2 row named "&4&lKKPメニュー" to arg 1
  257. wait 1 tick
  258. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  259. format slot 1 of arg 1 with 368 named "&aロビーにteleportする" to close then run [execute console command "/tp %arg 1% 1195 46 208"]
  260. format slot 2 of arg 1 with 368 named "&aガチャゾーンにteleportする 現在使えません" to close then run [execute console command "/tp %arg 1% 1195 73 208"]
  261. format slot 9 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  262. format slot 17 of arg 1 with barrier named "<magenta>キャンセル" to close
  263. stop
  264.  
  265. #PvPフィールドspawnpoint
  266. command /pvp <player=%player%>:
  267. trigger:
  268. set {_dice} to a random integer between 0 and 6
  269. if {_dice} is 0:
  270. command "/tp %arg 1% 1225 5 201"
  271. if {_dice} is 1:
  272. command "/tp %arg 1% 1224 4 165"
  273. if {_dice} is 2:
  274. command "/tp %arg 1% 1238 12 175"
  275. if {_dice} is 3:
  276. command "/tp %arg 1% 1230 12 154"
  277. if {_dice} is 4:
  278. command "/tp %arg 1% 1191 4 154"
  279. if {_dice} is 5:
  280. command "/tp %arg 1% 1203 7 137"
  281. if {_dice} is 6:
  282. command "/tp %arg 1% 1273 25 156"
  283. message "&b&lPvPフィールドにteleportしました" to arg 1
  284.  
  285. #rankコマンド
  286. command /rhelp:
  287. trigger:
  288. message "&b---rankとは----------------------------------"
  289. message "&arankとはプレイヤーの中の格付けです"
  290. message "&a始めはrank 1 から始まります。"
  291. message "&arankは購入できるkitに影響を与え、"
  292. message "&aガチャで得られたチケットの使用にも"
  293. message "&a関わります。 ガチャ→ /ghelp"
  294. message "&arankはランクメニューから順番に購入することができます"
  295. message "&b----------------------------------------------"
  296.  
  297. #ガチャコマンド
  298. command /ghelp:
  299. trigger:
  300. message "&b---ガチャ-------------------------------------"
  301. message "&aガチャはガチャキー購入メニューから入手できます"
  302. message "&aガチャゾーンは、サーバーメニューから"
  303. message "&a移動できます。 サーバーメニュー → /pmenu"
  304. message "&a中には、ガチャ限定のkitもあるらしい..."
  305. message "&b----------------------------------------------"
  306.  
  307. #kitselectコマンド
  308. command /pkitselect <player=%player%>:
  309. trigger:
  310. wait 2 tick
  311. open chest with 4 row named "&4&lKKP kit選択メニュー" to arg 1
  312. wait 1 tick
  313. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  314. format slot 10 of arg 1 with arrow named "&a&lノーマルkit &5&lpage 1" to run [execute console command "/pkitselect1 %arg 1%"]
  315. format slot 19 of arg 1 with 439 named "&e&lレアkit &5&lpage 1" to run [execute console command "/pkitselect1v %arg 1%"]
  316.  
  317. command /pkitselect1 <player=%player%>:
  318. trigger:
  319. wait 2 tick
  320. open chest with 3 row named "&4&lKKP kit選択メニュー [&2&lノーマルkit&4&l] page 1" to arg 1
  321. wait 1 tick
  322. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  323. if {%arg 1%.1} is "true":
  324. format slot 1 of arg 1 with stick named "&e&lNo.1 初心のkit" to run [execute console command "/kit %arg 1% 1"]
  325. else:
  326. format slot 1 of arg 1 with 160:14 named "&e&lNo.1 初心のkit 未購入" to close
  327. if {%arg 1%.2} is "true":
  328. format slot 2 of arg 1 with 336 named "&e&lNo.2 ビギナーズkit" to run [execute console command "/kit %arg 1% 2"]
  329. else:
  330. format slot 2 of arg 1 with 160:14 named "&e&lNo.2 ビギナーズkit 未購入" to close
  331. if {%arg 1%.3} is "true":
  332. format slot 3 of arg 1 with wooden sword named "&e&lNo.3 修行人" to run [execute console command "/kit %arg 1% 3"]
  333. else:
  334. format slot 3 of arg 1 with 160:14 named "&e&lNo.3 修行人 未購入" to close
  335. if {%arg 1%.4} is "true":
  336. format slot 4 of arg 1 with arrow named "&e&lNo.4 弓好き" to run [execute console command "/kit %arg 1% 4"]
  337. else:
  338. format slot 4 of arg 1 with 160:14 named "&e&lNo.4 弓好き 未購入" to close
  339. if {%arg 1%.5} is "true":
  340. format slot 5 of arg 1 with 373 named "&e&lNo.5 薬師" to run [execute console command "/kit %arg 1% 5"]
  341. else:
  342. format slot 5 of arg 1 with 160:14 named "&e&lNo.5 薬師 未購入" to close
  343. if {%arg 1%.6} is "true":
  344. format slot 6 of arg 1 with stone sword named "&e&lNo.6 剣士" to run [execute console command "/kit %arg 1% 6"]
  345. else:
  346. format slot 6 of arg 1 with 160:14 named "&e&lNo.6 剣士 未購入" to close
  347. if {%arg 1%.8} is "true":
  348. format slot 7 of arg 1 with bow named "&e&lNo.8 アーチャー" to run [execute console command "/kit %arg 1% 8"]
  349. else:
  350. format slot 7 of arg 1 with 160:14 named "&e&lNo.8 アーチャー 未購入" to close
  351. if {%arg 1%.9} is "true":
  352. format slot 10 of arg 1 with 442 named "&e&lNo.9 タンク" to run [execute console command "/kit %arg 1% 9"]
  353. else:
  354. format slot 10 of arg 1 with 160:14 named "&e&lNo.9 タンク 未購入" to close
  355. if {%arg 1%.15} is "true":
  356. format slot 11 of arg 1 with 417 named "&e&lNo.15 銃マニア" to run [execute console command "/kit %arg 1% 15"]
  357. else:
  358. format slot 11 of arg 1 with 160:14 named "&e&lNo.15 銃マニア 未購入" to close
  359. if {%arg 1%.16} is "true":
  360. format slot 12 of arg 1 with 351:15 named "&e&lNo.16 睡魔" to run [execute console command "/kit %arg 1% 16"]
  361. else:
  362. format slot 12 of arg 1 with 160:14 named "&e&lNo.16 睡魔 未購入" to close
  363. if {%arg 1%.17} is "true":
  364. format slot 13 of arg 1 with 271 named "&e&lNo.17 木こり" to run [execute console command "/kit %arg 1% 17"]
  365. else:
  366. format slot 13 of arg 1 with 160:14 named "&e&lNo.17 ??? 未購入" to close
  367. if {%arg 1%.18} is "true":
  368. format slot 14 of arg 1 with 295 named "&e&lNo.18 農家" to run [execute console command "/kit %arg 1% 18"]
  369. else:
  370. format slot 14 of arg 1 with 160:14 named "&e&lNo.18 ??? 未購入" to close
  371. if {%arg 1%.19} is "true":
  372. format slot 15 of arg 1 with 397:2 named "&e&lNo.19 ゾンビくん" to run [execute console command "/kit %arg 1% 19"]
  373. else:
  374. format slot 15 of arg 1 with 160:14 named "&e&lNo.19 ??? 未購入" to close
  375. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  376. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close then run [execute console command "/pkitselect %arg 1%"]
  377. stop
  378.  
  379. command /pkitselect1v <player=%player%>:
  380. trigger:
  381. wait 2 tick
  382. open chest with 3 row named "&4&lKKP kit選択メニュー [&6&lレアkit&4&l] page 1" to arg 1
  383. wait 1 tick
  384. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  385. if {%arg 1%.7} is "true":
  386. format slot 1 of arg 1 with 351:1 named "&e&lNo.7 ウォーリアー" to run [execute console command "/kit %arg 1% 7"]
  387. else:
  388. format slot 1 of arg 1 with 160:14 named "&e&lNo.7 ウォーリアー 未購入" to close
  389. if {%arg 1%.10} is "true":
  390. format slot 2 of arg 1 with 443 named "&e&lNo.10 飛行剣士" to run [execute console command "/kit %arg 1% 10"]
  391. else:
  392. format slot 2 of arg 1 with 160:14 named "&e&lNo.10 飛行剣士 未購入" to close
  393. if {%arg 1%.11} is "true":
  394. format slot 3 of arg 1 with 401 named "&e&lNo.11 花火師" to run [execute console command "/kit %arg 1% 11"]
  395. else:
  396. format slot 3 of arg 1 with 160:14 named "&e&lNo.11 花火師 未購入" to close
  397. if {%arg 1%.12} is "true":
  398. format slot 4 of arg 1 with 263:1 named "&e&lNo.12 妨害厨" to run [execute console command "/kit %arg 1% 12"]
  399. else:
  400. format slot 4 of arg 1 with 160:14 named "&e&lNo.12 妨害厨 未購入" to close
  401. if {%arg 1%.13} is "true":
  402. format slot 5 of arg 1 with feather named "&e&lNo.13 軽装戦士" to run [execute console command "/kit %arg 1% 13"]
  403. else:
  404. format slot 5 of arg 1 with 160:14 named "&e&lNo.13 軽装戦士 未購入" to close
  405. if {%arg 1%.14} is "true":
  406. format slot 6 of arg 1 with 351:2 named "&e&lNo.14 毒蛇" to run [execute console command "/kit %arg 1% 14"]
  407. else:
  408. format slot 6 of arg 1 with 160:14 named "&e&lNo.14 毒蛇 未購入" to close
  409. if {%arg 1%.20} is "true":
  410. format slot 7 of arg 1 with 377 named "&e&lNo.20 猛者" to run [execute console command "/kit %arg 1% 20"]
  411. else:
  412. format slot 7 of arg 1 with 160:14 named "&e&lNo.20 猛者 未購入" to close
  413. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  414. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close then run [execute console command "/pkitselect %arg 1%"]
  415. stop
  416.  
  417.  
  418. #kitbuyコマンド
  419. command /pkitbuy <player=%player%>:
  420. trigger:
  421. wait 2 tick
  422. open chest with 4 row named "&4&lKKP kit購入メニュー" to arg 1
  423. wait 1 tick
  424. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  425. format slot 10 of arg 1 with arrow named "&a&lノーマルkit &5&lpage 1" to close then run [execute console command "/pkitbuy1 %arg 1%"]
  426. format slot 19 of arg 1 with 439 named "&e&lレアkit &5&lpage 1" to close then run [execute console command "/pkitbuy1v %arg 1%"]
  427.  
  428. command /pkitbuy1 <player=%player%>:
  429. trigger:
  430. wait 2 tick
  431. open chest with 3 row named "&4&lKKP kit購入メニュー [&2&lノーマルkit&4&l] page 1" to arg 1
  432. wait 1 tick
  433. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  434. if {%arg 1%.1} is not "true":
  435. format slot 1 of arg 1 with stick named "&e&lNo.1 初心のkit [0]" to close then run [execute console command "/kitbuy %arg 1% 0 1"]
  436. else:
  437. format slot 1 of arg 1 with 160:5 named "&e&lNo.1 初心のkit 購入済" to close
  438. if {%arg 1%.2} is not "true":
  439. format slot 2 of arg 1 with 336 named "&e&lNo.2 ビギナーズkit [0]" to close then run [execute console command "/kitbuy %arg 1% 0 2"]
  440. else:
  441. format slot 2 of arg 1 with 160:5 named "&e&lNo.2 ビギナーズkit 購入済" to close
  442. if {%arg 1%.3} is not "true":
  443. format slot 3 of arg 1 with wooden sword named "&e&lNo.3 修行人 [500]" to close then run [execute console command "/kitbuy %arg 1% 500 3"]
  444. else:
  445. format slot 3 of arg 1 with 160:5 named "&e&lNo.3 修行人 購入済" to close
  446. if {%arg 1%.4} is not "true":
  447. format slot 4 of arg 1 with arrow named "&e&lNo.4 弓好き [1000]" to close then run [execute console command "/kitbuy %arg 1% 1000 4"]
  448. else:
  449. format slot 4 of arg 1 with 160:5 named "&e&lNo.4 弓好き 購入済" to close
  450. if {%arg 1%.5} is not "true":
  451. format slot 5 of arg 1 with 373 named "&e&lNo.5 薬師 [2500]" to close then run [execute console command "/kitbuy %arg 1% 2500 5"]
  452. else:
  453. format slot 5 of arg 1 with 160:5 named "&e&lNo.5 薬師 購入済" to close
  454. if {%arg 1%.6} is not "true":
  455. format slot 6 of arg 1 with stone sword named "&e&lNo.6 剣士 [3500]" to close then run [execute console command "/kitbuy %arg 1% 3500 6"]
  456. else:
  457. format slot 6 of arg 1 with 160:5 named "&e&lNo.6 剣士 購入済" to close
  458. if {%arg 1%.8} is not "true":
  459. format slot 7 of arg 1 with bow named "&e&lNo.8 アーチャー [5000]" to close then run [execute console command "/kitbuy %arg 1% 5000 8"]
  460. else:
  461. format slot 7 of arg 1 with 160:5 named "&e&lNo.8 アーチャー 購入済" to close
  462. if {%arg 1%.9} is not "true":
  463. format slot 10 of arg 1 with 336 named "&e&lNo.9 タンク [5000]" to close then run [execute console command "/kitbuy %arg 1% 5000 9"]
  464. else:
  465. format slot 10 of arg 1 with 160:5 named "&e&lNo.9 タンク 購入済" to close
  466. if {%arg 1%.15} is not "true":
  467. format slot 11 of arg 1 with 417 named "&e&lNo.15 銃マニア [250]" to close then run [execute console command "/kitbuy %arg 1% 250 15"]
  468. else:
  469. format slot 11 of arg 1 with 160:5 named "&e&lNo.15 銃マニア 購入済" to close
  470. if {%arg 1%.16} is not "true":
  471. format slot 12 of arg 1 with 351:15 named "&e&lNo.16 睡魔 [250]" to close then run [execute console command "/kitbuy %arg 1% 250 16"]
  472. else:
  473. format slot 12 of arg 1 with 160:5 named "&e&lNo.16 睡魔 購入済" to close
  474. if {%arg 1%.17} is not "true":
  475. format slot 13 of arg 1 with 271 named "&e&lNo.17 ??? [1000]" to close then run [execute console command "/kitbuy %arg 1% 1000 17"]
  476. else:
  477. format slot 13 of arg 1 with 160:5 named "&e&lNo.17 木こり 購入済" to close
  478. if {%arg 1%.18} is not "true":
  479. format slot 14 of arg 1 with 295 named "&e&lNo.18 ??? [1000]" to close then run [execute console command "/kitbuy %arg 1% 1000 18"]
  480. else:
  481. format slot 14 of arg 1 with 160:5 named "&e&lNo.18 農家 購入済" to close
  482. if {%arg 1%.19} is not "true":
  483. format slot 15 of arg 1 with 397:2 named "&e&lNo.19 ??? [1000]" to close then run [execute console command "/kitbuy %arg 1% 1000 19"]
  484. else:
  485. format slot 15 of arg 1 with 160:5 named "&e&lNo.19 ゾンビくん 購入済" to close
  486. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  487. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close then run [execute console command "/pkitbuy %arg 1%"]
  488. stop
  489.  
  490. command /pkitbuy1v <player=%player%>:
  491. trigger:
  492. wait 2 tick
  493. open chest with 3 row named "&4&lKKP kit購入メニュー [&6&lレアkit&4&l] page 1" to arg 1
  494. wait 1 tick
  495. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  496. if {%arg 1%.7} is not "true":
  497. format slot 1 of arg 1 with 160:4 named "&e&lNo.7 ウォーリアー [???]" to close
  498. else:
  499. format slot 1 of arg 1 with 160:6 named "&e&lNo.7 ウォーリアー 購入済" to close
  500. if {%arg 1%.10} is not "true":
  501. format slot 2 of arg 1 with 160:4 named "&e&lNo.10 飛行剣士 [???]" to close
  502. else:
  503. format slot 2 of arg 1 with 160:6 named "&e&lNo.10 飛行剣士 購入済" to close
  504. if {%arg 1%.11} is not "true":
  505. format slot 3 of arg 1 with 160:4 named "&e&lNo.11 花火師 [???]" to close
  506. else:
  507. format slot 3 of arg 1 with 160:6 named "&e&lNo.11 花火師 購入済" to close
  508. if {%arg 1%.12} is not "true":
  509. format slot 4 of arg 1 with 160:4 named "&e&lNo.12 妨害厨 [???]" to close
  510. else:
  511. format slot 4 of arg 1 with 160:6 named "&e&lNo.12 妨害厨 購入済" to close
  512. if {%arg 1%.13} is not "true":
  513. format slot 5 of arg 1 with 160:4 named "&e&lNo.13 軽装戦士 [???]" to close
  514. else:
  515. format slot 5 of arg 1 with 160:6 named "&e&lNo.13 軽装戦士 購入済" to close
  516. if {%arg 1%.14} is not "true":
  517. format slot 6 of arg 1 with 160:4 named "&e&lNo.14 毒蛇 [???]" to close
  518. else:
  519. format slot 6 of arg 1 with 160:6 named "&e&lNo.14 毒蛇 購入済" to close
  520. if {%arg 1%.20} is not "true":
  521. format slot 7 of arg 1 with 160:4 named "&e&lNo.20 猛者 [???]" to close
  522. else:
  523. format slot 7 of arg 1 with 160:6 named "&e&lNo.20 猛者 購入済" to close
  524. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  525. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close then run [execute console command "/pkitbuy %arg 1%"]
  526. stop
  527.  
  528. #kit購入コマンド
  529. command /kitbuy <player=%player%> <number> <number>:
  530. trigger:
  531. if {%arg 1%.point} is arg 2:
  532. remove arg 2 from {%arg 1%.point}
  533. set {%arg 1%.%arg 3%} to "true"
  534. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  535. message "&e&l購入成功!" to arg 1
  536. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  537. stop
  538. if {%arg 1%.point} > arg 2:
  539. remove arg 2 from {%arg 1%.point}
  540. set {%arg 1%.%arg 3%} to "true"
  541. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  542. message "&e&l購入成功!" to arg 1
  543. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  544. stop
  545. else:
  546. message "<red>購入条件を満たしていません!" to arg 1
  547. message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint" to arg 1
  548. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  549.  
  550. #kit選択コマンド
  551. command /kit <player=%player%> <number>:
  552. trigger:
  553. command "/clear %arg 1%"
  554. set {%arg 1%.kit} to arg 2
  555. command "/menu grab %arg 1% %arg 2%"
  556. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  557. message "&b&lkitを選択しました"
  558. command "/effect %arg 1% clear"
  559. message "&b&llobbyモードに戻るをクリックで戻せます"
  560.  
  561. #kit番号確認
  562. command /kitnumber <player=%player%>:
  563. trigger:
  564. message "&b&l現在の&e&l%arg 1%&b&lのkit番号は &e&l%{%arg 1%.kit}% &b&lです"
  565. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  566.  
  567. #point確認コマンド ブロック用
  568. command /ppp <player=%player%>:
  569. trigger:
  570. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  571. message "&aあなたが所持しているpointは&e&l%{%arg 1%.point}%&apoint" to arg 1
  572.  
  573. #point確認コマンド
  574. command /pp <player=%player%>:
  575. trigger:
  576. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  577. message "&a%arg 1%が所持しているpointは&e&l%{%arg 1%.point}%&apoint" to player
  578.  
  579. #point譲渡コマンド
  580. command /psend <player> <number>:
  581. trigger:
  582. remove arg 2 from {%player%.point}
  583. add arg 2 to {%arg 1%.point}
  584. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  585. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  586. message "&e&l%arg 1%&b&lに&e&l%arg 2%&b&lpointを渡しました" to player
  587. message "&e&l%player%&b&lから&e&l%arg 2%&b&lpointを受け取りました" to arg 1
  588.  
  589. #一般抽選
  590. command /ppar <number>:
  591. trigger:
  592. if {%player%.point} is arg 1:
  593. command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
  594. broadcast "---&d抽選&f-----------------"
  595. broadcast "一般Playerの&b%player%&fによって"
  596. broadcast "&f抽選が始まります!"
  597. broadcast "&f報酬は&b%arg 1% point&fです!"
  598. broadcast "&f抽選を開始します!"
  599. broadcast "----------------------------"
  600. remove arg 1 from {%player%.point}
  601. message "&a残りpoint &e&l%{%player%.point}%&apoint" to player
  602. wait 2 seconds
  603. broadcast "&1."
  604. wait 2 seconds
  605. broadcast "&1.."
  606. wait 2 seconds
  607. broadcast "&b...!"
  608. wait 3 seconds
  609. set {tag} to random player out of all players
  610. add arg 1 to {%{tag}%.point}
  611. broadcast "---&d抽選結果&f-----------------"
  612. broadcast "&b%player%&f主催の抽選で"
  613. broadcast "&b%{tag}%&fのpointが"
  614. broadcast "&b%arg 1% &f増加しました!!"
  615. broadcast "&b----------------------------"
  616. message "&e&l%arg 1%point&b&l入手しました" to {tag}
  617. command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53 1.0"
  618. stop
  619. if {%player%.point} > arg 1:
  620. command "/playsound minecraft:entity.arrow.hit_player ambient @a ~ ~ ~ 1.0 0.5 1.0"
  621. broadcast "---&d抽選&f-----------------"
  622. broadcast "一般Playerの&b%player%&fによって"
  623. broadcast "&f抽選が始まります!"
  624. broadcast "&f報酬は&b%arg 1% point&fです!"
  625. broadcast "&f抽選を開始します!"
  626. broadcast "----------------------------"
  627. remove arg 1 from {%player%.point}
  628. message "&a残りpoint &e&l%{%player%.point}%&apoint" to player
  629. wait 2 seconds
  630. broadcast "&1."
  631. wait 2 seconds
  632. broadcast "&1.."
  633. wait 2 seconds
  634. broadcast "&b...!"
  635. wait 3 seconds
  636. set {tag} to random player out of all players
  637. add arg 1 to {%{tag}%.point}
  638. broadcast "---&d抽選結果&f-----------------"
  639. broadcast "&b%player%&f主催の抽選で"
  640. broadcast "&b%{tag}%&fのpointが"
  641. broadcast "&b%arg 1% &f増加しました!!"
  642. broadcast "&b----------------------------"
  643. message "&e&l%arg 1%point&b&l入手しました" to {tag}
  644. command "/playsound minecraft:entity.player.levelup ambient @a ~ ~ ~ 1.0 0.53 1.0"
  645. stop
  646. else:
  647. message "<red>必要なpointを満たしていません!"
  648. message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint"
  649. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  650.  
  651. #lobbyモードにするコマンド
  652. command /lobby <player=%player%>:
  653. trigger:
  654. command "/clear %arg 1%"
  655. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  656. message "&b&llobbyモードに戻りました" to arg 1
  657. command "/menu grab %arg 1% 0"
  658.  
  659. #ガチャメニュー
  660. command /gmenu <player=%player%>:
  661. trigger:
  662. open chest with 3 row named "&4&lKKP ガチャキー購入メニュー" to arg 1
  663. wait 1 tick
  664. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  665. format slot 9 of arg 1 with book named "&e&l/ghelpでガチャの説明を受けられます" to close
  666. format slot 1 of arg 1 with 131 named "&e&lpointガチャキー [500]" to run [execute console command "/gbuy %arg 1% 1 500"]
  667. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  668. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
  669. stop
  670.  
  671. command /gbuy <player> <number> <number>:
  672. trigger:
  673. if {%arg 1%.point} is arg 3:
  674. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  675. message "&e&l購入成功!" to arg 1
  676. remove arg 3 from {%arg 1%.point}
  677. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  678. if arg 2 is 1:
  679. command "/crate key %arg 1% pointガチャ 1"
  680. if arg 2 is 2:
  681. command "/crate key %arg 1% イベントガチャ 1"
  682. stop
  683. if {%arg 1%.point} > arg 3:
  684. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  685. message "&e&l購入成功!" to arg 1
  686. remove arg 3 from {%arg 1%.point}
  687. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  688. if arg 2 is 1:
  689. command "/crate key %arg 1% pointガチャ 1"
  690. if arg 2 is 2:
  691. command "/crate key %arg 1% イベントガチャ 1"
  692. stop
  693. else:
  694. message "<red>購入条件を満たしていません!" to arg 1
  695. message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint" to arg 1
  696. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  697.  
  698. command /rmenu <player=%player%>:
  699. trigger:
  700. open chest with 3 row named "&4&lKKP ランク購入メニュー" to arg 1
  701. wait 1 tick
  702. command "/playsound minecraft:entity.arrow.hit_player ambient %arg 1% ~ ~ ~ 1.0 0.5 1.0"
  703. format slot 9 of arg 1 with book named "&e&l/rhelpで説明を受けられます" to close
  704. format slot 12 of arg 1 with yellow glass named "&cXXX" to close
  705. format slot 14 of arg 1 with yellow glass named "&cXXX" to close
  706. format slot 3 of arg 1 with yellow glass named "&cXXX" to close
  707. format slot 5 of arg 1 with yellow glass named "&cXXX" to close
  708. format slot 21 of arg 1 with yellow glass named "&cXXX" to close
  709. format slot 23 of arg 1 with yellow glass named "&cXXX" to close
  710. format slot 4 of arg 1 with yellow glass named "&cXXX" to close
  711. format slot 22 of arg 1 with yellow glass named "&cXXX" to close
  712. if {%arg 1%.rank} is 0:
  713. format slot 13 of arg 1 with book named "&e&lrank1 になる [0]" to close then run [execute console command "/rbuy %arg 1% 1 0"]
  714. if {%arg 1%.rank} is 1:
  715. format slot 13 of arg 1 with book named "&e&lrank2 になる [300]" to close then run [execute console command "/rbuy %arg 1% 2 300"]
  716. if {%arg 1%.rank} is 2:
  717. format slot 13 of arg 1 with book named "&e&lrank3 になる [1000]" to close then run [execute console command "/rbuy %arg 1% 3 1000"]
  718. if {%arg 1%.rank} > 2:
  719. format slot 13 of arg 1 with book named "未実装" to close
  720. format slot 18 of arg 1 with {point.%arg%} of nether star named "&b所持ポイント &e%{%arg 1%.point}%" to close
  721. format slot 26 of arg 1 with barrier named "<magenta>キャンセル" to close
  722. stop
  723.  
  724. command /rbuy <player> <number> <number>:
  725. trigger:
  726. if {%arg 1%.point} is arg 3:
  727. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  728. remove arg 3 from {%arg 1%.point}
  729. message "&e&l購入成功!" to arg 1
  730. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  731. set {%arg 1%.rank} to arg 2
  732. stop
  733. if {%arg 1%.point} > arg 3:
  734. command "/playsound minecraft:entity.player.levelup ambient %arg 1% ~ ~ ~ 1.0 0.53 1.0"
  735. remove arg 3 from {%arg 1%.point}
  736. message "&e&l購入成功!" to arg 1
  737. message "&a残りpoint &e&l%{%arg 1%.point}%&apoint" to arg 1
  738. set {%arg 1%.rank} to arg 2
  739. stop
  740. else:
  741. message "<red>購入条件を満たしていません!" to arg 1
  742. message "&aあなたの所持してるpointは &e&l%{%arg 1%.point}%&apoint" to arg 1
  743. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  744.  
  745.  
  746. #動作
  747.  
  748. on click with book:
  749. name of player's tool contains "&e&lキット選択メニュー"
  750. wait 1 tick
  751. execute console command "/pkitselect %player%"
  752.  
  753. on click with nether star:
  754. name of player's tool contains "&e&lサーバーメニュー"
  755. wait 1 tick
  756. execute console command "/pmenu %player%"
  757.  
  758. on click with 388:
  759. name of player's tool contains "&e&l/realmを開く"
  760. wait 1 tick
  761. make player execute command "/realm"
  762.  
  763. on click with 86:
  764. name of player's tool contains "&e&l所持ポイント確認"
  765. wait 1 tick
  766. make player execute command "/pp"
  767.  
  768. on click with gold nugget:
  769. name of player's tool contains "&e&lキット購入メニュー"
  770. wait 1 tick
  771. execute console command "/pkitbuy %player%"
  772.  
  773. on click with firework_star:
  774. name of player's tool contains "&e&lガチャキー購入メニュー"
  775. wait 1 tick
  776. execute console command "/gmenu %player%"
  777.  
  778. on click with blaze_rod:
  779. name of player's tool contains "&e&lランク購入メニュー"
  780. wait 1 tick
  781. execute console command "/rmenu %player%"
  782.  
  783. on click with bone:
  784. name of player's tool contains "&e&llobbyモードに戻る"
  785. wait 1 tick
  786. execute console command "/lobby %player%"
  787.  
  788. #----------------------------
  789. #チケット
  790.  
  791. on click with paper:
  792. name of player's tool contains "+100point"
  793. add 100 to {%player%.point}
  794. remove 1 of held item from player
  795. message "&e+100&apoint"
  796. command "/playsound minecraft:entity.arrow.hit_player ambient %player% ~ ~ ~ 1.0 0.5 1.0"
  797.  
  798. on click with paper:
  799. name of player's tool contains "&e&lウォーリアー"
  800. command "/kitbuy %player% 0 7"
  801. remove 1 of held item from player
  802.  
  803. on click with paper:
  804. name of player's tool contains "&e&l飛行剣士 [rank 3]"
  805. if {%player%.rank} > 2:
  806. command "/kitbuy %player% 0 10"
  807. remove 1 of held item from player
  808. else:
  809. message "&crank 3 以上でないと使えません!"
  810.  
  811. on click with paper:
  812. name of player's tool contains "&e&l花火師 [rank 2]"
  813. if {%player%.rank} > 1:
  814. command "/kitbuy %player% 0 11"
  815. remove 1 of held item from player
  816. else:
  817. message "&crank 2 以上でないと使えません!"
  818.  
  819. on click with paper:
  820. name of player's tool contains "&e&l妨害厨 [rank 2]"
  821. if {%player%.rank} > 1:
  822. command "/kitbuy %player% 0 12"
  823. remove 1 of held item from player
  824. else:
  825. message "&crank 2 以上でないと使えません!"
  826.  
  827. on click with paper:
  828. name of player's tool contains "&e&l軽装戦士 [rank 2]"
  829. if {%player%.rank} > 1:
  830. command "/kitbuy %player% 0 13"
  831. remove 1 of held item from player
  832. else:
  833. message "&crank 2 以上でないと使えません!"
  834.  
  835. on click with paper:
  836. name of player's tool contains "&e&l毒蛇 [rank 3]"
  837. if {%player%.rank} > 2:
  838. command "/kitbuy %player% 0 14"
  839. remove 1 of held item from player
  840. else:
  841. message "&crank 3 以上でないと使えません!"
  842.  
  843. on click with paper:
  844. name of player's tool contains "&e&l猛者"
  845. command "/kitbuy %player% 0 20"
  846. remove 1 of held item from player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement