Advertisement
Guest User

Untitled

a guest
Feb 21st, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. on break:
  2. if {%uuid of player%.enchantments::*} contains "3x3":
  3. loop blocks in radius 1.5 around the block:
  4. set loop-block to air
  5. add 4 to {currentblocksmined.%player%}
  6. add 1 to {tokens.%uuid of player%}
  7. play sound "NOTE_BLOCK_FLUTE" to player
  8. else:
  9. add 1 to {currentblocksmined.%player%}
  10. if {currentblocksmined.%player%} is more than 9:
  11. set {currentblocksmined.%player%} to 0
  12. add 1 to {tokens.%uuid of player%}
  13. play sound "NOTE_BLOCK_FLUTE" to player
  14.  
  15.  
  16. on join:
  17. set {currentblocksmined.%player%} to 0
  18.  
  19. on join:
  20. if {%uuid of player%.enchantments::*} isn't set:
  21. set {%uuid of player%.enchantments::*} to ""
  22.  
  23. command /tokenshop:
  24. trigger:
  25. open chest with 1 row named "&eTokens And Upgrades" to player
  26. wait 1 tick
  27. format slot 0 of player with golden block named "&eTokens: %{tokens.%uuid of player%}%"
  28. format slot 2 of player with book named "&eEfficiency +1" to close then run [make console execute command "/buyit %player% eff1"]
  29.  
  30.  
  31. command /buyit [<player>] [<text>]:
  32. trigger:
  33. if arg-2 is "eff1":
  34. if {tokens.%uuid of arg-1%} is more than 999:
  35. remove 1000 from {tokens.%uuid of arg-1%}
  36. send "&aPurchase complete, the next pickaxe you right click on, the upgrade will be applied to." to arg-1
  37. set {applyingupgrade.%arg-1%} to "eff1"
  38.  
  39. command /cheattoken [<number>]:
  40. trigger:
  41. set {tokens.%uuid of player%} to arg-1
  42.  
  43.  
  44.  
  45. on right click:
  46. if held item is a diamond pickaxe:
  47. if {applyingupgrade.%player%} is "eff1":
  48. set {lvl.%player%} to enchantment level of efficiency of player's tool
  49. add 1 to {lvl.%player%}
  50. wait 1 second
  51. remove player's held item from player
  52. make console execute command "/give %player% diamond_pickaxe 1 {Enchantments:[{id:efficiency,lvl:%{lvl.%player%}%}]}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement