dai_pon

Untitled

Mar 29th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. on right click:
  2. if name of held item contains "&c弾ガチャ":
  3. execute console command "scoreboard players tag %player% add gatya"
  4. remove 1 of player's held item from the player's inventory
  5. set {_r} to a random integer between 1 and 100
  6. if {_r} is less than or equal to 1:
  7. set {_location} to location of player
  8. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  9. execute console command "scoreboard players add %player% bullet 10"
  10. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾10発&cに当選しました!"
  11. send "&8[&cGatya&8] &e弾の数が10増えた!"
  12. else if {_r} is between 2 and 4:
  13. set {_location} to location of player
  14. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  15. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾5発&cに当選しました!"
  16. execute console command "scoreboard players add %player% bullet 5"
  17. send "&8[&cGatya&8] &e弾の数が5増えた!"
  18. else if {_r} is between 5 and 9:
  19. set {_location} to location of player
  20. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  21. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾3発&cに当選しました!"
  22. execute console command "scoreboard players add %player% bullet 3"
  23. send "&8[&cGatya&8] &e弾の数が3増えた!"
  24. else if {_r} is between 10 and 19:
  25. set {_location} to location of player
  26. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  27. broadcast "&8[&cGatya&8] &e%player%&cが&c&l弾1発&cに当選しました!"
  28. execute console command "scoreboard players add %player% bullet 1"
  29. send "&8[&cGatya&8] &e弾の数が1増えた!"
  30. else:
  31. set {_location} to location of player
  32. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 with pitch 1 at {_location}
  33. send "&8[&cGatya&8] &e残念、ハズレです..."
  34. {level.%player%}
Advertisement
Add Comment
Please, Sign In to add comment