Advertisement
Guest User

Untitled

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