Advertisement
twogz

Untitled

Jul 19th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. on break:
  2. cancel event
  3. if event-block is coal ore:
  4. if held item is pickaxe:
  5. if player's gamemode is survival:
  6. cancel event
  7. set event-block to stone
  8. give coal item to player
  9. play "BLOCK_NOTE_PLING" to player
  10.  
  11. set {_n} to a random integer between 0 and 100000000
  12. drop gold nugget named "Speed: %{_n}%" at block above event-block
  13.  
  14. chance of 10%:
  15. set {_m} to a random integer between 0 and 1000000
  16. drop gold ingot named "Speed: %{_m}%" at block above event-block
  17.  
  18. wait 15 seconds
  19. set event-block to coal ore
  20.  
  21.  
  22.  
  23. on pickup:
  24. if event-item is gold nugget:
  25. cancel event
  26. delete item
  27. add 1 to {token::%uuid of player%}
  28. message "&6+ 1 token (no multiplier)" to player
  29.  
  30. if event-item is gold ingot:
  31. cancel event
  32. delete item
  33. add 5 to {token::%uuid of player%}
  34. message "&6+ 5 token (no multiplier)" to player
  35.  
  36. command /balance:
  37. trigger:
  38. message "&7Balance: &a%player's balance%"
  39. message "&7Tokens: &6%{token::%uuid of player%}%"
  40.  
  41. command /bal:
  42. trigger:
  43. message "&7Balance: &a%player's balance%"
  44. message "&7Tokens: &6%{token::%uuid of player%}%"
  45.  
  46. command /money:
  47. trigger:
  48. message "&7Balance: &a%player's balance%"
  49. message "&7Tokens: &6%{token::%uuid of player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement