Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {level::%player's uuid%} to 0
- set {cost1::%player's uuid%} to 99
- set {cost2::%player's uuid%} to 100
- set {cost3::%player's uuid%} to 50
- set {pickaxe::%player's uuid%} to 0
- set {sword::%player's uuid%} to 0
- set {shovel::%player's uuid%} to 0
- set {axe::%player's uuid%} to 0
- set {pickaxe2::%player's uuid%} to "wooden"
- set {sword2::%player's uuid%} to "wooden"
- set {shovel2::%player's uuid%} to "wooden"
- set {axe2::%player's uuid%} to "wooden"
- on join:
- if {level::%player's uuid%} is not set:
- set {level::%player's uuid%} to 0
- if {cost1::%player's uuid%} is not set:
- set {cost1::%player's uuid%} to 99
- if {cost2::%player's uuid%} is not set:
- set {cost2::%player's uuid%} to 100
- on mine of dirt:
- add 1 to {blocks::%player's uuid%}
- on mine of sand:
- add 1 to {blocks::%player's uuid%}
- on mine of stone:
- add 2 to {blocks::%player's uuid%}
- on mine of diamond ore:
- add 3 to {blocks::%player's uuid%}
- command /blocks [<text>]:
- permission: skript.mine.blocks
- usage: "/blocks help"
- trigger:
- if arg-1 is not set:
- send "--------------------Blocks Help-----------------"
- send "-1. Info - shows how many blocks you have broken"
- send "-2. Upgrade - upgrades your level"
- send "--------------------Blocks Help-----------------"
- if arg-1 is "info":
- send "&7------------&eBlocks&7-----------"
- send "&c-Points &e%{blocks::%player's uuid%}%"
- send "&7------------&eBlocks&7-----------"
- if arg-1 is "help":
- send "--------------------Blocks Help-----------------"
- send "-1. Info - shows how many blocks you have broken"
- send "-2. Upgrade - upgrades your level"
- send "--------------------Blocks Help-----------------"
- if arg-1 is "upgrade":
- if {blocks::%player's uuid%} >= {cost2::%player's uuid%}:
- add 1 to {level::%player's uuid%}
- execute console command "lp user %player% meta removesuffix 100"
- execute console command "lp user %player% meta addsuffix 100 &e[&cLv.%{level::%player's uuid%}%&e]"
- remove {cost2::%player's uuid%} from {blocks::%player's uuid%}
- add 50 to {cost1::%player's uuid%}
- add 50 to {cost2::%player's uuid%}
- else:
- send "&cYou need %{cost2::%player's uuid%}% points to level up!"
- command /sv:
- permission: skript.blocks.admin
- trigger:
- send "%{blocks::%player's uuid%}% to player"
- send "%{cost2::%player's uuid%}% to player"
- command /points <text>:
- trigger:
- set {blocks::%player's uuid%} to arg-1
- command /debug [<offlineplayer>]:
- permission: sk.debug
- trigger:
- set {level::%arg-1's uuid%} to 0
- set {cost1::%arg-1's uuid%} to 99
- set {cost2::%arg-1's uuid%} to 100
- command /vd:
- permission: skript.blocks.admin
- trigger:
- delete {level::%player's uuid%}
- delete {cost1::%player's uuid%}
- delete {cost2::%player's uuid%}
- delete {blocks::%player's uuid%}
- command /upgrade [<text>]:
- permission: skript.mine.blocks
- trigger:
- if arg-1 is not set:
- send "&7Try &e/upgrade <pickaxe,axe,shovel,sword> &7instead"
- if arg-1 is "pickaxe":
- if {pickaxe2::%player's uuid%} is "wooden":
- if {pickaxe::%player's uuid%} is "5":
- set {pickaxe2::%player's uuid%} to "stone"
- send "&cYou now can ger a &estone &cpickaxe!"
- if arg-1 is "pickaxe":
- if {pickaxe2::%player's uuid%} is "stone":
- if {pickaxe::%player's uuid%} is "5":
- set {pickaxe2::%player's uuid%} to "iron"
- send "&cYou now can get a &eiron &cpickaxe!"
- if arg-1 is "pickaxe":
- if {pickaxe2::%player's uuid%} is "iron":
- if {pickaxe::%player's uuid%} is "5":
- set {pickaxe2::%player's uuid%} to "diamond"
- send "&cYou now can get a &bdimond &cpickaxe!"
- if arg-1 is "pickaxe":
- if {blocks::%player's uuid%} >= {cost3::%player's uuid%}:
- if {pickaxe2::%player's uuid%} is "wooden":
- add 1 to {pickaxe::%player's uuid%}
- give wooden pickaxe of efficiency {pickaxe::%player's uuid%} to player
- remove {cost3::%player's uuid%} from {blocks::%player's uuid%}
- add 50 {cost3::%player's uuid%}
- send "&cYou have upgraded your pickaxe!"
- else:
- send "&7Sorry, but you need &e%{cost3::%player's uuid%}% &7points"
- if arg-1 is "pickaxe":
- if {blocks::%player's uuid%} >= {cost3::%player's uuid%}:
- if {pickaxe2::%player's uuid%} is "stone":
- add 1 to {pickaxe::%player's uuid%}
- give stone pickaxe of efficiency {pickaxe::%player's uuid%} to player
- remove {cost3::%player's uuid%} from {blocks::%player's uuid%}
- add 50 {cost3::%player's uuid%}
- send "&cYou have upgraded your pickaxe!"
- else:
- send "&7Sorry, but you need &e%{cost3::%player's uuid%}% &7points"
- if arg-1 is "pickaxe":
- if {blocks::%player's uuid%} >= {cost3::%player's uuid%}:
- if {pickaxe2::%player's uuid%} is "stone":
- add 1 to {pickaxe::%player's uuid%}
- give stone pickaxe of efficiency {pickaxe::%player's uuid%} to player
- remove {cost3::%player's uuid%} from {blocks::%player's uuid%}
- add 50 {cost3::%player's uuid%}
- send "&cYou have upgraded your pickaxe!"
- else:
- send "&7Sorry, but you need &e%{cost3::%player's uuid%}% &7points"
- if arg-1 is "pickaxe":
- if {blocks::%player's uuid%} >= {cost3::%player's uuid%}:
- if {pickaxe2::%player's uuid%} is "iron":
- add 1 to {pickaxe::%player's uuid%}
- give iron pickaxe of efficiency {pickaxe::%player's uuid%} to player
- remove {cost3::%player's uuid%} from {blocks::%player's uuid%}
- add 50 {cost3::%player's uuid%}
- send "&cYou have upgraded your pickaxe!"
- else:
- send "&7Sorry, but you need &e%{cost3::%player's uuid%}% &7points"
- if arg-1 is "pickaxe":
- if {blocks::%player's uuid%} >= {cost3::%player's uuid%}:
- if {pickaxe2::%player's uuid%} is "diamond":
- add 1 to {pickaxe::%player's uuid%}
- give diamond pickaxe of efficiency {pickaxe::%player's uuid%} to player
- remove {cost3::%player's uuid%} from {blocks::%player's uuid%}
- add 50 {cost3::%player's uuid%}
- send "&cYou have upgraded your pickaxe!"
- else:
- send "&7Sorry, but you need &e%{cost3::%player's uuid%}% &7points"
- command /upgrades [<text>]:
- permission: skript.mine.blocks
- trigger:
- if arg-1 is not set:
- send "&7Try &e/upgrades help &7instead"
- if arg-1 is "help":
- send "&7-------------------------&eHelp&7------------------------"
- send "&7-1. Help - sends a list of help commands"
- send "&7-2. Level - sends a list of upgrades for levels"
- send "&7-3. Pickaxe - sends a list of upgrades for your pickaxe"
- send "&7-4. Shovel - send a list of upgrades for your shovel"
- send "&7-5. Sword - sends a list of upgrades for your sword"
- send "&7-5. Axe - sends a list of upgrades for your axe"
- send "&7-------------------------&eHelp&7------------------------"
- if arg-1 is "level":
- send "&7---------------------&eLevels&7---------------------"
- send "&7First level up is 100 and then it goes up by 50."
- send "&7Example:"
- send "&7Level 1 = 100 points"
- send "&7Level 2 = 150 points"
- send "&7Level 3 = 200 points"
- send "&7ect..."
- send "&7---------------------&eLevels&7---------------------"
- if arg-1 is "Pickaxe":
- send "&7---------------------&ePickaxe&7---------------------"
- send "&7First level up is 50 and then it goes up by 50."
- send "&7Example:"
- send "&7Pickaxe 1 = 50 points"
- send "&7Pickaxe 2 = 100 points"
- send "&7Pickaxe 3 = 150 points"
- send "&7ect..."
- send "&7---------------------&ePickaxe&7---------------------"
- if arg-1 is "Axe":
- send "&7---------------------&eAxe---------------------"
- send "&7First level up is 50 and then it goes up by 50."
- send "&7Example:"
- send "&7Axe 1 = 50 points"
- send "&7Axe 2 = 100 points"
- send "&7Axe 3 = 150 points"
- send "&7ect..."
- send "&7---------------------&eAxe&7---------------------"
- if arg-1 is "Sword":
- send "&7---------------------&eSword&7---------------------"
- send "First level up is 50 and then it goes up by 50."
- send "Example:"
- send "Sword 1 = 50 points"
- send "Sword 2 = 100 points"
- send "Sword 3 = 150 points"
- send "ect..."
- send "---------------------Sword---------------------"
- if arg-1 is "Shovel":
- send "---------------------Shovel---------------------"
- send "First level up is 50 and then it goes up by 50."
- send "Example:"
- send "Shovel 1 = 50 points"
- send "Shovel 2 = 100 points"
- send "Shovel 3 = 150 points"
- send "ect..."
- send "---------------------Shovel---------------------"
- on first join:
- give wooden sword of sharpness 1 to player
- give wooden pickaxe of efficiency 1 to player
- give wooden axe of efficiency 1 to player
- give wooden shovel of efficiency 1 to player
- command /debug2:
- trigger:
- set {pickaxe2::%player's uuid%} to "wooden"
- set {sword2::%player's uuid%} to "wooden"
- set {shovel2::%player's uuid%} to "wooden"
- set {axe2::%player's uuid%} to "wooden"
- command /oppick:
- trigger:
- give diamond pickaxe of efficiency 1000 to player
- command /godpick:
- trigger:
- give diamond pickaxe of efficiency 10 to player
- command /debug3:
- trigger:
- send "if %{blocks::%player's uuid%}% and %{cost3::%player's uuid%}%"
- command /debug4:
- trigger:
- set {level::%player's uuid%} to 0
- set {cost1::%player's uuid%} to 99
- set {cost2::%player's uuid%} to 100
- set {cost3::%player's uuid%} to 50
- set {pickaxe::%player's uuid%} to 0
- set {sword::%player's uuid%} to 0
- set {shovel::%player's uuid%} to 0
- set {axe::%player's uuid%} to 0
- set {pickaxe2::%player's uuid%} to "wooden"
- set {sword2::%player's uuid%} to "wooden"
- set {shovel2::%player's uuid%} to "wooden"
- set {axe2::%player's uuid%} to "wooden"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement