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&lSkyDistrict &b)&3&m--&b&m--&7&m--&8&m--
- Footer: &8&m--&7&m--&b&m--&3&m--&b( &f&lSkyDistrict &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 OF stone:
- 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
- ON mine OF coal ore:
- if player is holding a pickaxe:
- add 2 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
- ON mine OF iron ore:
- if player is holding a pickaxe:
- add 3 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
- ON mine OF gold ore:
- if player is holding a pickaxe:
- add 4 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
- ON mine OF emerald ore:
- if player is holding a pickaxe:
- add 5 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
- ON mine OF diamond ore:
- if player is holding a pickaxe:
- add 6 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