Advertisement
CREAMPAN0408

Untitled

Jun 6th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. options:
  2. Prefix: &cReward &7>&6> &e
  3. Percentage: 100
  4. #Set to TRUE if you want broadcast, set to false if you want no broadcast
  5. BroadcastTF: true
  6. BroadcastMessage: &c%player% &ereceived a reward from mining!
  7. #Add blocks you would like
  8. Block1: oak log
  9. #Rewards
  10. Reward1: oak log named "&e原木"
  11. Reward2: apple"
  12.  
  13. on mine of {@Block1}:
  14. chance of {@Percentage}%:
  15. if "{@BroadcastTF}" is "true" or "True" or "TRUE":
  16. broadcast "{@Prefix}{@BroadcastMessage}"
  17. set {_MineRewards} to a random integer between 1 and 6
  18. if {_MineRewards} is 1:
  19. give {@Reward1} to player
  20. stop
  21. if {_MineRewards} is 2:
  22. give {@Reward2} to player
  23. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement