Advertisement
Guest User

Untitled

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