Advertisement
twogz

Untitled

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