Advertisement
Kusa_Haenai_wWW

Untitled

Jul 15th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. every seconds:
  2. loop all players:
  3. {money::%loop-player%} is not set:
  4. set {money::%loop-player%} to 1000000
  5.  
  6. command /slot [<text>]:
  7. trigger:
  8. if arg-1 is "normal":
  9. if {money::%player%} >= 100:
  10. remove 100 from {money::%player%}
  11. set {a} to random integer between 1 and 9
  12. play entity_experience_orb_ickup at player with volume 1 and pitch 1
  13. wait 10 tick
  14. set {b} to random integer between 1 and 9
  15. play entity_experience_orb_ickup at player with volume 1 and pitch 1
  16. wait 10 tick
  17. set {c} to random integer between 1 and 9
  18. play entity_experience_orb_ickup at player with volume 1 and pitch 1
  19. if {a} = {b}:
  20. if {b} = {c}:
  21. add 10000 to {money::%player%}
  22. message "&c&lあたり!!"
  23. play entity_firework_blast at player with volume 1 and pitch 1
  24. wait 30 tick
  25. delete {a}
  26. delete {b}
  27. delete {c}
  28. else:
  29. message "&bはずれ"
  30. wait 30 tick
  31. delete {a}
  32. delete {b}
  33. delete {c}
  34. else:
  35. message "&bはずれ"
  36. wait 30 tick
  37. delete {a}
  38. delete {b}
  39. delete {c}
  40.  
  41. every tick:
  42. loop all players:
  43. set action bar of loop-player to "&e&l所持金 {money::%player%} &c{a} {b} {c}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement