Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on break:
- if {%uuid of player%.enchantments::*} contains "3x3":
- loop blocks in radius 1.5 around the block:
- set loop-block to air
- add 4 to {currentblocksmined.%player%}
- add 1 to {tokens.%uuid of player%}
- play sound "NOTE_BLOCK_FLUTE" to player
- else:
- add 1 to {currentblocksmined.%player%}
- if {currentblocksmined.%player%} is more than 9:
- set {currentblocksmined.%player%} to 0
- add 1 to {tokens.%uuid of player%}
- play sound "NOTE_BLOCK_FLUTE" to player
- on join:
- set {currentblocksmined.%player%} to 0
- on join:
- if {%uuid of player%.enchantments::*} isn't set:
- set {%uuid of player%.enchantments::*} to ""
- command /tokenshop:
- trigger:
- open chest with 1 row named "&eTokens And Upgrades" to player
- wait 1 tick
- format slot 0 of player with golden block named "&eTokens: %{tokens.%uuid of player%}%"
- format slot 2 of player with book named "&eEfficiency +1" to close then run [make console execute command "/buyit %player% eff1"]
- command /buyit [<player>] [<text>]:
- trigger:
- if arg-2 is "eff1":
- if {tokens.%uuid of arg-1%} is more than 999:
- remove 1000 from {tokens.%uuid of arg-1%}
- send "&aPurchase complete, the next pickaxe you right click on, the upgrade will be applied to." to arg-1
- set {applyingupgrade.%arg-1%} to "eff1"
- command /cheattoken [<number>]:
- trigger:
- set {tokens.%uuid of player%} to arg-1
- on right click:
- if held item is a diamond pickaxe:
- if {applyingupgrade.%player%} is "eff1":
- set {lvl.%player%} to enchantment level of efficiency of player's tool
- add 1 to {lvl.%player%}
- wait 1 second
- remove player's held item from player
- 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