Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {tokens.%player%} = 0
- {tokensperblock.%player%} = 10
- {brokenblocks.%player%} = 0
- on break:
- add {tokensperblock.%player%} to {tokens.%player%}
- add 1 to {brokenblocks.%player%}
- on rightclick holding a diamond pickaxe:
- make player execute command "/pickshop"
- command /lucky:
- trigger:
- if player is holding a pickaxe:
- if line 1 of lore of player's tool is not set:
- set line 1 of lore of player's tool to "&7Jackhammer 0"
- if line 2 of lore of player's tool is not set:
- set line 2 of lore of player's tool to "&7Explosive 0"
- if line 3 of lore of player's tool is not set:
- set line 3 of lore of player's tool to "&7InstaSell 0"
- if line 4 of lore of player's tool is not set:
- set line 4 of lore of player's tool to "&7Merchant 0"
- if line 5 of lore of player's tool is not set:
- set line 5 of lore of player's tool to "&7Crate Finder 0"
- if line 6 of lore of player's tool is not set:
- set line 6 of lore of player's tool to "&7Token Excavator 0"
- if line 7 of lore of player's tool is not set:
- set line 7 of lore of player's tool to "&7Laser 0"
- if line 8 of lore of player's tool is not set:
- set line 8 of lore of player's tool to "&7Lucky 0"
- if line 9 of lore of player's tool is not set:
- set line 9 of lore of player's tool to "&7Drill 0"
- if {lucky.%player%} is less than 1:
- set line 8 of the lore of the player's tool to "&7Lucky 0"
- set {lucky.%player%} to 1
- else:
- if {tokens.%player%} is less than 250000:
- send "&7You Need 250,000 Tokens For This!"
- if {tokens.%player%} is greater than 249999:
- line 8 of the lore of the player's tool is "&7Lucky 100":
- send "&7Your Lucky is already maxed!"
- if line 8 of the lore of the player's tool is not "&7Lucky 100":
- remove 250000 from {tokens.%player%}
- send "&7You Bought +1 Lucky For 250,000 Tokens!"
- if line 8 of the lore of the player's tool is "&7Lucky 0":
- set line 8 of the lore of the player's tool to "&7Lucky 1"
- stop
- if line 8 of the lore of the player's tool is "&7Lucky 1":
- set line 8 of the lore of the player's tool to "&7Lucky 2"
- stop
- if line 8 of the lore of the player's tool is "&7Lucky 2":
- set line 8 of the lore of the player's tool to "&7Lucky 3"
- stop
- if line 8 of the lore of the player's tool is "&7Lucky 3":
- set line 8 of the lore of the player's tool to "&7Lucky 4"
- stop
- if line 8 of the lore of the player's tool is "&7Lucky 4":
- set line 8 of the lore of the player's tool to "&7Lucky 5"
- stop
- if line 8 of the lore of the player's tool is "&7Lucky 5":
- set line 8 of the lore of the player's tool to "&7Lucky 6"
- stop
- if line 8 of the lore of the player's tool is "&7Lucky 6":
- set line 8 of the lore of the player's tool to "&7Lucky 7"
- stop
- if line 8 of the lore of the player's tool is "&7Lucky 7":
- set line 8 of the lore of the player's tool to "&7Lucky 8"
- stop
- if line 8 of the lore of the player's tool is "&7Lucky 8":
- set line 8 of the lore of the player's tool to "&7Lucky 9"
- stop
- if line 8 of the lore of the player's tool is "&7Lucky 9":
- set line 8 of the lore of the player's tool to "&7Lucky 10"
- stop
- command /tokens [<text>] [<number>]:
- trigger:
- if arg-1 is not set:
- send "&aTokens &7>> &fYou have &a%{tokens.%player%}%&f!" to player
- if arg-1 is give:
- if arg-2 is set:
- add arg-2 to {tokens.%player%}
- else:
- send "You need to specify an amount!" to player
- command /pickshop:
- trigger:
- close player's inventory
- wait 2 ticks
- open chest with 2 rows named "&ePickaxes" to player
- format slot 0 of player with anvil named "&7Jackhammer - 200,000 N-Tokens" with lore "&cMax Level: 50" to run [make player execute command "/jh"]
- format slot 2 of player with blaze rod named "&7Laser - 50,000 N-Tokens" with lore "&cMax Level: 50" to run [make player execute command "/laser"]
- format slot 1 of player with tnt named "&7Explosive - 200,000 N-Tokens" with lore "&cMax Level: 50" to run [make player execute command "/explo"]
- format slot 3 of player with paper named "&7InstaSell - 200,000 N-Tokens" with lore "&cMax Level: 25" to run [make player execute command "/instasell"]
- format slot 4 of player with emerald block named "&7Merchant - 250,000 N-Tokens" with lore "&cMax Level: 15" to run [make player execute command "/merchant"]
- format slot 5 of player with gold pickaxe named "&7Efficiency - 5,000 N-Tokens" with lore "&cMax Level: 5000" to run [make player execute command "/eff"]
- format slot 6 of player with emerald named "&7Fortune - 15,000 N-Tokens" with lore "&cMax Level: 5000" to run [make player execute command "/fortune"]
- format slot 7 of player with sponge named "&7Lucky - 250,000 N-Tokens" with lore "&cMax Level: 10" to run [make player execute command "/lucky"]
- format slot 8 of player with nether star named "&7Drill - 50,000 N-Tokens" with lore "&cMax Level: 50" to run [make player execute command "/drill"]
- format slot 9 of player with tripwire hook named "&7CrateFinder - 1,500,000 N-Tokens" with lore "&cMax Level: 10" to run [make player execute command "/cratefinder"]
- format slot 10 of player with 64 magma cream named "&7Token Excavator - 150,000 N-Tokens" with lore "&cMax Level: 100" to run [make player execute command "/nte"]
- format slot 11 of player with red stained glass named "&0&lBorder" to be unstealable
- format slot 12 of player with red stained glass named "&0&lBorder" to be unstealable
- format slot 13 of player with red stained glass named "&0&lBorder" to be unstealable
- format slot 14 of player with red stained glass named "&0&lBorder" to be unstealable
- format slot 15 of player with red stained glass named "&0&lBorder" to be unstealable
- format slot 16 of player with red stained glass named "&0&lBorder" to be unstealable
- format slot 17 of player with barrier named "&7Close" to close
- on break:
- if line 8 of the lore of the player's tool is "&7Lucky 1":
- chance of 10%:
- set {lucky.%player%} to "true"
- if line 8 of the lore of the player's tool is "&7Lucky 2":
- chance of 20%:
- set {lucky.%player%} to "true"
- if line 8 of the lore of the player's tool is "&7Lucky 3":
- chance of 30%:
- set {lucky.%player%} to "true"
- if line 8 of the lore of the player's tool is "&7Lucky 4":
- chance of 40%:
- set {lucky.%player%} to "true"
- if line 8 of the lore of the player's tool is "&7Lucky 5":
- chance of 50%:
- set {lucky.%player%} to "true"
- if line 8 of the lore of the player's tool is "&7Lucky 6":
- chance of 60%:
- set {lucky.%player%} to "true"
- if line 8 of the lore of the player's tool is "&7Lucky 7":
- chance of 70%:
- set {lucky.%player%} to "true"
- if line 8 of the lore of the player's tool is "&7Lucky 8":
- chance of 80%:
- set {lucky.%player%} to "true"
- if line 8 of the lore of the player's tool is "&7Lucky 9":
- chance of 90%:
- set {lucky.%player%} to "true"
- if line 8 of the lore of the player's tool is "&7Lucky 10":
- chance of 100%:
- set {lucky.%player%} to "true"
- on break:
- if {lucky.%player%} is "true":
- set {_lucky} to a random integer between 1 and 5000
- add {_lucky} to {tokens.%player%}
- send "&7You Got Lucky and recieved &a%{_lucky}% &7Tokens From Your Lucky Enchant!"
- set {lucky.%player%} to "false"
- command /getpick:
- trigger:
- give player unbreakable diamond pickaxe of efficiency 10 and fortune 5 named "&5&lPickaxe &7[&a%{blocksbroken.%player%}%&7]" with lore "&7Jackhammer 0" and "&7Explosive 0" and "&7InstaSell 0" and "&7Merchant 0" and "&7Crate Finder 0" and "&7Token Excavator 0" and "&7Laser 0" and "&7Lucky 0" and "&7Drill 0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement