Advertisement
moeycvbn12

Untitled

Dec 16th, 2017
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. options:
  2. Chaotic: &6&lChaoticMC &7&l>>
  3. bb: &c&l[&9&lBlocks&f&lBroken&c&l] &7&l>>
  4. error: &c&lAn error has occured!
  5. ver: 0.1
  6.  
  7.  
  8. on script load:
  9. message "+--------------------+" to console
  10. message " Turning on the Skript " to console
  11. message " Skript :: BlocksBroken " to console
  12. message " Version :: {@ver} " to console
  13. message " Author :: kohlerpop1 " to console
  14. message "+--------------------+" to console
  15.  
  16. on script unload:
  17. message "+--------------------+" to console
  18. message " Shutting down the Skript " to console
  19. message " Skript :: BlocksBroken " to console
  20. message " Version :: {@ver} " to console
  21. message " Author :: kohlerpop1 " to console
  22. message "+--------------------+" to console
  23.  
  24.  
  25.  
  26. on break:
  27. if tool is a pickaxe:
  28. add 1 to {pickaxe.break.%player%}
  29. add 1 to {blocks.broken.%player%}
  30. set the 1st line of lore of player's tool to "&9Blocks Broken:"
  31. set the 2nd line of lore of player's tool to "&c%{pickaxe.break.%player%}%"
  32. else if tool is a shovel:
  33. add 1 to {shovel.break.%player%}
  34. add 1 to {blocks.broken.%player%}
  35. set the 1st line of lore of player's tool to "&9Blocks Broken:"
  36. set the 2nd line of lore of player's tool to "&c%{shovel.break.%player%}%"
  37. else if tool is a axe:
  38. add 1 to {axe.break.%player%}
  39. add 1 to {blocks.broken.%player%}
  40. set the 1st line of lore of player's tool to "&9Blocks Broken:"
  41. set the 2nd line of lore of player's tool to "&c%{axe.break.%player%}%"
  42. else:
  43. add 1 to {blocks.broken.%player%}
  44.  
  45. command /blocks:
  46. description: Shows how many blocks have been broken
  47. trigger:
  48. message "&7&m---&c&m---&7&m---&8&m[&r &4&lBlocks Broken &8&m]&7&m---&c&m---&7&m---"
  49. message "&6Blocks Broken By Pickaxe &e» &3%{pickaxe.break.%player%}% "
  50. message "&6Blocks Broken By Shovel &e» &3%{shovel.break.%player%}%"
  51. message "&6Blocks Broken By Axe &e» &3%{axe.break.%player%}%"
  52. message "&aTotal Blocks Broken &2» &5%{blocks.broken.%player%}%"
  53. message "&7&m---&c&m---&7&m---&8&m[&r &4&lBlocks Broken &8&m]&7&m---&c&m---&7&m---"
  54.  
  55. command /bb [<text>] [<text>]:
  56. description: Shows how many blocks have been broken
  57. permission: blocks.broken.admin
  58. trigger:
  59. if arg-1 is not set:
  60. message "{@bb} {@error}"
  61. message "{@bb} &9/bb <reset> <player>"
  62. message "{@bb} &9/bb <info> <player>"
  63. message "{@bb} &9/bb <reload>"
  64. stop trigger
  65.  
  66. else if arg-1 is "reset":
  67. if arg-2 is set:
  68. set {pickaxe.break.%arg-2%} to 0
  69. set {shovel.break.%arg-2%} to 0
  70. set {axe.break.%arg-2%} to 0
  71. set {blocks.broken.%arg-2%} to 0
  72. message "{@bb} &9All Block Broken Stats have been reset for %arg-2%!!!"
  73. message "{@bb} &9All of your Block Broken Stats have been reset by %player%!!!"
  74. stop trigger
  75.  
  76. else if arg-1 is "info":
  77. if arg-2 is set:
  78. message "&7&m---&c&m---&7&m---&8&m[&r &4&lBlocks Broken &8&m]&7&m---&c&m---&7&m---"
  79. message "&6Blocks Broken By Pickaxe of %arg-2% &e» &3%{pickaxe.break.%arg-2%}% "
  80. message "&6Blocks Broken By Shovel of %arg-2% &e» &3%{shovel.break.%arg-2%}%"
  81. message "&6Blocks Broken By Axe of %arg-2% &e» &3%{axe.break.%arg-2%}%"
  82. message "&aTotal Blocks Broken of %arg-2% &2» &5%{blocks.broken.%arg-2%}%"
  83. message "&7&m---&c&m---&7&m---&8&m[&r &4&lBlocks Broken &8&m]&7&m---&c&m---&7&m---"
  84. stop trigger
  85.  
  86. else if arg-1 is "reload":
  87. make console execute command "skript reload BlocksBroken"
  88. message "{@bb} &9Blocks&cBroken &aReloaded&c!!!"
  89. stop trigger
  90.  
  91.  
  92.  
  93. on join:
  94. if {pickaxe.break.%player%} is not set:
  95. set {pickaxe.break.%player%} to 0
  96. if {shovel.break.%player%} is not set:
  97. set {shovel.break.%player%} to 0
  98. if {axe.break.%player%} is not set:
  99. set {axe.break.%player%} to 0
  100. if {blocks.broken.%player%} is not set:
  101. set {blocks.broken.%player%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement