Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variables:
- {PickaxeLevel.%player%} = 1
- # This is the starting level for the pickaxe
- {PickaxeCounter.%player%} = 0
- # This is the starting blocks mined counter
- {UpgradePoints.%player%} = 0
- # This is the starting amount of points
- Options:
- UPoint: 1
- Effup: 1
- Forup: 5
- ToolName: &3Rusted Pickaxe &3| &fLevel &3: &b%{PickaxeLevel.%player%}% &fExp &3: &b%{PickaxeCounter.%player%}%&3/
- # This is the name for the pickaxe. You can change this however the Level and the Counter should be in the name
- BlocksBroken: 100
- 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
- command /upgrade:
- trigger:
- open chest with 1 rows named "Upgrades" to player
- format slot 0 of player with a gray stained glass named "&f" to close
- format slot 1 of player with a gray stained glass named "&f" to close
- format slot 2 of player with a gray stained glass named "&f" to close
- format slot 3 of player with a Firework Star named "&3Efficency" with lore "&b-1 Points" to close then run [make player execute command "/effup"]
- format slot 6 of player with a gray stained glass named "&f" to close
- format slot 5 of player with a Firework Star named "&3Fortune" with lore "&b-5 Points" to close then run [make player execute command "/forup"]
- format slot 7 of player with a gray stained glass named "&f" to close
- format slot 8 of player with a gray stained glass named "&f" to close
- format slot 4 of player with a gray stained glass named "&f" to close
- command /effup:
- trigger:
- if {UpgradePoints.%player%} is greater than or equal to {@Effup}:
- send "&aYou upgraded your pickaxe!"
- remove 1 from {UpgradePoints.%player%}
- evaluate "enchant player's tool with efficiency %level of efficiency of player's tool + 1%"
- evaluate "enchant player's tool with fortune %level of fortune of player's tool%"
- command /forup:
- trigger:
- if {UpgradePoints.%player%} is greater than or equal to {@Forup}:
- send "&aYou upgraded your pickaxe!"
- remove 5 from {UpgradePoints.%player%}
- evaluate "enchant player's tool with efficiency %level of fortune of player's tool + 1%"
- evaluate "enchant player's tool with efficiency %level of efficiency of player's tool%"
- command /points:
- trigger:
- send "&3You have %{UpgradePoints.%player%}%!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement