Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- give player wood_pickaxe named "&d&lPickaxe" with lore "&7Right-Click to upgrade!"
- set {pickaxe.%player%} to 1
- set {efficiency.%player%} to false
- set {enchants.%player%} to false
- set {EffValue.%player%} to 0
- set {fortune.%player%} to false
- set {explosive.%player%} to false
- set {ice.%player%} to false
- set {laster.%player%} to false
- set {egg.%player%} to false
- command /pick:
- aliases: /pickaxe
- trigger:
- if {pickaxe.%player%} is 1:
- give player wood_pickaxe named "&d&lPickaxe" with lore "&7Right-Click to upgrade!"
- if {pickaxe.%player%} is 2:
- give player stone_pickaxe named "&d&lPickaxe" with lore "&7Right-Click to upgrade!"
- on rightclick:
- if name of tool of player is "&d&lPickaxe":
- open virtual chest inventory with size 5 named "&8Pickaxe Upgrades" to player
- make gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44 of player with air to do nothing
- make gui slot 28 of player with stone_pickaxe named "&d&lStone Pickaxe" with lore "&dCost: &f$500" to run:
- if {pickaxe.%player%} is 2:
- send "&dYou have already purchased a stone pickaxe!"
- stop
- else if balance of player >= 500:
- remove player's held item from player's inventory
- if {enchants.%player%} is false:
- set {pickaxe.%player%} to 2
- give player stone_pickaxe named "&d&lPickaxe" with lore "&7Right-Click to upgrade!"
- remove 500 from balance of player
- if {enchants.%player%} is true:
- if {efficiency.%player%} is true:
- if {fortune.%player%} is true:
- send "Fortune Test"
- if {explosive.%player%} is true:
- send "Explosive Test"
- if {laser.%player%} is true:
- send "Laster Test"
- if {ice.%player%} is true:
- send "Ice Test"
- if {egg.%player%} is true:
- send "Egg test"
- else:
- set {pickaxe.%player%} to 2
- give 1 stone pickaxe of efficiency 1 named "&d&lPickaxe" with lore "&7Right-Click to upgrade!" to player
- remove 500 from balance of player
- on drop:
- if item is pickaxe:
- send "&dYou can't drop your pickaxe!" to player
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement