Advertisement
Kusa_Haenai_wWW

Untitled

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