Advertisement
dai_pon

Untitled

Jun 3rd, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.10 KB | None | 0 0
  1. variables:
  2. {G2} = 100
  3. on rightclick holding a cyan shulker box:
  4. chance of 1/{G2}:
  5. execute console command "/menu grab %player% a-bow"
  6. set {G2} to 100
  7. broadcast "&8[&cGatya&8] &e%player%&cが&9&lX-Bow&cに当選しました!"
  8. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  9. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  10. set {_location} to location of player
  11. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  12. else:
  13. subtract 1 from {G2}
  14. broadcast "&8[&cGatya&8] &e%player%が&9X-Bow&eガチャを引きました、只今の当選確率は 1/%{G2}% です。"
  15. send "&8[&cGatya&8] &e残念、ハズレです..."
  16. remove 1 of player's held item from the player's inventory
  17. set {_location} to location of player
  18. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  19.  
  20. variables:
  21. {G3} = 200
  22. on rightclick holding a lime shulker box:
  23. chance of 1/{G3}:
  24. execute console command "/menu grab %player% suisyou"
  25. set {G3} to 200
  26. broadcast "&8[&cGatya&8] &e%player%&cが&a&l翠水晶&cに当選しました!"
  27. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  28. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  29. set {_location} to location of player
  30. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  31. else:
  32. subtract 1 from {G3}
  33. broadcast "&8[&cGatya&8] &e%player%が&a翠水晶&eガチャを引きました、只今の当選確率は 1/%{G3}% です。"
  34. send "&8[&cGatya&8] &e残念、ハズレです..."
  35. remove 1 of player's held item from the player's inventory
  36. set {_location} to location of player
  37. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  38.  
  39. variables:
  40. {G4} = 100
  41. on rightclick holding a orange shulker box:
  42. chance of 1/{G4}:
  43. execute console command "/menu grab %player% a-rpg"
  44. set {G4} to 100
  45. broadcast "&8[&cGatya&8] &e%player%&cが&6&lRPG-7&cに当選しました!"
  46. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  47. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  48. set {_location} to location of player
  49. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  50. else:
  51. subtract 1 from {G4}
  52. broadcast "&8[&cGatya&8] &e%player%が&6RPG-7&eガチャを引きました、只今の当選確率は 1/%{G4}% です。"
  53. send "&8[&cGatya&8] &e残念、ハズレです..."
  54. remove 1 of player's held item from the player's inventory
  55. set {_location} to location of player
  56. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  57.  
  58. variables:
  59. {G5} = 100
  60. on rightclick holding a gray shulker box:
  61. chance of 1/{G5}:
  62. execute console command "/menu grab %player% a-barret"
  63. set {G5} to 100
  64. broadcast "&8[&cGatya&8] &e%player%&cが&8&lBarret-M82&cに当選しました!"
  65. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  66. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  67. set {_location} to location of player
  68. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  69. else:
  70. subtract 1 from {G5}
  71. broadcast "&8[&cGatya&8] &e%player%が&8Barret-M82&eガチャを引きました、只今の当選確率は 1/%{G5}% です。"
  72. send "&8[&cGatya&8] &e残念、ハズレです..."
  73. subtract 1 from {G5}
  74. remove 1 of player's held item from the player's inventory
  75. set {_location} to location of player
  76. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  77.  
  78. variables:
  79. {G6} = 100
  80. on rightclick holding a white shulker box:
  81. chance of 1/{G6}:
  82. execute console command "/menu grab %player% a-ex"
  83. set {G6} to 100
  84. broadcast "&8[&cGatya&8] &e%player%&cが&7&lExcutionner&cに当選しました!"
  85. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  86. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  87. set {_location} to location of player
  88. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  89. else:
  90. subtract 1 from {G6}
  91. broadcast "&8[&cGatya&8] &e%player%が&7Excutionner&eガチャを引きました、只今の当選確率は 1/%{G6}% です。"
  92. send "&8[&cGatya&8] &e残念、ハズレです..."
  93. remove 1 of player's held item from the player's inventory
  94. set {_location} to location of player
  95. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  96.  
  97. on right click:
  98. if name of held item contains "&6&lFN Ballista &e&lガチャカプセル":
  99. remove 1 of player's held item from the player's inventory
  100. set {_r3} to a random integer between 1 and 1000
  101. if {_r3} is between 1 and 2:
  102. set {_location} to location of player
  103. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  104. execute console command "/menu grab %player% a-ballista"
  105. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&6&lFN Ballista&cに当選しました!"
  106. send "&8[&dVote&cGatya&8] &c当選しました!おめでとうございます!"
  107. if {_r3} is between 3 to 4:
  108. set {_location} to location of player
  109. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  110. execute console command "/menu grab %player% a-flame"
  111. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&c&l火炎放射器&cに当選しました!"
  112. send "&8[&dVote&cGatya&8] &c当選しました!おめでとうございます!"
  113. if {_r3} is between 5 to 6:
  114. set {_location} to location of player
  115. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  116. execute console command "/menu grab %player% a-walther"
  117. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&5&lWalther P1&cに当選しました!"
  118. send "&8[&dVote&cGatya&8] &c当選しました!おめでとうございます!"
  119. if {_r3} is between 7 and 8:
  120. set {_location} to location of player
  121. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  122. add 30000 to {money.%player%}
  123. send "&8[&dVote&cGatya&8] &e30000円に当選した!"
  124. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&e&l30000円&cに当選しました!"
  125. if {_r3} is between 9 and 10:
  126. set {_location} to location of player
  127. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  128. add 50000 to {money.%player%}
  129. send "&8[&dVote&cGatya&8] &e50000円に当選した!"
  130. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&e&l50000円&cに当選しました!"
  131. if {_r3} is between 11 and 12:
  132. set {_location} to location of player
  133. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  134. add 200 to {zpoint.%player%}
  135. send "&8[&dVote&cGatya&8] &c200Zpointに当選した!"
  136. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&c&l200Zpoint&cに当選しました!"
  137. if {_r3} is between 13 and 14:
  138. set {_location} to location of player
  139. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  140. add 100 to {money.%player%}
  141. send "&8[&dVote&cGatya&8] &c100Zpointに当選した!"
  142. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&c&l100Zpoint&cに当選しました!"
  143. if {_r3} is between 15 and 30:
  144. set {_location} to location of player
  145. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  146. add 50 to {money.%player%}
  147. send "&8[&dVote&cGatya&8] &c50Zpointに当選した!"
  148. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&c&l50Zpoint&cに当選しました!"
  149. if {_r3} is between 31 and 90:
  150. set {_location} to location of player
  151. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  152. add 20 to {money.%player%}
  153. send "&8[&dVote&cGatya&8] &c20Zpointに当選した!"
  154. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&c&l20Zpoint&cに当選しました!"
  155. if {_r3} is between 91 and 150:
  156. set {_location} to location of player
  157. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  158. add 10 to {money.%player%}
  159. send "&8[&dVote&cGatya&8] &c10Zpointに当選した!"
  160. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&c&l10Zpoint&cに当選しました!"
  161. if {_r3} is between 151 and 250:
  162. set {_location} to location of player
  163. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  164. add 5 to {money.%player%}
  165. send "&8[&dVote&cGatya&8] &c5Zpointに当選した!"
  166. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&c&l5Zpoint&cに当選しました!"
  167. if {_r3} is between 251 and 270:
  168. set {_location} to location of player
  169. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  170. add 10000 to {money.%player%}
  171. send "&8[&dVote&cGatya&8] &e10000円に当選した!"
  172. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&e&l10000円&cに当選しました!"
  173. if {_r3} is between 271 and 300:
  174. set {_location} to location of player
  175. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  176. add 5000 to {money.%player%}
  177. send "&8[&dVote&cGatya&8] &e5000円に当選した!"
  178. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&e&l5000円&cに当選しました!"
  179. if {_r3} is between 301 and 360:
  180. set {_location} to location of player
  181. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  182. add 3000 to {money.%player%}
  183. send "&8[&dVote&cGatya&8] &e3000円に当選した!"
  184. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&e&l3000円&cに当選しました!"
  185. if {_r3} is between 361 and 420:
  186. set {_location} to location of player
  187. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  188. add 1000 to {money.%player%}
  189. send "&8[&dVote&cGatya&8] &e1000円に当選した!"
  190. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&e&l1000円&cに当選しました!"
  191. if {_r3} is between 421 and 480:
  192. set {_location} to location of player
  193. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  194. add 500 to {money.%player%}
  195. send "&8[&dVote&cGatya&8] &e500円に当選した!"
  196. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&e&l500円&cに当選しました!"
  197. if {_r3} is between 481 and 482:
  198. set {_location} to location of player
  199. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  200. execute console command "menu grab %player% ticket20"
  201. send "&8[&dVote&cGatya&8] &6ガチャカプセル引換券x20&eに当選した!"
  202. if {_r3} is between 483 and 485:
  203. set {_location} to location of player
  204. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  205. execute console command "menu grab %player% ticket15"
  206. send "&8[&dVote&cGatya&8] &6ガチャカプセル引換券x15&eに当選した!"
  207. if {_r3} is between 486 and 500:
  208. set {_location} to location of player
  209. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  210. execute console command "menu grab %player% ticket10"
  211. send "&8[&dVote&cGatya&8] &6ガチャカプセル引換券x10&eに当選した!"
  212. if {_r3} is between 501 and 560:
  213. set {_location} to location of player
  214. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  215. execute console command "menu grab %player% ticket5"
  216. send "&8[&dVote&cGatya&8] &6ガチャカプセル引換券x5&eに当選した!"
  217. if {_r3} is between 561 and 620:
  218. set {_location} to location of player
  219. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  220. execute console command "menu grab %player% ticket3"
  221. send "&8[&dVote&cGatya&8] &6ガチャカプセル引換券x3&eに当選した!"
  222. if {_r3} is between 621 and 1000:
  223. set {_location} to location of player
  224. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  225. add 300 to {money.%player%}
  226. send "&8[&dVote&cGatya&8] &e300円に当選した!"
  227. broadcast "&8[&dVote&cGatya&8] &c%player%&cが&e&l500円&cに当選しました!"
  228.  
  229.  
  230. variables:
  231. {G9} = 100
  232. on rightclick holding a blue shulker box:
  233. chance of 1/{G9}:
  234. execute console command "/menu grab %player% a-57"
  235. set {G9} to 100
  236. broadcast "&8[&cGatya&8] &e%player%&cが&9&lFive-seveN&cに当選しました!"
  237. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  238. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  239. set {_location} to location of player
  240. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  241. else:
  242. broadcast "&8[&cGatya&8] &e%player%が&9Five-seveN&eガチャを引きました、只今の当選確率は 1/%{G9}% です。"
  243. send "&8[&cGatya&8] &e残念、ハズレです..."
  244. subtract 1 from {G9}
  245. remove 1 of player's held item from the player's inventory
  246. set {_location} to location of player
  247. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  248.  
  249. variables:
  250. {G10} = 300
  251. on rightclick holding a brown shulker box:
  252. chance of 1/{G10}:
  253. execute console command "/menu grab %player% a-kuuki"
  254. set {G10} to 300
  255. broadcast "&8[&cGatya&8] &e%player%&cが&6&l空気砲&cに当選しました!"
  256. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  257. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  258. set {_location} to location of player
  259. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  260. else:
  261. broadcast "&8[&cGatya&8] &e%player%が&6空気砲&eガチャを引きました、只今の当選確率は 1/%{G10}% です。"
  262. send "&8[&cGatya&8] &e残念、ハズレです..."
  263. subtract 1 from {G10}
  264. remove 1 of player's held item from the player's inventory
  265. set {_location} to location of player
  266. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  267.  
  268. on right click:
  269. if name of held item contains "&6&lイベントガチャカプセル":
  270. remove 1 of player's held item from the player's inventory
  271. set {_r2} to a random integer between 1 and 2000
  272. if {_r2} is less than or equal to 1:
  273. set {_location} to location of player
  274. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  275. set {eiyuu.%player%} to 1
  276. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&c&l称号 &e英&6雄&cに当選しました!"
  277. send "&8[&eEvent&cGatya&8] &e&c&l称号 &e英&6雄に当選した!"
  278. else if {_r2} is equal to 2:
  279. set {_location} to location of player
  280. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  281. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&a&l50000円&cに当選しました!"
  282. add 50000 to {money.%player%}
  283. send "&8[&eEvent&cGatya&8] &a50000円&eに当選した!"
  284. else if {_r2} is equal to 3:
  285. set {_location} to location of player
  286. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  287. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&6&lDesert Eagle Dual&cに当選しました!"
  288. execute console command "menu grab %player% a-desert2"
  289. send "&8[&eEvent&cGatya&8] &6Desert Eagle Dual&eに当選した!"
  290. else if {_r2} is equal to 4:
  291. set {_location} to location of player
  292. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  293. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&a&l翠水晶&cに当選しました!"
  294. execute console command "menu grab %player% suisyou"
  295. send "&8[&eEvent&cGatya&8] &a翠水晶&eに当選した!"
  296. else if {_r2} is between 5 and 10:
  297. set {_location} to location of player
  298. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  299. add 30000 to {money.%player%}
  300. send "&8[&eEvent&cGatya&8] &e30000円に当選した!"
  301. else if {_r2} is between 11 and 30:
  302. set {_location} to location of player
  303. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  304. add 10000 to {money.%player%}
  305. send "&8[&eEvent&cGatya&8] &e10000円に当選した!"
  306. else if {_r2} is between 11 and 100:
  307. set {_location} to location of player
  308. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  309. add 5000 to {money.%player%}
  310. send "&8[&eEvent&cGatya&8] &e5000円に当選した!"
  311. else if {_r2} is between 101 and 200:
  312. set {_location} to location of player
  313. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  314. add 3000 to {money.%player%}
  315. send "&8[&eEvent&cGatya&8] &e3000円に当選した!"
  316. else if {_r2} is between 201 and 400:
  317. set {_location} to location of player
  318. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  319. add 1000 to {money.%player%}
  320. send "&8[&eEvent&cGatya&8] &e1000円に当選した!"
  321. else if {_r2} is equal to 401:
  322. set {_location} to location of player
  323. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  324. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&c&l200Zpoint&cに当選しました!"
  325. add 200 to {zpoint.%player%}
  326. send "&8[&eEvent&cGatya&8] &e200Zpointに当選した!"
  327. else if {_r2} is between 402 and 405:
  328. set {_location} to location of player
  329. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  330. broadcast "&8[&eEvent&cGatya&8] &e%player%&cが&c&l100Zpoint&cに当選しました!"
  331. add 100 to {zpoint.%player%}
  332. send "&8[&eEvent&cGatya&8] &e100Zpointに当選した!"
  333. else if {_r2} is between 406 and 410:
  334. set {_location} to location of player
  335. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  336. add 50 to {zpoint.%player%}
  337. send "&8[&eEvent&cGatya&8] &e50Zpointに当選した!"
  338. else if {_r2} is between 406 and 410:
  339. set {_location} to location of player
  340. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  341. add 30 to {zpoint.%player%}
  342. send "&8[&eEvent&cGatya&8] &e30Zpointに当選した!"
  343. else if {_r2} is between 411 and 500:
  344. set {_location} to location of player
  345. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  346. add 20 to {zpoint.%player%}
  347. send "&8[&eEvent&cGatya&8] &e20Zpointに当選した!"
  348. else if {_r2} is between 501 and 600:
  349. set {_location} to location of player
  350. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  351. add 10 to {zpoint.%player%}
  352. send "&8[&eEvent&cGatya&8] &e10Zpointに当選した!"
  353. else if {_r2} is between 601 and 700:
  354. set {_location} to location of player
  355. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  356. add 5 to {zpoint.%player%}
  357. send "&8[&eEvent&cGatya&8] &e5Zpointに当選した!"
  358. else if {_r2} is between 701 and 900:
  359. set {_location} to location of player
  360. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  361. add 500 to {money.%player%}
  362. send "&8[&eEvent&cGatya&8] &e500円に当選した!"
  363. else if {_r2} is equal to 901:
  364. set {_location} to location of player
  365. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  366. execute console command "menu grab %player% ticket20"
  367. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x20&eに当選した!"
  368. else if {_r2} is between 902 and 910:
  369. set {_location} to location of player
  370. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  371. execute console command "menu grab %player% ticket15"
  372. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x15&eに当選した!"
  373. else if {_r2} is between 911 and 950:
  374. set {_location} to location of player
  375. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  376. execute console command "menu grab %player% ticket10"
  377. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x10&eに当選した!"
  378. else if {_r2} is between 951 and 1050:
  379. set {_location} to location of player
  380. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  381. execute console command "menu grab %player% ticket5"
  382. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x5&eに当選した!"
  383. else if {_r2} is between 1051 and 1150:
  384. set {_location} to location of player
  385. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  386. execute console command "menu grab %player% ticket3"
  387. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x3&eに当選した!"
  388. else if {_r2} is between 1151 and 1500:
  389. set {_location} to location of player
  390. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  391. add 300 to {money.%player%}
  392. send "&8[&eEvent&cGatya&8] &e300円に当選した!"
  393. else if {_r2} is between 1501 and 1700:
  394. set {_location} to location of player
  395. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  396. execute console command "menu grab %player% ticket2"
  397. send "&8[&eEvent&cGatya&8] &6ガチャカプセル引換券x2&eに当選した!"
  398. else if {_r2} is between 1701 and 2000:
  399. set {_location} to location of player
  400. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  401. add 100 to {money.%player%}
  402. send "&8[&eEvent&cGatya&8] &e100円に当選した!"
  403.  
  404.  
  405.  
  406.  
  407. on right click:
  408. if name of held item contains "&c弾ガチャ":
  409. execute console command "scoreboard players tag %player% add gatya"
  410. set {_r} to a random integer between 1 and 200
  411. if {bullet.%player%} is less than {bullet2.%player%}:
  412. remove 1 of player's held item from the player's inventory
  413. if {_r} is less than or equal to 1:
  414. set {_location} to location of player
  415. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  416. add 10 to {bullet.%player%}
  417. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾10発&cに当選しました!"
  418. send "&8[&cGatya&8] &e弾の数が10増えた!"
  419. else if {_r} is between 2 and 6:
  420. set {_location} to location of player
  421. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  422. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾5発&cに当選しました!"
  423. add 5 to {bullet.%player%}
  424. send "&8[&cGatya&8] &e弾の数が5増えた!"
  425. else if {_r} is between 5 and 14:
  426. set {_location} to location of player
  427. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  428. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾3発&cに当選しました!"
  429. add 3 to {bullet.%player%}
  430. send "&8[&cGatya&8] &e弾の数が3増えた!"
  431. else if {_r} is between 10 and 40:
  432. set {_location} to location of player
  433. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  434. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾1発&cに当選しました!"
  435. add 1 to {bullet.%player%}
  436. send "&8[&cGatya&8] &e弾の数が1増えた!"
  437. else:
  438. set {_location} to location of player
  439. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  440. send "&8[&cGatya&8] &e残念、ハズレです..."
  441. else:
  442. send "&9》 &c所持可能弾数が上限に達しています!"
  443. send "&9》 &cレベルを上げて上限を増やしましょう。"
  444. set {bullet.%player%} to {bullet2.%player%}
  445.  
  446. command /k1:
  447. trigger:
  448. set {_location} to location of player
  449. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  450. send "&8[&c確率&8] &e只今の当選確率は 1/%{G2}% です。 "
  451.  
  452. command /k2:
  453. trigger:
  454. set {_location} to location of player
  455. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  456. send "&8[&c確率&8] &e只今の当選確率は 1/%{G3}% です。 "
  457.  
  458. command /k3:
  459. trigger:
  460. set {_location} to location of player
  461. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  462. send "&8[&c確率&8] &e只今の当選確率は 1/%{G4}% です。 "
  463.  
  464. command /k4:
  465. trigger:
  466. set {_location} to location of player
  467. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  468. send "&8[&c確率&8] &e只今の当選確率は 1/%{G5}% です。 "
  469.  
  470. command /k5:
  471. trigger:
  472. set {_location} to location of player
  473. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  474. send "&8[&c確率&8] &e只今の当選確率は 1/%{G6}% です。 "
  475.  
  476. command /k6:
  477. trigger:
  478. set {_location} to location of player
  479. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  480. send "&8[&c確率&8] &e只今の当選確率は 1/%{G7}% です。 "
  481.  
  482. command /k7:
  483. trigger:
  484. set {_location} to location of player
  485. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  486. send "&8[&c確率&8] &e只今の当選確率は 1/%{G8}% です。 "
  487.  
  488. command /k8:
  489. trigger:
  490. set {_location} to location of player
  491. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  492. send "&8[&c確率&8] &e只今の当選確率は 1/%{G9}% です。 "
  493.  
  494. command /k9:
  495. trigger:
  496. set {_location} to location of player
  497. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  498. send "&8[&c確率&8] &e只今の当選確率は 1/%{G10}% です。 "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement