Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /upgradeTEST:
- trigger:
- if player is holding a stick:
- if player's tool's name contains "Clicker":
- open virtual chest with 3 rows named "&6Upgrades" to player
- if {levels1::%player's uuid%} is not set:
- set {levels1::%player's uuid%} to 1
- set {Level.Upgrade.Price.%player's uuid%} to 250
- set {Level.Clicker.Amount.%player's uuid%} to 2
- if {levels1::%player's uuid%} = 2:
- set {Level.Upgrade.Price.%player's uuid%} to 500
- set {Level.Clicker.Amount.%player's uuid%} to 3
- if {levels1::%player's uuid%} = 3:
- set {Level.Clicker.Amount.%player's uuid%} to 5
- set {Level.Upgrade.Price.%player's uuid%} to 750
- if {levels1::%player's uuid%} = 4:
- set {Level.Clicker.Amount.%player's uuid%} to 10
- set {Level.Upgrade.Price.%player's uuid%} to 100
- if {levels1::%player's uuid%} = 5:
- set {Level.Clicker.Amount.%player's uuid%} to 15
- set {Level.Upgrade.Price.%player's uuid%} to 1500
- if {levels1::%player's uuid%} = 6:
- set {Level.Clicker.Amount.%player's uuid%} to 20
- set {Level.Upgrade.Price.%player's uuid%} to 3000
- if {levels1::%player's uuid%} = 7:
- set {Level.Clicker.Amount.%player's uuid%} to 25
- set {Level.Upgrade.Price.%player's uuid%} to 7500
- if {levels1::%player's uuid%} = 8:
- set {Level.Clicker.Amount.%player's uuid%} to 30
- set {Level.Upgrade.Price.%player's uuid%} to 15000
- if {levels1::%player's uuid%} = 9:
- set {Level.Clicker.Amount.%player's uuid%} to 40
- set {Level.Upgrade.Price.%player's uuid%} to 50000
- 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"
- 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:
- if {Clicks1::%player's uuid%} >= {Level.Upgrade.Price.%player's uuid%}:
- close player's inventory
- set {clicker1::%player's uuid%} to 2
- message "&7Your clicker has been upgraded: You will receive &6%{Level.Clicker.Amount.%player's uuid%}% &7Cookies!"
- add 1 to {levels1::%player's uuid%}
- remove {Level.Upgrade.Price.%player's uuid%} from {Clicks1::%player's uuid%}
- remove player's tool from player's inventory
- add stick named "&eClicker lvl %{Levels1::%player's uuid%}%" to player's inventory
- else:
- close player's inventory
- set {_Price} to {Level.Upgrade.Price.%player's uuid%} - {Clicks1::%player's uuid%}
- message "&7You need: &6%{_Price}% &7to upgrade!"
- else:
- message "&7Please hold your clicker to upgrade!"
- else:
- message "&7Please hold your clicker to upgrade!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement