Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- set {cookies::%uuid of player%} to 0
- set {jackpot} to 0
- set {pet1} to skull of "cake" parsed as offline player named "&a&lGRASSY" with lore "" and "&a&l* &7Grassy gives you 2x more cookies!"
- 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"
- on right click:
- # -- pets
- set {_amt} to 1
- set {_max} to 100
- give player 1 of {pet2}
- if player's held item is {pet1}:
- set {_amt} to {_amt} * 2
- else if player's held item is {pet2}:
- set {_amt} to {_amt} * 3
- set {_max} to 115
- add {_amt} to {cookies::%uuid of player%}
- # -- chances
- set {_chance} to round(random number between 1 and {_max})
- if {_chance} is 11 or 12 or 13 or 14 or 15 or 16 or 17 or 18 or 19 or 20:
- set {cookies::%uuid of player%} to {cookies::%uuid of player%} / 2
- 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
- set {jackpot} to 0
- else if {_chance} < 4:
- set {cookies::%uuid of player%} to {cookies::%uuid of player%} * 2
- 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
- add 1 to {jackpot}
- if {jackpot} is 3:
- set {cookies::%uuid of player%} to {cookies::%uuid of player%} * 5
- 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
- set {jackpot} to 0
- else:
- send "%{_chance}%" to player
- 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
- command /clearcookies <player>:
- trigger:
- set {cookies::%uuid of arg-1%} to 0
- on block place:
- if {pet1} or {pet2} is player's tool:
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment