zuhir__

Break lapis v2

Feb 17th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. on break lapis ore:
  2. if player's tool is iron pickaxe:
  3. If player can hold 1 lapis:
  4. if data value of player's tool is equal to 250:
  5. cancel event
  6. set block to air
  7. give 1 lapis to player
  8. add 8 to level progress of player
  9. delete player's tool
  10. else:
  11. cancel event
  12. set block to air
  13. give 1 lapis to player
  14. add 1 to the data value of the player's tool
  15. add 8 to level progress of player
  16. else if player's tool is diamond pickaxe:
  17. If player can hold 1 lapis:
  18. if data value of player's tool is equal to 1561:
  19. cancel event
  20. set block to air
  21. give 1 lapis to player
  22. add 8 to level progress of player
  23. delete player's tool
  24. else:
  25. cancel event
  26. set block to air
  27. give 1 lapis to player
  28. add 1 to the data value of the player's tool
  29. add 8 to level progress of player
Add Comment
Please, Sign In to add comment