dai_pon

Untitled

Mar 18th, 2018
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. on right click:
  2. if name of held item contains "&d弾ガチャ":
  3. remove 1 of player's held item from the player's inventory
  4. set {_r} to a random integer between 1 and 100
  5. if {_r} is less than or equal to 1:
  6. execute console command "scoreboard players add %player% bullet 10"
  7. message "&1>>> &e弾の数が10増えた!"
  8. else if {_random} is between 2 and 4:
  9. execute console command "scoreboard players add %player% bullet 5"
  10. message "&1>>> &e弾の数が5増えた!"
  11. else if {_random} is between 5 and 9:
  12. execute console command "scoreboard players add %player% bullet 3"
  13. message "&1>>> &e弾の数が3増えた!"
  14. else if {_random} is between 10 and 19:
  15. execute console command "scoreboard players add %player% bullet 1"
  16. message "&1>>> &e弾の数が1増えた!"
  17. else:
  18. message "&1>>> &eハズレ..."
Advertisement
Add Comment
Please, Sign In to add comment