70sOn7

Lucky Blocks

Mar 3rd, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. on mine:
  2. if event-block is diamond ore or emerald ore or gold ore or iron ore or coal ore:
  3. set {_lb} to a random integer between 1 and 250
  4. set {_lbr} to a random integer between 1 and 250
  5. if {_lb} is {_lbr}:
  6. set event-block to sponge
  7. set {lb.%event-block's location%} to true
  8. set {lbo.%event-block's location%} to player
  9. on click on sponge:
  10. if {lb.%event-block's location%} is true:
  11. if {lbo.%event-block's location%} is player:
  12. set {_lbp} to a random integer between 1 and 3
  13. if {_lbp} is 1:
  14. send "&e[LUCKY] You have gotten 7x Diamonds!"
  15. give 7 diamonds named "&eLucky Diamonds" to player
  16. if {_lbp} is 2:
  17. send "&e[LUCKY] You have gotten $75!"
  18. add 75 to player's account
  19. if {_lbp} is 3:
  20. send "&e[LUCKY] You have unlucked Mango Suit! &7(/suits)"
  21. make console execute "/manuaddp %player% suits.mango"
  22. set event-block to air
  23. delete {lb.%event-block's location%}
  24. delete {lbo.%event-block's location%}
  25. if {lbo.%event-block's location%} is not player:
  26. send "&e[LUCKY] You can not open this Lucky Block as it's not yours!" to player
  27. cancel event
Add Comment
Please, Sign In to add comment