Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Chaotic: &6&lChaoticMC &7&l>>
- bb: &c&l[&9&lBlocks&f&lBroken&c&l] &7&l>>
- error: &c&lAn error has occured!
- ver: 0.1
- on script load:
- message "+--------------------+" to console
- message " Turning on the Skript " to console
- message " Skript :: BlocksBroken " to console
- message " Version :: {@ver} " to console
- message " Author :: kohlerpop1 " to console
- message "+--------------------+" to console
- on script unload:
- message "+--------------------+" to console
- message " Shutting down the Skript " to console
- message " Skript :: BlocksBroken " to console
- message " Version :: {@ver} " to console
- message " Author :: kohlerpop1 " to console
- message "+--------------------+" to console
- on break:
- if tool is a pickaxe:
- add 1 to {pickaxe.break.%player%}
- add 1 to {blocks.broken.%player%}
- set the 1st line of lore of player's tool to "&9Blocks Broken:"
- set the 2nd line of lore of player's tool to "&c%{pickaxe.break.%player%}%"
- else if tool is a shovel:
- add 1 to {shovel.break.%player%}
- add 1 to {blocks.broken.%player%}
- set the 1st line of lore of player's tool to "&9Blocks Broken:"
- set the 2nd line of lore of player's tool to "&c%{shovel.break.%player%}%"
- else if tool is a axe:
- add 1 to {axe.break.%player%}
- add 1 to {blocks.broken.%player%}
- set the 1st line of lore of player's tool to "&9Blocks Broken:"
- set the 2nd line of lore of player's tool to "&c%{axe.break.%player%}%"
- else:
- add 1 to {blocks.broken.%player%}
- command /blocks:
- description: Shows how many blocks have been broken
- trigger:
- message "&7&m---&c&m---&7&m---&8&m[&r &4&lBlocks Broken &8&m]&7&m---&c&m---&7&m---"
- message "&6Blocks Broken By Pickaxe &e» &3%{pickaxe.break.%player%}% "
- message "&6Blocks Broken By Shovel &e» &3%{shovel.break.%player%}%"
- message "&6Blocks Broken By Axe &e» &3%{axe.break.%player%}%"
- message "&aTotal Blocks Broken &2» &5%{blocks.broken.%player%}%"
- message "&7&m---&c&m---&7&m---&8&m[&r &4&lBlocks Broken &8&m]&7&m---&c&m---&7&m---"
- command /bb [<text>] [<text>]:
- description: Shows how many blocks have been broken
- permission: blocks.broken.admin
- trigger:
- if arg-1 is not set:
- message "{@bb} {@error}"
- message "{@bb} &9/bb <reset> <player>"
- message "{@bb} &9/bb <info> <player>"
- message "{@bb} &9/bb <reload>"
- stop trigger
- else if arg-1 is "reset":
- if arg-2 is set:
- set {pickaxe.break.%arg-2%} to 0
- set {shovel.break.%arg-2%} to 0
- set {axe.break.%arg-2%} to 0
- set {blocks.broken.%arg-2%} to 0
- message "{@bb} &9All Block Broken Stats have been reset for %arg-2%!!!"
- message "{@bb} &9All of your Block Broken Stats have been reset by %player%!!!"
- stop trigger
- else if arg-1 is "info":
- if arg-2 is set:
- message "&7&m---&c&m---&7&m---&8&m[&r &4&lBlocks Broken &8&m]&7&m---&c&m---&7&m---"
- message "&6Blocks Broken By Pickaxe of %arg-2% &e» &3%{pickaxe.break.%arg-2%}% "
- message "&6Blocks Broken By Shovel of %arg-2% &e» &3%{shovel.break.%arg-2%}%"
- message "&6Blocks Broken By Axe of %arg-2% &e» &3%{axe.break.%arg-2%}%"
- message "&aTotal Blocks Broken of %arg-2% &2» &5%{blocks.broken.%arg-2%}%"
- message "&7&m---&c&m---&7&m---&8&m[&r &4&lBlocks Broken &8&m]&7&m---&c&m---&7&m---"
- stop trigger
- else if arg-1 is "reload":
- make console execute command "skript reload BlocksBroken"
- message "{@bb} &9Blocks&cBroken &aReloaded&c!!!"
- stop trigger
- on join:
- if {pickaxe.break.%player%} is not set:
- set {pickaxe.break.%player%} to 0
- if {shovel.break.%player%} is not set:
- set {shovel.break.%player%} to 0
- if {axe.break.%player%} is not set:
- set {axe.break.%player%} to 0
- if {blocks.broken.%player%} is not set:
- set {blocks.broken.%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement