Advertisement
dai_pon

Untitled

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