Advertisement
therasmusgamer

Untitled

Apr 5th, 2019
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. command /upgradeTEST:
  2. trigger:
  3. if player is holding a stick:
  4. if player's tool's name contains "Clicker":
  5. open virtual chest with 3 rows named "&6Upgrades" to player
  6. if {levels1::%player's uuid%} is not set:
  7. set {levels1::%player's uuid%} to 1
  8. set {Level.Upgrade.Price.%player's uuid%} to 250
  9. set {Level.Clicker.Amount.%player's uuid%} to 2
  10. if {levels1::%player's uuid%} = 2:
  11. set {Level.Upgrade.Price.%player's uuid%} to 500
  12. set {Level.Clicker.Amount.%player's uuid%} to 3
  13. if {levels1::%player's uuid%} = 3:
  14. set {Level.Clicker.Amount.%player's uuid%} to 5
  15. set {Level.Upgrade.Price.%player's uuid%} to 750
  16. if {levels1::%player's uuid%} = 4:
  17. set {Level.Clicker.Amount.%player's uuid%} to 10
  18. set {Level.Upgrade.Price.%player's uuid%} to 100
  19. if {levels1::%player's uuid%} = 5:
  20. set {Level.Clicker.Amount.%player's uuid%} to 15
  21. set {Level.Upgrade.Price.%player's uuid%} to 1500
  22. if {levels1::%player's uuid%} = 6:
  23. set {Level.Clicker.Amount.%player's uuid%} to 20
  24. set {Level.Upgrade.Price.%player's uuid%} to 3000
  25. if {levels1::%player's uuid%} = 7:
  26. set {Level.Clicker.Amount.%player's uuid%} to 25
  27. set {Level.Upgrade.Price.%player's uuid%} to 7500
  28. if {levels1::%player's uuid%} = 8:
  29. set {Level.Clicker.Amount.%player's uuid%} to 30
  30. set {Level.Upgrade.Price.%player's uuid%} to 15000
  31. if {levels1::%player's uuid%} = 9:
  32. set {Level.Clicker.Amount.%player's uuid%} to 40
  33. set {Level.Upgrade.Price.%player's uuid%} to 50000
  34. format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 19, 20, 21, 22, 23, 24, 25 and 26 of player with black glass pane named "&c"
  35. format gui slot 13 of player with stick named "&6Clicker Level %{Level1::%player's uuid%}%" with lore "&7Upgrade your clicker to level 2!||&7This level grants: &6%{Level.Clicker.Amount.%player's uuid%}% &7Cookies per click||&7This upgrade costs &6%{Level.Upgrade.Price.%player's uuid%}%&7!" to run:
  36. if {Clicks1::%player's uuid%} >= {Level.Upgrade.Price.%player's uuid%}:
  37. close player's inventory
  38. set {clicker1::%player's uuid%} to 2
  39. message "&7Your clicker has been upgraded: You will receive &6%{Level.Clicker.Amount.%player's uuid%}% &7Cookies!"
  40. add 1 to {levels1::%player's uuid%}
  41. remove {Level.Upgrade.Price.%player's uuid%} from {Clicks1::%player's uuid%}
  42. remove player's tool from player's inventory
  43. add stick named "&eClicker lvl %{Levels1::%player's uuid%}%" to player's inventory
  44. else:
  45. close player's inventory
  46. set {_Price} to {Level.Upgrade.Price.%player's uuid%} - {Clicks1::%player's uuid%}
  47. message "&7You need: &6%{_Price}% &7to upgrade!"
  48. else:
  49. message "&7Please hold your clicker to upgrade!"
  50. else:
  51. message "&7Please hold your clicker to upgrade!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement