Advertisement
dai_pon

Untitled

Mar 25th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.57 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. on right click:
  97. if name of held item contains "&c弾ガチャ":
  98. if {level.%player%} is less than 10:
  99. execute console command "scoreboard players set %player%[score_bullet_min=150] bullet 150"
  100. if {level.%player%} is less than 20:
  101. execute console command "scoreboard players set %player% bullet 200"
  102. if {level.%player%} is less than 30:
  103. execute console command "scoreboard players set %player% bullet 250"
  104. if {level.%player%} is less than 40:
  105. execute console command "scoreboard players set %player% bullet 300"
  106. if {level.%player%} is less than 50:
  107. execute console command "scoreboard players set %player% bullet 200"
  108. if {level.%player%} is less than 60:
  109. execute console command "scoreboard players set %player% bullet 200"
  110. if {level.%player%} is less than 70:
  111. execute console command "scoreboard players set %player% bullet 200"
  112. remove 1 of player's held item from the player's inventory
  113. set {_r} to a random integer between 1 and 100
  114. if {_r} is less than or equal to 1:
  115. set {_location} to location of player
  116. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  117. execute console command "scoreboard players add %player% bullet 10"
  118. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾10発&cに当選しました!"
  119. send "&8[&cGatya&8] &e弾の数が10増えた!"
  120. else if {_r} is between 2 and 4:
  121. set {_location} to location of player
  122. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  123. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾5発&cに当選しました!"
  124. execute console command "scoreboard players add %player% bullet 5"
  125. send "&8[&cGatya&8] &e弾の数が5増えた!"
  126. else if {_r} is between 5 and 9:
  127. set {_location} to location of player
  128. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  129. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾3発&cに当選しました!"
  130. execute console command "scoreboard players add %player% bullet 3"
  131. send "&8[&cGatya&8] &e弾の数が3増えた!"
  132. else if {_r} is between 10 and 19:
  133. set {_location} to location of player
  134. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  135. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾1発&cに当選しました!"
  136. execute console command "scoreboard players add %player% bullet 1"
  137. send "&8[&cGatya&8] &e弾の数が1増えた!"
  138. else:
  139. set {_location} to location of player
  140. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  141. send "&8[&cGatya&8] &e残念、ハズレです..."
  142. {level.%player%}
  143.  
  144. command /k1:
  145. trigger:
  146. set {_location} to location of player
  147. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  148. send "&8[&c確率&8] &e只今の当選確率は 1/%{G2}% です。 "
  149.  
  150. command /k2:
  151. trigger:
  152. set {_location} to location of player
  153. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  154. send "&8[&c確率&8] &e只今の当選確率は 1/%{G3}% です。 "
  155.  
  156. command /k3:
  157. trigger:
  158. set {_location} to location of player
  159. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  160. send "&8[&c確率&8] &e只今の当選確率は 1/%{G4}% です。 "
  161.  
  162. command /k4:
  163. trigger:
  164. set {_location} to location of player
  165. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  166. send "&8[&c確率&8] &e只今の当選確率は 1/%{G5}% です。 "
  167.  
  168. command /k5:
  169. trigger:
  170. set {_location} to location of player
  171. play sound "UI_BUTTON_CLICK" with volume 1 with pitch 1 at {_location}
  172. send "&8[&c確率&8] &e只今の当選確率は 1/%{G6}% です。 "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement