Advertisement
moeycvbn12

Untitled

Dec 18th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. variables:
  2. {mobcoins.%player%} = 0 # Amount of mobcoins a player will have on first join
  3.  
  4. # When a player breaks one of these listed blocks, they will recieve the specified amount of mobcoins
  5.  
  6. on break of iron_ore:
  7. chance of 7%:
  8. add 3 to {mobcoins.%attacker%}
  9. send "&eYou salvaged &63x&e mobcoins" to miner
  10.  
  11. on break of gold_ore:
  12. chance of 12%:
  13. add 1 to {mobcoins.%attacker%}
  14. send "&eYou salvaged &61x&e mobcoins" to miner
  15.  
  16. on break of diamond_ore:
  17. chance of 14%:
  18. add 5 to {mobcoins.%attacker%}
  19. send "&eYou salvaged &65x&e mobcoins" to miner
  20.  
  21. on break of emerald_ore:
  22. chance of 18%:
  23. add 9 to {mobcoins.%attacker%}
  24. send "&eYou salvaged &69x&e mobcoins" to miner
  25.  
  26. on break of quartz_ore:
  27. chance of 8%:
  28. add 5 to {mobcoins.%attacker%}
  29. send "&eYou salvaged &65x&e mobcoins" to miner
  30.  
  31. on break of oak_log:
  32. chance of 7%:
  33. add 15 to {mobcoins.%attacker%}
  34. send "&eYou salvaged &61x&e mobcoins" to miner
  35.  
  36.  
  37.  
  38. command /mobcoins [<text>] [<player>]:
  39. trigger:
  40. if arg 1 is not set:
  41. if arg 2 is not set:
  42. send "&eYou have &6%{mobcoins.%player%}% &eMobcoins." to player
  43. if arg 1 is "view":
  44. if arg 2 is set:
  45. send "&6%arg 2%'s &eMobcoins balance is &6%{mobcoins.%arg 2%}%&e" to player
  46. if arg 1 is "reset":
  47. if arg 2 is set:
  48. if player has permission "mobcoins.admin":
  49. set {mobcoins.%arg 2%} to 0%
  50. send "&6%arg 2%'s &eMobcoin balance was reset back to &60&e." to player
  51. send "&eYour Mobcoins where reset by a staff member. Your new Mobcoin balance is &60&e!" to arg 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement