Advertisement
twogz

Untitled

Jul 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 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 prismarine crystal 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 prismarine shard 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 prismarine crystal:
  25. cancel event
  26. delete item
  27. add 1 to {crystal::%uuid of player%}
  28. message "&3+ 1 crystal (no multiplier)" to player
  29.  
  30. if event-item is prismarine shard:
  31. cancel event
  32. delete item
  33. add 1 to {shard::%uuid of player%}
  34. message "&3+ 1 shard (no multiplier)" to player
  35.  
  36. command /balance:
  37. trigger:
  38. message "&7Balance: &a%player's balance%"
  39. message "&7Crystals: &b%{crystal::%uuid of player%}%"
  40. message "&7Shards: &3%{shard::%uuid of player%}%"
  41.  
  42. command /bal:
  43. trigger:
  44. message "&7Balance: &a%player's balance%"
  45. message "&7Crystals: &b%{crystal::%uuid of player%}%"
  46. message "&7Shards: &3%{shard::%uuid of player%}%"
  47.  
  48. command /money:
  49. trigger:
  50. message "&7Balance: &a%player's balance%"
  51. message "&7Crystals: &b%{crystal::%uuid of player%}%"
  52. message "&7Shards: &3%{shard::%uuid of player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement