Guest User

my skript is broken bro :(

a guest
Nov 27th, 2022
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. on load:
  2. set {cookies::%uuid of player%} to 0
  3. set {jackpot} to 0
  4. set {pet1} to skull of "cake" parsed as offline player named "&a&lGRASSY" with lore "" and "&a&l* &7Grassy gives you 2x more cookies!"
  5. set {pet2} to skull of "dirt" parsed as offline player named "&x&a&c&3&f&0&0&lD&x&a&c&3&f&0&0&lI&x&a&c&3&f&0&0&lR&x&a&c&3&f&0&0&lT" with lore "" and "&a&l* &73x cookies" and "&c&l* &7Lower chance of doubles"
  6.  
  7.  
  8. on right click:
  9. # -- pets
  10. set {_amt} to 1
  11. set {_max} to 100
  12. give player 1 of {pet2}
  13. if player's held item is {pet1}:
  14. set {_amt} to {_amt} * 2
  15. else if player's held item is {pet2}:
  16. set {_amt} to {_amt} * 3
  17. set {_max} to 115
  18. add {_amt} to {cookies::%uuid of player%}
  19. # -- chances
  20. set {_chance} to round(random number between 1 and {_max})
  21. if {_chance} is 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20:
  22. set {cookies::%uuid of player%} to {cookies::%uuid of player%} / 2
  23. send "&x&0&0&f&f&1&0&lC&x&0&0&e&c&1&0&lL&x&0&0&d&8&1&0&lI&x&0&0&c&5&1&1&lC&x&0&0&b&2&1&1&lK&x&0&0&9&e&1&1&lE&x&0&0&8&b&1&1&lR &8・ &7Your cookies got halved!" to player
  24. set {jackpot} to 0
  25. else if {_chance} < 4:
  26. set {cookies::%uuid of player%} to {cookies::%uuid of player%} * 2
  27. send "&x&0&0&f&f&1&0&lC&x&0&0&e&c&1&0&lL&x&0&0&d&8&1&0&lI&x&0&0&c&5&1&1&lC&x&0&0&b&2&1&1&lK&x&0&0&9&e&1&1&lE&x&0&0&8&b&1&1&lR &8・ &7Your cookies got doubled!" to player
  28. add 1 to {jackpot}
  29. if {jackpot} is 3:
  30. set {cookies::%uuid of player%} to {cookies::%uuid of player%} * 5
  31. send "&x&e&7&0&0&0&0&lJ&x&e&f&4&8&0&0&lA&x&f&7&9&0&0&0&lC&x&f&f&d&8&0&0&lK&x&f&f&9&0&0&0&lP&x&f&f&4&8&0&0&lO&x&f&f&0&0&0&0&lT&8・ &7You just hit the jackpot! you've received x5 the cookies instead of x2!" to player
  32. set {jackpot} to 0
  33. else:
  34. send "%{_chance}%" to player
  35.  
  36.  
  37.  
  38. give 1 of cookie named "&x&f&b&6&f&0&6&lC&x&e&7&6&9&0&5&lO&x&d&2&6&3&0&4&lO&x&b&e&5&e&0&2&lK&x&a&9&5&8&0&1&lI&x&9&5&5&2&0&0&lE" with lore "" and "&x&f&1&9&7&0&b&l* &7Use me to buy pets that boost" and "&7 the cookies that you get!" to player
  39.  
  40.  
  41. command /clearcookies <player>:
  42. trigger:
  43. set {cookies::%uuid of arg-1%} to 0
  44.  
  45.  
  46.  
  47.  
  48.  
  49. on block place:
  50. if {pet1} or {pet2} is player's tool:
  51. cancel event
Advertisement
Add Comment
Please, Sign In to add comment