dai_pon

Untitled

Mar 30th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.16 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. broadcast "&8[&cGatya&8] &e%player%が&9X-Bow&eガチャを引きました、只今の当選確率は 1/%{G2}% です。"
  14. send "&8[&cGatya&8] &e残念、ハズレです..."
  15. subtract 1 from {G2}
  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. broadcast "&8[&cGatya&8] &e%player%が&a翠水晶&eガチャを引きました、只今の当選確率は 1/%{G3}% です。"
  33. send "&8[&cGatya&8] &e残念、ハズレです..."
  34. subtract 1 from {G3}
  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. broadcast "&8[&cGatya&8] &e%player%が&6RPG-7&eガチャを引きました、只今の当選確率は 1/%{G4}% です。"
  52. send "&8[&cGatya&8] &e残念、ハズレです..."
  53. subtract 1 from {G4}
  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. broadcast "&8[&cGatya&8] &e%player%が&8Barret-M82&eガチャを引きました、只今の当選確率は 1/%{G5}% です。"
  71. send "&8[&cGatya&8] &e残念、ハズレです..."
  72. subtract 1 from {G5}
  73. remove 1 of player's held item from the player's inventory
  74. set {_location} to location of player
  75. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  76.  
  77. variables:
  78. {G6} = 100
  79. on rightclick holding a white shulker box:
  80. chance of 1/{G6}:
  81. execute console command "/menu grab %player% a-ex"
  82. set {G6} to 100
  83. broadcast "&8[&cGatya&8] &e%player%&cが&7&lExcutionner&cに当選しました!"
  84. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  85. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  86. set {_location} to location of player
  87. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  88. else:
  89. broadcast "&8[&cGatya&8] &e%player%が&7Excutionner&eガチャを引きました、只今の当選確率は 1/%{G6}% です。"
  90. send "&8[&cGatya&8] &e残念、ハズレです..."
  91. subtract 1 from {G6}
  92. remove 1 of player's held item from the player's inventory
  93. set {_location} to location of player
  94. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  95.  
  96. variables:
  97. {G7} = 100
  98. on rightclick holding a yellow shulker box:
  99. chance of 1/{G7}:
  100. execute console command "/menu grab %player% a-ballista"
  101. set {G7} to 100
  102. broadcast "&8[&cGatya&8] &e%player%&cが&6&lFN Ballista&cに当選しました!"
  103. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  104. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  105. set {_location} to location of player
  106. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  107. else:
  108. broadcast "&8[&cGatya&8] &e%player%が&6FN Ballista&eガチャを引きました、只今の当選確率は 1/%{G7}% です。"
  109. send "&8[&cGatya&8] &e残念、ハズレです...残念賞をもらいました"
  110. subtract 1 from {G7}
  111. execute console command "/menu grab %player% zannen"
  112. remove 1 of player's held item from the player's inventory
  113. set {_location} to location of player
  114. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  115.  
  116. variables:
  117. {G8} = 100
  118. on rightclick holding a magenta shulker box:
  119. chance of 1/{G8}:
  120. execute console command "/menu grab %player% a-flame"
  121. set {G8} to 100
  122. broadcast "&8[&cGatya&8] &e%player%&cが&4&l火&c&l炎&4&l放&c&l射&4&l器&cに当選しました!"
  123. send "&8[&cGatya&8] &c当選しました!おめでとうございます!"
  124. execute console command "summon fireworks_rocket ~ ~3 ~ {FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;16753490],FadeColors:[I;15007580]}]}}}}"
  125. set {_location} to location of player
  126. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  127. else:
  128. broadcast "&8[&cGatya&8] &e%player%が&4火&c炎&4放&c射&4器&eガチャを引きました、只今の当選確率は 1/%{G8}% です。"
  129. send "&8[&cGatya&8] &e残念、ハズレです...残念賞をもらいました"
  130. subtract 1 from {G8}
  131. execute console command "/menu grab %player% zannen"
  132. remove 1 of player's held item from the player's inventory
  133. set {_location} to location of player
  134. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  135.  
  136. on right click:
  137. if name of held item contains "&c弾ガチャ":
  138. execute console command "scoreboard players tag %player% add gatya"
  139. remove 1 of player's held item from the player's inventory
  140. set {_s} to scoreboard objective bullet's score of player
  141. set {_failChance} to round(90*(1-3^(-0.001*({_s}-128)))*100)/100
  142. set {_r} to a random integer between 1 and 100
  143. if {_r} is less than or equal to 1:
  144. if chance of 100-{_failChance}%:
  145. set {_location} to location of player
  146. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  147. execute console command "scoreboard players add %player% bullet 10"
  148. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾10発&cに当選しました!"
  149. send "&8[&cGatya&8] &e弾の数が10増えた!"
  150. else:
  151. set {_location} to location of player
  152. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  153. send "&8[&cGatya&8] &e残念、ハズレです..."
  154. else if {_r} is between 2 and 4:
  155. if chance of 100-{_failChance}%:
  156. set {_location} to location of player
  157. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  158. execute console command "scoreboard players add %player% bullet 5"
  159. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾5発&cに当選しました!"
  160. send "&8[&cGatya&8] &e弾の数が5増えた!"
  161. else:
  162. set {_location} to location of player
  163. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  164. send "&8[&cGatya&8] &e残念、ハズレです..."
  165. else if {_r} is between 5 and 9:
  166. if chance of 100-{_failChance}%:
  167. set {_location} to location of player
  168. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  169. execute console command "scoreboard players add %player% bullet 3"
  170. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾3発&cに当選しました!"
  171. send "&8[&cGatya&8] &e弾の数が3増えた!"
  172. else:
  173. set {_location} to location of player
  174. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  175. send "&8[&cGatya&8] &e残念、ハズレです..."
  176. else if {_r} is between 10 and 19:
  177. if chance of 100-{_failChance}%:
  178. set {_location} to location of player
  179. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  180. execute console command "scoreboard players add %player% bullet 1"
  181. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾1発&cに当選しました!"
  182. send "&8[&cGatya&8] &e弾の数が1増えた!"
  183. else:
  184. set {_location} to location of player
  185. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  186. send "&8[&cGatya&8] &e残念、ハズレです..."
  187. else:
  188. set {_location} to location of player
  189. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  190. send "&8[&cGatya&8] &e残念、ハズレです..."
  191.  
  192. command /tama <number>:
  193. trigger:
  194. if arg-1 is less than 127:
  195. send "&9>> &7現在の弾の数は127以下には設定できません。"
  196. else:
  197. set {_s} to arg-1
  198. set {_failChance} to round(90*(1-3^(-0.001*({_s}-128)))*100)/100
  199. set {_10successChance} to 0.01 * (100 - {_failChance})
  200. set {_5successChance} to 0.03 * (100 - {_failChance})
  201. set {_3successChance} to 0.05 * (100 - {_failChance})
  202. set {_1successChance} to 0.1 * (100 - {_failChance})
  203. set {_tFailChance} to 100 - {_10successChance} - {_5successChance} - {_3successChance} - {_1successChance}
  204. send "&9>> &7弾%{_s}%個の場合:"
  205. send "&9>> &7弾10発に当選する確率: &7&l%{_10successChance}%%% &7(初期値は&7&l1%%&7)"
  206. send "&9>> &7弾5発に当選する確率: &7&l%{_5successChance}%%% &7(初期値は&7&l3%%&7)"
  207. send "&9>> &7弾3発に当選する確率: &7&l%{_3successChance}%%% &7(初期値は&7&l5%%&7)"
  208. send "&9>> &7弾1発に当選する確率: &7&l%{_1successChance}%%% &7(初期値は&7&l10%%&7)"
  209. send "&9>> &7ハズレを引く確率: &7&l%{_tFailChance}%%% &7(初期値は&7&l81%%&7)"
  210.  
  211. command /k1:
  212. trigger:
  213. set {_location} to location of player
  214. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  215. send "&8[&c確率&8] &e只今の当選確率は 1/%{G2}% です。 "
  216.  
  217. command /k2:
  218. trigger:
  219. set {_location} to location of player
  220. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  221. send "&8[&c確率&8] &e只今の当選確率は 1/%{G3}% です。 "
  222.  
  223. command /k3:
  224. trigger:
  225. set {_location} to location of player
  226. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  227. send "&8[&c確率&8] &e只今の当選確率は 1/%{G4}% です。 "
  228.  
  229. command /k4:
  230. trigger:
  231. set {_location} to location of player
  232. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  233. send "&8[&c確率&8] &e只今の当選確率は 1/%{G5}% です。 "
  234.  
  235. command /k5:
  236. trigger:
  237. set {_location} to location of player
  238. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  239. send "&8[&c確率&8] &e只今の当選確率は 1/%{G6}% です。 "
  240.  
  241. command /k6:
  242. trigger:
  243. set {_location} to location of player
  244. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  245. send "&8[&c確率&8] &e只今の当選確率は 1/%{G7}% です。 "
  246.  
  247. command /k7:
  248. trigger:
  249. set {_location} to location of player
  250. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  251. send "&8[&c確率&8] &e只今の当選確率は 1/%{G8}% です。 "
Advertisement
Add Comment
Please, Sign In to add comment