Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- {PickaxeLevel.%player%} = 1
- # Start Level
- {PickaxeCounter.%player%} = 0
- # Start Mine Counter
- {UpgradePoints.%player%} = 0
- # Start Points
- Options:
- ToolName: &fStarter Pickaxe &3| &fLevel &3: &b%{PickaxeLevel.%player%}% &fExp &3: &b%{PickaxeCounter.%player%}%&3/
- # Pick Name
- UPoint: 1
- # LvL up Points
- BlocksBroken: 100
- # LvL up Blocks
- Header: &8&m--&7&m--&b&m--&3&m--&b( &f&lSkyMetro &b)&3&m--&b&m--&7&m--&8&m--
- Footer: &8&m--&7&m--&b&m--&3&m--&b( &f&lSkyMetro &b)&3&m--&b&m--&7&m--&8&m--
- Upgrade: &3(&bCurrent Level&3) &3» &f%{PickaxeLevel.%player%}% &3(&bUpgrade Points&3) &3» &f%{UpgradePoints.%player%}%
- # Header, Footer and upgrade message
- EffUP: 1
- ForUP: 1
- UnbUP: 1
- # These are how much the enchantment upgrades costs per points - Can change the amount
- UpgradeSuccess: &3(&bYou have enchanted your tool&3)
- MissingPoints: &3(&bYou need upgrade points to purchase this enchantment &3)
- # Success / Not Enough
- on mine:
- if player is holding a pickaxe:
- add 1 to {PickaxeCounter.%player%}
- set name of tool of player to "{@ToolName}&b{@BlocksBroken}"
- if {PickaxeCounter.%player%} is greater than or equal to 100:
- add 1 to {PickaxeLevel.%player%}
- add {@UPoint} to {UpgradePoints.%player%}
- set {PickaxeCounter.%player%} to 0
- launch ball firework colored white and ball firework colored blue at targeted block timed 1
- command /upgrades:
- trigger:
- send ""
- send " {@Header}"
- send " &7&oClick on enchantments to upgrade your tool"
- send ""
- send " {@Upgrade}"
- send ""
- send ""
- json("%player%"," &7&oEfficiency||cmd:/eff||ttp:&3» &b&l{@EffUP} Upgrade Point%newline%&fIncrease your%newline%&f&lEfficiency&fon your tool|| &7&oFortune||cmd:/for||ttp:&3» &b&l{@ForUP} Upgrade Point%newline%&fIncrease your%newline%&f&oFortune &fon your tool|| &7&oUnbreaking||cmd:/unb||ttp:&3» &b&l{@UnbUP} Upgrade Point%newline%&fIncrease your%newline%&f&oUnbreaking &fon your tool")
- send ""
- send " {@Footer}"
- command /eff:
- trigger:
- if {UpgradePoints.%player%} is greater than or equal to {@EffUP}:
- send ""
- send " {@UpgradeSuccess}"
- send ""
- remove 1 from {UpgradePoints.%player%}
- evaluate "enchant player's tool with efficiency %level of efficiency of player's tool + 1%"
- else:
- send ""
- send " {@MissingPoints}"
- send ""
- command /for:
- trigger:
- if {UpgradePoints.%player%} is greater than or equal to {@ForUP}:
- send ""
- send " {@UpgradeSuccess}"
- send ""
- remove 1 from {UpgradePoints.%player%}
- evaluate "enchant player's tool with fortune %level of fortune of player's tool + 1%"
- else:
- send ""
- send " {@MissingPoints}"
- send ""
- command /unb:
- trigger:
- if {UpgradePoints.%player%} is greater than or equal to {@UnbUP}:
- send ""
- send " {@UpgradeSuccess}"
- send ""
- remove 1 from {UpgradePoints.%player%}
- evaluate "enchant player's tool with unbreaking %level of unbreaking of player's tool + 1%"
- else:
- send ""
- send " {@MissingPoints}"
- send ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement